json bug fix :-)
[svn/Prometheus-QoS/.git] / Makefile
... / ...
CommitLineData
1PACKAGE=prometheus
2VERSION=0.8.2
3CFLAGS=-std=c99 -Wall
4prefix=/usr
5mandir=$(prefix)/share/man
6sbindir=$(prefix)/sbin
7sysconfdir=/etc
8
9main: prometheus
10 $(CC) -o prometheus prometheus.c
11
12deb: main
13 debian/prometheus.debian
14 dpkg-buildpackage -rfakeroot
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)/*/*~
21 tar -czf ../$(PACKAGE)-$(VERSION).tar.gz ../$(PACKAGE)-$(VERSION)
22 rm -rf ../$(PACKAGE)-$(VERSION)
23
24install: main
25 install -d $(sbindir)
26 install -d $(mandir)/man1
27 install -d $(mandir)/man5
28 install -d $(sysconfdir)/cron.d
29 install -d $(sysconfdir)/prometheus
30 install -m 755 prometheus $(sbindir)
31 install -m 644 prometheus.1 $(mandir)/man1
32 install -m 644 prometheus.conf.5 $(mandir)/man5
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
38
39clean:
40 rm -f prometheus
41 rm -f optinal-tools/prometheus-stats
This page took 0.109471 seconds and 4 git commands to generate.