a4f661fc |
1 | PACKAGE=prometheus |
0c419f83 |
2 | VERSION=0.7.7 |
a4f661fc |
3 | CFLAGS=-Wall |
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 | |
12 | install: main |
f2600e3c |
13 | install -d $(sbindir) |
14 | install -d $(mandir)/man1 |
15 | install -d $(mandir)/man5 |
16 | install -d $(sysconfdir)/cron.d |
17 | install -m 755 prometheus $(sbindir) |
18 | install -m 644 prometheus.1 $(mandir)/man1 |
19 | install -m 644 prometheus.conf.5 $(mandir)/man5 |
20 | install -m 755 sample-configuration/prometheus.cron $(sysconfdir)/cron.d/prometheus |
a4f661fc |
21 | |
22 | clean: |
23 | rm -f prometheus |