cookutils view Makefile @ rev 604
cooker.cgi: fix files= output (thanks Aleksej)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 26 17:55:18 2013 +0000 (2013-07-26) |
parents | 50cd87593dae |
children | dab2c8b677a9 |
line source
1 # Makefile for SliTaz Cooker.
2 #
4 PREFIX?=/usr
5 DESTDIR?=
6 LINGUAS?=ru
7 VERSION:=$(shell grep ^VERSION cook | cut -d'=' -f2)
9 all:
11 install: install-cook install-libcook install-cross
12 uninstall: uninstall-cook uninstall-libcook uninstall-cross
14 # Cook
16 install-cook:
17 install -m 0755 -d $(DESTDIR)/etc/slitaz
18 install -m 0755 -d $(DESTDIR)/etc/init.d
19 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin
20 install -m 0755 -d $(DESTDIR)/var/www/cgi-bin/cooker
21 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/applications
22 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/cook/cooktest
23 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/doc/cookutils
24 install -m 0755 cook $(DESTDIR)$(PREFIX)/bin
25 install -m 0755 cooker $(DESTDIR)$(PREFIX)/bin
26 install -m 0755 cookiso $(DESTDIR)$(PREFIX)/bin
27 install -m 0644 cook.conf $(DESTDIR)/etc/slitaz
28 install -m 0644 cook.site $(DESTDIR)/etc/slitaz
29 install -m 0644 web/* $(DESTDIR)/var/www/cgi-bin/cooker
30 install -m 0644 data/*.desktop $(DESTDIR)$(PREFIX)/share/applications
31 install -m 0644 data/cooklist $(DESTDIR)$(PREFIX)/share/cook
32 install -m 0644 data/receipt $(DESTDIR)$(PREFIX)/share/cook
33 install -m 0644 data/cooktest/* $(DESTDIR)$(PREFIX)/share/cook/cooktest
34 install -m 0644 doc/* $(DESTDIR)$(PREFIX)/share/doc/cookutils
35 install -m 0644 README $(DESTDIR)$(PREFIX)/share/doc/cookutils
36 install -m 0755 init.d/cooker $(DESTDIR)/etc/init.d
37 chmod 0755 $(DESTDIR)/var/www/cgi-bin/cooker/*.cgi
39 uninstall-cook:
40 rm -rf \
41 $(DESTDIR)$(PREFIX)/bin/cook \
42 $(DESTDIR)$(PREFIX)/bin/cooker \
43 $(DESTDIR)/etc/slitaz/cook.* \
44 $(DESTDIR)/var/www/cooker
46 # Libcook
48 install-libcook:
49 install -m 0755 -d $(DESTDIR)$(PREFIX)/lib/slitaz
50 install -m 0755 lib/libcook.sh $(DESTDIR)$(PREFIX)/lib/slitaz
52 uninstall-libcook:
53 rm -f $(DESTDIR)$(PREFIX)/lib/slitaz/libcook.sh
55 # Cross
57 install-cross:
58 install -m 0755 -d $(DESTDIR)/etc/slitaz
59 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin
60 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/doc/cookutils
61 install -m 0755 cross $(DESTDIR)$(PREFIX)/bin
62 install -m 0644 cross.conf $(DESTDIR)/etc/slitaz
63 install -m 0644 doc/cross.txt $(DESTDIR)$(PREFIX)/share/doc/cookutils
65 uninstall-cross:
66 rm -rf \
67 $(DESTDIR)$(PREFIX)/bin/cross \
68 $(DESTDIR)/etc/slitaz/cross.conf \
69 $(DESTDIR)$(PREFIX)/share/doc/cookutils/cross.txt
71 # i18n
73 pot:
74 xgettext -o po/cook.pot -k_ -k_n -L Shell -cL10n \
75 --copyright-holder="SliTaz Association" \
76 --package-name="Cook" \
77 --package-version="$(VERSION)" \
78 ./cook
80 msgmerge:
81 @for l in $(LINGUAS); do \
82 echo -n "Updating $$l po file."; \
83 msgmerge -U po/$$l.po po/cook.pot; \
84 done;
86 msgfmt:
87 @for l in $(LINGUAS); do \
88 echo "Compiling $$l mo file..."; \
89 mkdir -p po/mo/$$l/LC_MESSAGES; \
90 msgfmt -o po/mo/$$l/LC_MESSAGES/cook.mo po/$$l.po; \
91 done;
93 # Clean source
95 clean:
96 rm -rf po/mo
97 rm -f po/*.mo
98 rm -f po/*.*~
100 help:
101 @echo "make"
102 @echo " install | uninstall - all"
103 @echo " install-cook | uninstall-cook - cook"
104 @echo " install-libcook | uninstall-libcook - libcook"
105 @echo " install-cross | uninstall-cross - cross"
106 @echo " pot | msgmerge | msgfmt | clean - i18n"