slitaz-forge view tank/Makefile @ rev 349
mirror: add QR code (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 20 19:56:45 2013 +0100 (2013-03-20) |
parents | 49aa1db4bf6e |
children | 50a406984716 |
line source
1 # Makefile for Tank tools.
2 # Check the README for more information.
3 #
4 PREFIX?=/usr
5 DESTDIR?=
6 WEB?=/home/slitaz/www
8 all:
10 install:
11 mkdir -p $(DESTDIR)$(PREFIX)/bin \
12 $(DESTDIR)$(PREFIX)/share \
13 $(WEB)/tank/log/rrd \
14 $(WEB)/tank/images/rrd
15 cp -f tank $(DESTDIR)$(PREFIX)/bin
16 cp -a files/var $(DESTDIR)/
17 chmod 0600 $(DESTDIR)/var/spool/cron/crontabs/root
18 cp -a files/etc $(DESTDIR)/
19 cp -a files/usr/bin $(DESTDIR)/
20 /etc/init.d/crond restart
21 /etc/init.d/lighttpd restart
23 uninstall:
24 rm -f $(PREFIX)/bin/tank
25 rm -rf $(PREFIX)/share/tank
26 rm -rf /etc/awstats/*.slitaz.org.conf