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
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)