cookutils view Makefile @ rev 451
cross: dont extract the kernel each time
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 31 15:31:38 2012 +0200 (2012-05-31) |
parents | e60f4a6df297 |
children | 171f41db755c 8fbd30a8686a |
line source
1 # Makefile for SliTaz Cooker.
2 #
4 PREFIX?=/usr
5 DESTDIR?=
7 all:
9 install: install-cook install-libcook install-cross
10 uninstall: uninstall-cook uninstall-libcook uninstall-cross
12 # Cook
14 install-cook:
15 install -m 0755 -d $(DESTDIR)/etc/slitaz
16 install -m 0755 -d $(DESTDIR)/etc/init.d
17 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin
18 install -m 0755 -d $(DESTDIR)/var/www/cgi-bin/cooker
19 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/applications
20 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/cook/cooktest
21 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/doc/cookutils
22 install -m 0755 cook $(DESTDIR)$(PREFIX)/bin
23 install -m 0755 cooker $(DESTDIR)$(PREFIX)/bin
24 install -m 0755 cookiso $(DESTDIR)$(PREFIX)/bin
25 install -m 0644 cook.conf $(DESTDIR)/etc/slitaz
26 install -m 0644 cook.site $(DESTDIR)/etc/slitaz
27 install -m 0644 web/* $(DESTDIR)/var/www/cgi-bin/cooker
28 install -m 0644 data/*.desktop $(DESTDIR)$(PREFIX)/share/applications
29 install -m 0644 data/cooklist $(DESTDIR)$(PREFIX)/share/cook
30 install -m 0644 data/receipt $(DESTDIR)$(PREFIX)/share/cook
31 install -m 0644 data/cooktest/* $(DESTDIR)$(PREFIX)/share/cook/cooktest
32 install -m 0644 doc/* $(DESTDIR)$(PREFIX)/share/doc/cookutils
33 install -m 0644 README $(DESTDIR)$(PREFIX)/share/doc/cookutils
34 install -m 0755 init.d/cooker $(DESTDIR)/etc/init.d
35 chmod 0755 $(DESTDIR)/var/www/cgi-bin/cooker/*.cgi
37 uninstall-cook:
38 rm -rf \
39 $(DESTDIR)$(PREFIX)/bin/cook \
40 $(DESTDIR)$(PREFIX)/bin/cooker \
41 $(DESTDIR)/etc/slitaz/cook.* \
42 $(DESTDIR)/var/www/cooker
44 # Libcook
46 install-libcook:
47 install -m 0755 -d $(DESTDIR)$(PREFIX)/lib/slitaz
48 install -m 0755 lib/libcook.sh $(DESTDIR)$(PREFIX)/lib/slitaz
50 uninstall-libcook:
51 rm -f $(DESTDIR)$(PREFIX)/lib/slitaz/libcook.sh
53 # Cross
55 install-cross:
56 install -m 0755 -d $(DESTDIR)/etc/slitaz
57 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin
58 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/doc/cookutils
59 install -m 0755 cross $(DESTDIR)$(PREFIX)/bin
60 install -m 0644 cross.conf $(DESTDIR)/etc/slitaz
61 install -m 0644 doc/cross.txt $(DESTDIR)$(PREFIX)/share/doc/cookutils
63 uninstall-cross:
64 rm -rf \
65 $(DESTDIR)$(PREFIX)/bin/cross \
66 $(DESTDIR)/etc/slitaz/cross.conf \
67 $(DESTDIR)$(PREFIX)/share/doc/cookutils/cross.txt