all: generated/nrpe_dsa.cfg deb generated/nrpe_dsa.cfg: nagios-master.cfg build-nagios @[ -d generated ] || mkdir generated @echo "building nagios ..." ./build-nagios || ( rm $@ ; false ) @echo "done" clean: @rm -rf generated install: generated/nrpe_dsa.cfg @[ "$$(hostname -f)" = 'draghi.debian.org' ] || (echo "just git push"; exit 1) @rsync -avHz --delete-before --ignore-errors -e 'ssh -t -i /var/lib/puppet/.ssh/id_rsa.puppet-sync' generated static handel.debian.org:draghi.debian.org/nagiosconfig @rsync -avHz --delete-before --ignore-errors -e 'ssh -i /var/lib/puppet/.ssh/id_rsa.puppet-sync' generated static nagiosadm@tchaikovsky.debian.org:/srv/nagios.debian.org/config-pushed/. @ssh -i /var/lib/puppet/.ssh/id_rsa.puppet-sync nagiosadm@tchaikovsky.debian.org icinga-reload .PHONY: all deb