cookutils view Makefile @ rev 557
Add custom tazdev. This custom tazdev is needed for my cooker setup to work.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Nov 22 11:00:21 2012 +0000 (2012-11-22) |
parents | c0684f1e5cee |
children | 3d20efa09240 |
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 tazdev/tazdev $(DESTDIR)$(PREFIX)/bin
23 install -m 0755 tazdev/tazdev.conf $(DESTDIR)/etc/slitaz
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 cookiso.conf $(DESTDIR)/etc/slitaz
29 install -m 0644 cook.site $(DESTDIR)/etc/slitaz
30 install -m 0644 web/* $(DESTDIR)/var/www/cgi-bin/cooker
31 install -m 0644 data/*.desktop $(DESTDIR)$(PREFIX)/share/applications
32 install -m 0644 data/cooklist $(DESTDIR)$(PREFIX)/share/cook
33 install -m 0644 data/receipt $(DESTDIR)$(PREFIX)/share/cook
34 install -m 0644 data/exclude.txt $(DESTDIR)$(PREFIX)/share/cook
35 install -m 0644 data/cooktest/* $(DESTDIR)$(PREFIX)/share/cook/cooktest
36 install -m 0644 doc/* $(DESTDIR)$(PREFIX)/share/doc/cookutils
37 install -m 0644 README $(DESTDIR)$(PREFIX)/share/doc/cookutils
38 install -m 0755 init.d/cooker $(DESTDIR)/etc/init.d
39 chmod 0755 $(DESTDIR)/var/www/cgi-bin/cooker/*.cgi
41 uninstall-cook:
42 rm -rf \
43 $(DESTDIR)$(PREFIX)/bin/cook \
44 $(DESTDIR)$(PREFIX)/bin/cooker \
45 $(DESTDIR)/etc/slitaz/cook* \
46 $(DESTDIR)$(PREFIX)/share/cook \
47 $(DESTDIR)/var/www/cooker
49 # Libcook
51 install-libcook:
52 install -m 0755 -d $(DESTDIR)$(PREFIX)/lib/slitaz
53 install -m 0755 lib/libcook.sh $(DESTDIR)$(PREFIX)/lib/slitaz
54 install -m 0755 lib/libcookorder.sh $(DESTDIR)$(PREFIX)/lib/slitaz
55 install -m 0755 lib/libcookiso.sh $(DESTDIR)$(PREFIX)/lib/slitaz
56 install -m 0755 lib/libmodular.sh $(DESTDIR)$(PREFIX)/lib/slitaz
58 uninstall-libcook:
59 rm -f $(DESTDIR)$(PREFIX)/lib/slitaz/libcook.sh
60 rm -f $(DESTDIR)$(PREFIX)/lib/slitaz/libcookorder.sh
61 rm -f $(DESTDIR)$(PREFIX)/lib/slitaz/libcookiso.sh
62 rm -f $(DESTDIR)$(PREFIX)/lib/slitaz/libmodular.sh
63 # Cross
65 install-cross:
66 install -m 0755 -d $(DESTDIR)/etc/slitaz
67 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin
68 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/doc/cookutils
69 install -m 0755 cross $(DESTDIR)$(PREFIX)/bin
70 install -m 0644 cross.conf $(DESTDIR)/etc/slitaz
71 install -m 0644 doc/cross.txt $(DESTDIR)$(PREFIX)/share/doc/cookutils
73 uninstall-cross:
74 rm -rf \
75 $(DESTDIR)$(PREFIX)/bin/cross \
76 $(DESTDIR)/etc/slitaz/cross.conf \
77 $(DESTDIR)$(PREFIX)/share/doc/cookutils/cross.txt