just <th align="left">
[svn/Prometheus-QoS/.git] / Makefile
1 PACKAGE=prometheus
2 VERSION=0.7.8
3 CFLAGS=-std=c99 -Wall
4 prefix=/usr
5 mandir=$(prefix)/share/man
6 sbindir=$(prefix)/sbin
7 sysconfdir=/etc
8
9 main: prometheus
10 $(CC) -o prometheus prometheus.c
11
12 deb: main
13 debian/prometheus.debian
14 dpkg-buildpackage -rfakeroot
15
16 tgz: 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
24 install: 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
39 clean:
40 rm -f prometheus
41 rm -f optinal-tools/prometheus-stats
This page took 0.279994 seconds and 4 git commands to generate.