PACKAGE=prometheus
-VERSION=0.7.7
+VERSION=0.8.1
CFLAGS=-std=c99 -Wall
prefix=/usr
mandir=$(prefix)/share/man
sbindir=$(prefix)/sbin
-sysconfdir=/etc/
+sysconfdir=/etc
main: prometheus
$(CC) -o prometheus prometheus.c
deb: main
- ./prometheus.debian
-
+ debian/prometheus.debian
+ dpkg-buildpackage -rfakeroot
+
+tgz: clean
+ cp -r . ../$(PACKAGE)-$(VERSION)
+ rm -rf ../$(PACKAGE)-$(VERSION)/.svn/
+ rm -rf ../$(PACKAGE)-$(VERSION)/*/.svn/
+ rm -rf ../$(PACKAGE)-$(VERSION)/*~ $(PACKAGE)-$(VERSION)/*/*~
+ tar -czf ../$(PACKAGE)-$(VERSION).tar.gz ../$(PACKAGE)-$(VERSION)
+ rm -rf ../$(PACKAGE)-$(VERSION)
+
install: main
install -d $(sbindir)
install -d $(mandir)/man1
clean:
rm -f prometheus
+ rm -f optinal-tools/prometheus-stats