slitaz-forge view tank/Makefile @ rev 241

tank: use include and create rrd dirs
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 07 22:31:56 2012 +0200 (2012-04-07)
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