cookutils annotate Makefile @ rev 551
libmodular.sh: Add some comments.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Oct 16 16:06:34 2012 +0000 (2012-10-16) |
parents | 50cd87593dae |
children | 74b79201a971 |
rev | line source |
---|---|
pankso@7 | 1 # Makefile for SliTaz Cooker. |
pankso@7 | 2 # |
pankso@7 | 3 |
pankso@7 | 4 PREFIX?=/usr |
pankso@7 | 5 DESTDIR?= |
pankso@7 | 6 |
pankso@7 | 7 all: |
pankso@7 | 8 |
pankso@422 | 9 install: install-cook install-libcook install-cross |
pankso@422 | 10 uninstall: uninstall-cook uninstall-libcook uninstall-cross |
pankso@422 | 11 |
pankso@422 | 12 # Cook |
pankso@422 | 13 |
pankso@422 | 14 install-cook: |
pankso@361 | 15 install -m 0755 -d $(DESTDIR)/etc/slitaz |
pankso@362 | 16 install -m 0755 -d $(DESTDIR)/etc/init.d |
pankso@362 | 17 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin |
pankso@362 | 18 install -m 0755 -d $(DESTDIR)/var/www/cgi-bin/cooker |
pankso@361 | 19 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/applications |
pankso@362 | 20 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/cook/cooktest |
pankso@361 | 21 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/doc/cookutils |
pankso@261 | 22 install -m 0755 cook $(DESTDIR)$(PREFIX)/bin |
pankso@261 | 23 install -m 0755 cooker $(DESTDIR)$(PREFIX)/bin |
pankso@320 | 24 install -m 0755 cookiso $(DESTDIR)$(PREFIX)/bin |
pankso@7 | 25 install -m 0644 cook.conf $(DESTDIR)/etc/slitaz |
pankso@7 | 26 install -m 0644 cook.site $(DESTDIR)/etc/slitaz |
pankso@362 | 27 install -m 0644 web/* $(DESTDIR)/var/www/cgi-bin/cooker |
pankso@362 | 28 install -m 0644 data/*.desktop $(DESTDIR)$(PREFIX)/share/applications |
pankso@362 | 29 install -m 0644 data/cooklist $(DESTDIR)$(PREFIX)/share/cook |
pankso@362 | 30 install -m 0644 data/receipt $(DESTDIR)$(PREFIX)/share/cook |
pankso@362 | 31 install -m 0644 data/cooktest/* $(DESTDIR)$(PREFIX)/share/cook/cooktest |
pankso@362 | 32 install -m 0644 doc/* $(DESTDIR)$(PREFIX)/share/doc/cookutils |
pankso@362 | 33 install -m 0644 README $(DESTDIR)$(PREFIX)/share/doc/cookutils |
pankso@362 | 34 install -m 0755 init.d/cooker $(DESTDIR)/etc/init.d |
pankso@362 | 35 chmod 0755 $(DESTDIR)/var/www/cgi-bin/cooker/*.cgi |
pankso@7 | 36 |
pankso@422 | 37 uninstall-cook: |
pankso@16 | 38 rm -rf \ |
pankso@7 | 39 $(DESTDIR)$(PREFIX)/bin/cook \ |
pankso@7 | 40 $(DESTDIR)$(PREFIX)/bin/cooker \ |
pankso@16 | 41 $(DESTDIR)/etc/slitaz/cook.* \ |
pankso@261 | 42 $(DESTDIR)/var/www/cooker |
pankso@361 | 43 |
pankso@422 | 44 # Libcook |
pankso@422 | 45 |
pankso@422 | 46 install-libcook: |
pankso@422 | 47 install -m 0755 -d $(DESTDIR)$(PREFIX)/lib/slitaz |
pankso@422 | 48 install -m 0755 lib/libcook.sh $(DESTDIR)$(PREFIX)/lib/slitaz |
slaxemulator@504 | 49 install -m 0755 lib/libcookorder.sh $(DESTDIR)$(PREFIX)/lib/slitaz |
pankso@422 | 50 |
pankso@422 | 51 uninstall-libcook: |
pankso@422 | 52 rm -f $(DESTDIR)$(PREFIX)/lib/slitaz/libcook.sh |
slaxemulator@504 | 53 rm -f $(DESTDIR)$(PREFIX)/lib/slitaz/libcookorder.sh |
pankso@361 | 54 # Cross |
pankso@361 | 55 |
pankso@361 | 56 install-cross: |
pankso@361 | 57 install -m 0755 -d $(DESTDIR)/etc/slitaz |
pankso@361 | 58 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin |
pankso@361 | 59 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/doc/cookutils |
pankso@361 | 60 install -m 0755 cross $(DESTDIR)$(PREFIX)/bin |
pankso@361 | 61 install -m 0644 cross.conf $(DESTDIR)/etc/slitaz |
pankso@361 | 62 install -m 0644 doc/cross.txt $(DESTDIR)$(PREFIX)/share/doc/cookutils |
pankso@361 | 63 |
pankso@361 | 64 uninstall-cross: |
pankso@361 | 65 rm -rf \ |
pankso@361 | 66 $(DESTDIR)$(PREFIX)/bin/cross \ |
pankso@361 | 67 $(DESTDIR)/etc/slitaz/cross.conf \ |
pankso@361 | 68 $(DESTDIR)$(PREFIX)/share/doc/cookutils/cross.txt |