summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLars Wirzenius <liw@esme>2005-12-03 20:41:56 +0200
committerLars Wirzenius <liw@esme>2005-12-03 20:41:56 +0200
commit0f7cd8b5551e2ec4333cb10561375872dd7e03d3 (patch)
tree217926700638acfa7fe1b523dae7f490308606e9 /Makefile
downloadeoc-0f7cd8b5551e2ec4333cb10561375872dd7e03d3.tar.gz
Initial import.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5420849
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,31 @@
+prefix = /usr/local
+bindir = $(prefix)/bin
+mandir = $(prefix)/share/man
+man1dir = $(mandir)/man1
+man1dires = $(mandir)/es/man1
+man1dirfr = $(mandir)/fr/man1
+sharedir = $(prefix)/share/enemies-of-carlotta
+command = enemies-of-carlotta
+
+all: check
+
+check:
+ python testrun.py
+
+install:
+ install -d $(DESTDIR)$(bindir)
+ install -d $(DESTDIR)$(sharedir)
+ install -d $(DESTDIR)$(man1dir)
+ install -d $(DESTDIR)$(man1dires)
+ install -d $(DESTDIR)$(man1dirfr)
+ sed 's,^SHAREDIR=.*,SHAREDIR="$(sharedir)",' enemies-of-carlotta \
+ > $(DESTDIR)$(bindir)/$(command)
+ chmod 755 $(DESTDIR)$(bindir)/$(command)
+ sh fix-config $(sharedir) < eoc.py > $(DESTDIR)$(sharedir)/eoc.py
+ install -m 0755 qmqp.py $(DESTDIR)$(sharedir)/qmqp.py
+ python -c 'import py_compile; py_compile.compile("$(DESTDIR)$(sharedir)/eoc.py")'
+ python -c 'import py_compile; py_compile.compile("$(DESTDIR)$(sharedir)/qmqp.py")'
+ install -m 0644 enemies-of-carlotta.1 $(DESTDIR)$(man1dir)/$(command).1
+ install -m 0644 enemies-of-carlotta.1.es $(DESTDIR)$(man1dires)/$(command).1
+ install -m 0644 enemies-of-carlotta.1.fr $(DESTDIR)$(man1dirfr)/$(command).1
+ install -m 0644 templates/????* $(DESTDIR)$(sharedir)