cookutils annotate Makefile @ rev 723
cook: Fixed loglimit function.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Apr 17 21:02:34 2015 +0000 (2015-04-17) |
parents | 96e710ced9e2 |
children |
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 |
slaxemulator@557 | 22 install -m 0755 tazdev/tazdev $(DESTDIR)$(PREFIX)/bin |
slaxemulator@558 | 23 install -m 0644 tazdev/tazdev.conf $(DESTDIR)/etc/slitaz |
pankso@261 | 24 install -m 0755 cook $(DESTDIR)$(PREFIX)/bin |
pankso@261 | 25 install -m 0755 cooker $(DESTDIR)$(PREFIX)/bin |
pankso@320 | 26 install -m 0755 cookiso $(DESTDIR)$(PREFIX)/bin |
pankso@7 | 27 install -m 0644 cook.conf $(DESTDIR)/etc/slitaz |
slaxemulator@553 | 28 install -m 0644 cookiso.conf $(DESTDIR)/etc/slitaz |
pankso@7 | 29 install -m 0644 cook.site $(DESTDIR)/etc/slitaz |
pankso@362 | 30 install -m 0644 web/* $(DESTDIR)/var/www/cgi-bin/cooker |
pankso@362 | 31 install -m 0644 data/*.desktop $(DESTDIR)$(PREFIX)/share/applications |
pankso@362 | 32 install -m 0644 data/cooklist $(DESTDIR)$(PREFIX)/share/cook |
pankso@362 | 33 install -m 0644 data/receipt $(DESTDIR)$(PREFIX)/share/cook |
slaxemulator@554 | 34 install -m 0644 data/exclude.txt $(DESTDIR)$(PREFIX)/share/cook |
pankso@362 | 35 install -m 0644 data/cooktest/* $(DESTDIR)$(PREFIX)/share/cook/cooktest |
pankso@362 | 36 install -m 0644 doc/* $(DESTDIR)$(PREFIX)/share/doc/cookutils |
pankso@362 | 37 install -m 0644 README $(DESTDIR)$(PREFIX)/share/doc/cookutils |
pankso@362 | 38 install -m 0755 init.d/cooker $(DESTDIR)/etc/init.d |
pankso@362 | 39 chmod 0755 $(DESTDIR)/var/www/cgi-bin/cooker/*.cgi |
pankso@7 | 40 |
pankso@422 | 41 uninstall-cook: |
pankso@16 | 42 rm -rf \ |
pankso@7 | 43 $(DESTDIR)$(PREFIX)/bin/cook \ |
pankso@7 | 44 $(DESTDIR)$(PREFIX)/bin/cooker \ |
slaxemulator@553 | 45 $(DESTDIR)/etc/slitaz/cook* \ |
slaxemulator@554 | 46 $(DESTDIR)$(PREFIX)/share/cook \ |
pankso@261 | 47 $(DESTDIR)/var/www/cooker |
pankso@361 | 48 |
pankso@422 | 49 # Libcook |
pankso@422 | 50 |
pankso@422 | 51 install-libcook: |
pankso@422 | 52 install -m 0755 -d $(DESTDIR)$(PREFIX)/lib/slitaz |
pankso@422 | 53 install -m 0755 lib/libcook.sh $(DESTDIR)$(PREFIX)/lib/slitaz |
slaxemulator@504 | 54 install -m 0755 lib/libcookorder.sh $(DESTDIR)$(PREFIX)/lib/slitaz |
slaxemulator@553 | 55 install -m 0755 lib/libcookiso.sh $(DESTDIR)$(PREFIX)/lib/slitaz |
slaxemulator@553 | 56 install -m 0755 lib/libmodular.sh $(DESTDIR)$(PREFIX)/lib/slitaz |
pankso@422 | 57 |
pankso@422 | 58 uninstall-libcook: |
pankso@422 | 59 rm -f $(DESTDIR)$(PREFIX)/lib/slitaz/libcook.sh |
slaxemulator@504 | 60 rm -f $(DESTDIR)$(PREFIX)/lib/slitaz/libcookorder.sh |
slaxemulator@553 | 61 rm -f $(DESTDIR)$(PREFIX)/lib/slitaz/libcookiso.sh |
slaxemulator@553 | 62 rm -f $(DESTDIR)$(PREFIX)/lib/slitaz/libmodular.sh |
pankso@361 | 63 # Cross |
pankso@361 | 64 |
pankso@361 | 65 install-cross: |
pankso@361 | 66 install -m 0755 -d $(DESTDIR)/etc/slitaz |
pankso@361 | 67 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin |
pankso@361 | 68 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/doc/cookutils |
pankso@361 | 69 install -m 0755 cross $(DESTDIR)$(PREFIX)/bin |
pankso@361 | 70 install -m 0644 cross.conf $(DESTDIR)/etc/slitaz |
pankso@361 | 71 install -m 0644 doc/cross.txt $(DESTDIR)$(PREFIX)/share/doc/cookutils |
pankso@361 | 72 |
pankso@361 | 73 uninstall-cross: |
pankso@361 | 74 rm -rf \ |
pankso@361 | 75 $(DESTDIR)$(PREFIX)/bin/cross \ |
pankso@361 | 76 $(DESTDIR)/etc/slitaz/cross.conf \ |
pankso@361 | 77 $(DESTDIR)$(PREFIX)/share/doc/cookutils/cross.txt |