storace is on buster
[mirror/dsa-nagios.git] / config / Makefile
1 all: generated/nrpe_dsa.cfg deb
2
3 generated/nrpe_dsa.cfg: nagios-master.cfg build-nagios
4         @[ -d generated ] || mkdir generated
5         @echo "building nagios ..."
6         ./build-nagios || ( rm $@ ; false )
7         @echo "done"
8
9 clean:
10         @rm -rf generated
11
12 install: generated/nrpe_dsa.cfg
13         @[ "$$(hostname -f)" = 'draghi.debian.org' ] || (echo "just git push"; exit 1)
14         @rsync -avHz --delete-before --ignore-errors generated static puppet@handel.debian.org:draghi.debian.org/nagiosconfig
15         @rsync -avHz --delete-before --ignore-errors generated static nagiosadm@tchaikovsky.debian.org:/srv/nagios.debian.org/config-pushed/.
16         @ssh nagiosadm@tchaikovsky.debian.org icinga-reload
17
18 .PHONY: all deb
19