cookutils view Makefile @ rev 339

cookiso: this time it should work
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 17 22:58:41 2012 +0100 (2012-03-17)
parents 677fbd5cf708
children e7e7979eb49d
line source
1 # Makefile for SliTaz Cooker.
2 #
4 PREFIX?=/usr
5 DESTDIR?=
7 all:
9 install:
10 install -m 0777 -d $(DESTDIR)/etc/slitaz
11 install -m 0777 -d $(DESTDIR)$(PREFIX)/bin
12 install -m 0777 -d $(DESTDIR)/var/www/cooker
13 install -m 0777 -d $(DESTDIR)$(PREFIX)/share/applications
14 install -m 0777 -d $(DESTDIR)$(PREFIX)/share/cook
15 install -m 0777 -d $(DESTDIR)$(PREFIX)/share/doc/cookutils
16 install -m 0755 cook $(DESTDIR)$(PREFIX)/bin
17 install -m 0755 cooker $(DESTDIR)$(PREFIX)/bin
18 install -m 0755 cookiso $(DESTDIR)$(PREFIX)/bin
19 install -m 0644 cook.conf $(DESTDIR)/etc/slitaz
20 install -m 0644 cook.site $(DESTDIR)/etc/slitaz
21 install -m 0644 web/* $(DESTDIR)/var/www/cooker
22 cp -r data/*.desktop $(DESTDIR)$(PREFIX)/share/applications
23 cp -r data/* $(DESTDIR)$(PREFIX)/share/cook
24 rm $(DESTDIR)$(PREFIX)/share/cook/*.desktop
25 cp -r doc/* $(DESTDIR)$(PREFIX)/share/doc/cookutils
26 cp -r README $(DESTDIR)$(PREFIX)/share/doc/cookutils
27 cp -r init.d $(DESTDIR)/etc
29 uninstall:
30 rm -rf \
31 $(DESTDIR)$(PREFIX)/bin/cook \
32 $(DESTDIR)$(PREFIX)/bin/cooker \
33 $(DESTDIR)/etc/slitaz/cook.* \
34 $(DESTDIR)/var/www/cooker