all: conf build test etc dashboard dist conf: Makefile conf/substitutions.sed Makefile: Makefile.in conf/substitutions.sed conf/Makefile conf/substitutions.conf conf/substitute.sh conf/substitutions.sed: conf/Makefile conf/substitutions.conf conf/substitutions.conf: cd conf && make build: src/Makefile src/nodes2prom src/json-pp src/Makefile: src/Makefile.in conf/substitute.sh $> $@ src/nodes2prom: src/Makefile cd src && make nodes2prom src/json-pp: src/Makefile cd src && make json-pp test: test/Makefile test/tmp test/Makefile: test/Makefile.in conf/substitute.sh $> $@ test/tmp: cd test && make test etc: etc/Makefile etc/crontab etc/nodes2prometheus.sh etc/Makefile: etc/Makefile.in conf/substitute.sh $> $@ etc/crontab: cd etc && make etc/nodes2prometheus.sh: cd etc && make dashboard: dashboard/Makefile dashboard/%%DASHBOARD_PREFIX%%status.json dashboard/Makefile: dashboard/Makefile.in conf/substitute.sh $> $@ dashboard/%%DASHBOARD_PREFIX%%status.json: cd dashboard && make dist: dist/Makefile dist/nodes2grafana.txz dist/Makefile: dist/Makefile.in conf/substitute.sh $> $@ dist/nodes2grafana.txz: cd dist && rm -f $@ && make install: install-bin install-crontab install-dashboard install-bin: src/nodes2prom src/json-pp etc/nodes2prometheus.sh %%INSTALL_BIN_CMD%% $> %%BIN_DIR%% install-crontab: etc/crontab grep nodes2prometheus.sh %%ETC_DIR%%/crontab > /tmp/crontab.old || \ cat $> >> %%ETC_DIR%%/crontab -diff /tmp/crontab.old $> install-dashboard: cd dashboard && make install clean: cd conf && make clean [ ! -r test/Makefile ] || { cd test && make clean && rm -f Makefile ; } [ ! -r etc/Makefile ] || { cd etc && make clean && rm -f Makefile ; } [ ! -r src/Makefile ] || { cd src && make clean && rm -f Makefile ; } [ ! -r dashboard/Makefile ] || { cd dashboard && make clean && rm -f Makefile ; } [ ! -r dist/Makefile ] || { cd dist && make clean && rm -f Makefile ; }