a4f661fc |
1 | PACKAGE=prometheus |
0c419f83 |
2 | VERSION=0.7.7 |
211415b9 |
3 | CFLAGS=-std=c99 |
a4f661fc |
4 | prefix=/usr |
5 | mandir=$(prefix)/share/man |
f2600e3c |
6 | sbindir=$(prefix)/sbin |
7 | sysconfdir=/etc/ |
a4f661fc |
8 | |
9 | main: prometheus |
10 | $(CC) -o prometheus prometheus.c |
11 | |
ab783510 |
12 | deb: main |
13 | ./prometheus.debian |
14 | |
a4f661fc |
15 | install: main |
f2600e3c |
16 | install -d $(sbindir) |
17 | install -d $(mandir)/man1 |
18 | install -d $(mandir)/man5 |
19 | install -d $(sysconfdir)/cron.d |
6f5053d5 |
20 | install -d $(sysconfdir)/prometheus |
f2600e3c |
21 | install -m 755 prometheus $(sbindir) |
22 | install -m 644 prometheus.1 $(mandir)/man1 |
23 | install -m 644 prometheus.conf.5 $(mandir)/man5 |
ec04fc0f |
24 | install -m 755 conf/prometheus.cron $(sysconfdir)/cron.d/prometheus |
25 | install -m 755 conf/prometheus.init $(sysconfdir)/init.d/prometheus |
26 | install -m 600 conf/prometheus.conf $(sysconfdir)/prometheus |
27 | install -m 600 conf/prometheus.hosts $(sysconfdir)/prometheus/hosts |
28 | install -m 644 conf/prometheus.default $(sysconfdir)/default/prometheus |
a4f661fc |
29 | |
30 | clean: |
31 | rm -f prometheus |