PACKAGE = collectd-systemd VERSION = 20170820 include $(dir $(lastword $(MAKEFILE_LIST)))/config.mk include $(topsrcdir)/build-aux/Makefile.head.mk files.src.gen += LICENSE files.out.all += systemd.conf #files.out.all += systemd.types.db #files.out.all += systemd.py files.sys.all += $(collectd_confdir)/systemd.conf files.sys.all += $(collectd_typesdir)/systemd.types.db files.sys.all += $(collectd_pythondir)/systemd.py $(outdir)/%: $(srcdir)/%.in sed $(foreach v,$(patsubst $(var.)%,%,$(filter $(var.)%,$^)), -e 's|@$(v)@|$($(v))|g' ) < $< > $@ $(outdir)/systemd.conf: $(var.)collectd_typesdir $(outdir)/systemd.conf: $(var.)collectd_pythondir $(DESTDIR)$(collectd_confdir)/systemd.conf: $(outdir)/systemd.conf $(INSTALL_DATA) -DT $< $@ $(DESTDIR)$(collectd_typesdir)/systemd.types.db: $(srcdir)/systemd.types.db $(INSTALL_DATA) -DT $< $@ $(DESTDIR)$(collectd_pythondir)/systemd.py: $(srcdir)/systemd.py $(INSTALL_PROGRAM) -DT $< $@ $(srcdir)/LICENSE: wget -O $@ https://www.gnu.org/licenses/gpl-2.0.txt .SECONDARY: .DELETE_ON_ERROR: include $(topsrcdir)/build-aux/Makefile.tail.mk