|
@@ -7,7 +7,7 @@ Makefile: Makefile.in conf/substitutions.sed conf/Makefile conf/substitutions.co
|
|
|
conf/substitutions.sed: conf/Makefile conf/substitutions.conf
|
|
|
|
|
|
conf/substitutions.conf:
|
|
|
- cd conf && make
|
|
|
+ cd conf && ${MAKE}
|
|
|
|
|
|
build: src/Makefile src/nodes2prom src/json-pp
|
|
|
|
|
@@ -15,10 +15,10 @@ src/Makefile: src/Makefile.in
|
|
|
conf/substitute.sh $> $@
|
|
|
|
|
|
src/nodes2prom: src/Makefile
|
|
|
- cd src && make nodes2prom
|
|
|
+ cd src && ${MAKE} nodes2prom
|
|
|
|
|
|
src/json-pp: src/Makefile
|
|
|
- cd src && make json-pp
|
|
|
+ cd src && ${MAKE} json-pp
|
|
|
|
|
|
test: test/Makefile test/tmp
|
|
|
|
|
@@ -26,7 +26,7 @@ test/Makefile: test/Makefile.in
|
|
|
conf/substitute.sh $> $@
|
|
|
|
|
|
test/tmp:
|
|
|
- cd test && make test
|
|
|
+ cd test && ${MAKE} test
|
|
|
|
|
|
etc: etc/Makefile etc/crontab etc/nodes2prometheus.sh
|
|
|
|
|
@@ -34,10 +34,10 @@ etc/Makefile: etc/Makefile.in
|
|
|
conf/substitute.sh $> $@
|
|
|
|
|
|
etc/crontab:
|
|
|
- cd etc && make
|
|
|
+ cd etc && ${MAKE}
|
|
|
|
|
|
etc/nodes2prometheus.sh:
|
|
|
- cd etc && make
|
|
|
+ cd etc && ${MAKE}
|
|
|
|
|
|
dashboard: dashboard/Makefile dashboard/%%DASHBOARD_PREFIX%%status.json
|
|
|
|
|
@@ -45,7 +45,7 @@ dashboard/Makefile: dashboard/Makefile.in
|
|
|
conf/substitute.sh $> $@
|
|
|
|
|
|
dashboard/%%DASHBOARD_PREFIX%%status.json:
|
|
|
- cd dashboard && make
|
|
|
+ cd dashboard && ${MAKE}
|
|
|
|
|
|
dist: dist/Makefile dist/nodes2grafana.txz
|
|
|
|
|
@@ -53,7 +53,7 @@ dist/Makefile: dist/Makefile.in
|
|
|
conf/substitute.sh $> $@
|
|
|
|
|
|
dist/nodes2grafana.txz:
|
|
|
- cd dist && rm -f $@ && make
|
|
|
+ cd dist && rm -f $@ && ${MAKE}
|
|
|
|
|
|
install: install-bin install-crontab install-dashboard
|
|
|
|
|
@@ -66,12 +66,12 @@ install-crontab: etc/crontab
|
|
|
-diff /tmp/crontab.old $>
|
|
|
|
|
|
install-dashboard:
|
|
|
- cd dashboard && make install
|
|
|
+ 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 ; }
|
|
|
+ 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 ; }
|