hosts-ping: moving averages added
[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
0b9c3c19 8OBJECTS=parsehosts.o parseiptables.o parselogs.o ipv4subnets.o ipv6subnets.o json.o htmlandlogs.o help.o prometheus.o
fe87b98b 9HEADERS=cll1-0.6.2.h ipstruct.h
a4f661fc 10
11main: prometheus
fe87b98b 12
13%.o: %.c $(HEADERS)
14 gcc -c $< -o $@
15
16prometheus: $(OBJECTS)
17 $(CC) $(OBJECTS) -o prometheus
a4f661fc 18
ab783510 19deb: main
03a8ebc8 20 debian/prometheus.debian
45ae1b12 21 dpkg-buildpackage -rfakeroot
ae776b10 22
23tgz: clean
24 cp -r . ../$(PACKAGE)-$(VERSION)
25 rm -rf ../$(PACKAGE)-$(VERSION)/.svn/
26 rm -rf ../$(PACKAGE)-$(VERSION)/*/.svn/
27 rm -rf ../$(PACKAGE)-$(VERSION)/*~ $(PACKAGE)-$(VERSION)/*/*~
03a8ebc8 28 tar -czf ../$(PACKAGE)-$(VERSION).tar.gz ../$(PACKAGE)-$(VERSION)
ae776b10 29 rm -rf ../$(PACKAGE)-$(VERSION)
30
a4f661fc 31install: main
f2600e3c 32 install -d $(sbindir)
33 install -d $(mandir)/man1
34 install -d $(mandir)/man5
35 install -d $(sysconfdir)/cron.d
6f5053d5 36 install -d $(sysconfdir)/prometheus
f2600e3c 37 install -m 755 prometheus $(sbindir)
38 install -m 644 prometheus.1 $(mandir)/man1
39 install -m 644 prometheus.conf.5 $(mandir)/man5
ec04fc0f 40 install -m 755 conf/prometheus.cron $(sysconfdir)/cron.d/prometheus
41 install -m 755 conf/prometheus.init $(sysconfdir)/init.d/prometheus
42 install -m 600 conf/prometheus.conf $(sysconfdir)/prometheus
43 install -m 600 conf/prometheus.hosts $(sysconfdir)/prometheus/hosts
44 install -m 644 conf/prometheus.default $(sysconfdir)/default/prometheus
a4f661fc 45
46clean:
47 rm -f prometheus
fe87b98b 48 rm -f $(OBJECTS)
This page took 0.237729 seconds and 4 git commands to generate.