6 INSTALL_PREFIX
= /usr
/share
/metriccd
8 METER_FILES
= $(wildcard meter
/*)
9 INSTALL_FILES
= $(foreach f
,$(METER_FILES
) collect submit common.pl
,$(INSTALL_PREFIX
)/$(f
))
12 install: check-deps
/etc
/cron.d
/metriccd
$(INSTALL_FILES
)
14 /etc
/cron.d
/metriccd
: cronjob
16 $(error METRICCD_HOST is not set
)
18 cat
$< | sed
-e
's/{{METRICCD_HOST}}/$(METRICCD_HOST)/g' > $@~
21 $(INSTALL_PREFIX
) $(INSTALL_PREFIX
)/meter
:
24 $(INSTALL_FILES
): $(INSTALL_PREFIX
)/%: % |
$(INSTALL_PREFIX
) $(INSTALL_PREFIX
)/meter
33 .PHONY
: try-satisfy-deps
35 apt
install moreutils conntrack netcat-openbsd