parsehosts.c = first step to independent hosts parser
[svn/Prometheus-QoS/.git] / Makefile
CommitLineData
a4f661fc 1PACKAGE=prometheus
208112af 2VERSION=0.8.2
971f8192 3CFLAGS=-std=c99 -Wall
a4f661fc 4prefix=/usr
5mandir=$(prefix)/share/man
f2600e3c 6sbindir=$(prefix)/sbin
03a8ebc8 7sysconfdir=/etc
a4f661fc 8
9main: prometheus
1c9cae56 10 $(CC) -o prometheus parsehosts.c parselogs.c prometheus.c
a4f661fc 11
ab783510 12deb: main
03a8ebc8 13 debian/prometheus.debian
45ae1b12 14 dpkg-buildpackage -rfakeroot
ae776b10 15
16tgz: clean
17 cp -r . ../$(PACKAGE)-$(VERSION)
18 rm -rf ../$(PACKAGE)-$(VERSION)/.svn/
19 rm -rf ../$(PACKAGE)-$(VERSION)/*/.svn/
20 rm -rf ../$(PACKAGE)-$(VERSION)/*~ $(PACKAGE)-$(VERSION)/*/*~
03a8ebc8 21 tar -czf ../$(PACKAGE)-$(VERSION).tar.gz ../$(PACKAGE)-$(VERSION)
ae776b10 22 rm -rf ../$(PACKAGE)-$(VERSION)
23
a4f661fc 24install: main
f2600e3c 25 install -d $(sbindir)
26 install -d $(mandir)/man1
27 install -d $(mandir)/man5
28 install -d $(sysconfdir)/cron.d
6f5053d5 29 install -d $(sysconfdir)/prometheus
f2600e3c 30 install -m 755 prometheus $(sbindir)
31 install -m 644 prometheus.1 $(mandir)/man1
32 install -m 644 prometheus.conf.5 $(mandir)/man5
ec04fc0f 33 install -m 755 conf/prometheus.cron $(sysconfdir)/cron.d/prometheus
34 install -m 755 conf/prometheus.init $(sysconfdir)/init.d/prometheus
35 install -m 600 conf/prometheus.conf $(sysconfdir)/prometheus
36 install -m 600 conf/prometheus.hosts $(sysconfdir)/prometheus/hosts
37 install -m 644 conf/prometheus.default $(sysconfdir)/default/prometheus
a4f661fc 38
39clean:
40 rm -f prometheus
ae776b10 41 rm -f optinal-tools/prometheus-stats
This page took 0.176762 seconds and 4 git commands to generate.