]> git.sommitrealweird.co.uk Git - eoc.git/blob - Makefile
Added to manpage instructions for configuring with Courier-MTA. Thanks to Antti-Juhan...
[eoc.git] / Makefile
1 prefix = /usr/local
2 bindir = $(prefix)/bin
3 mandir = $(prefix)/share/man
4 man1dir = $(mandir)/man1
5 man1dires = $(mandir)/es/man1
6 man1dirfr = $(mandir)/fr/man1
7 sharedir = $(prefix)/share/enemies-of-carlotta
8 command = enemies-of-carlotta
9
10 all: check
11
12 check:
13         python testrun.py
14
15 install:
16         install -d $(DESTDIR)$(bindir)
17         install -d $(DESTDIR)$(sharedir)
18         install -d $(DESTDIR)$(man1dir)
19         install -d $(DESTDIR)$(man1dires)
20         install -d $(DESTDIR)$(man1dirfr)
21         sed 's,^SHAREDIR=.*,SHAREDIR="$(sharedir)",' enemies-of-carlotta \
22             > $(DESTDIR)$(bindir)/$(command)
23         chmod 755 $(DESTDIR)$(bindir)/$(command)
24         sh fix-config $(sharedir) < eoc.py > $(DESTDIR)$(sharedir)/eoc.py
25         install -m 0755 qmqp.py $(DESTDIR)$(sharedir)/qmqp.py
26         python -c 'import py_compile; py_compile.compile("$(DESTDIR)$(sharedir)/eoc.py")'
27         python -c 'import py_compile; py_compile.compile("$(DESTDIR)$(sharedir)/qmqp.py")'
28         install -m 0644 enemies-of-carlotta.1 $(DESTDIR)$(man1dir)/$(command).1
29         install -m 0644 enemies-of-carlotta.1.es $(DESTDIR)$(man1dires)/$(command).1
30         install -m 0644 enemies-of-carlotta.1.fr $(DESTDIR)$(man1dirfr)/$(command).1
31         install -m 0644 templates/????* $(DESTDIR)$(sharedir)