X-Git-Url: http://git.ipfire.org/?p=ddns.git;a=blobdiff_plain;f=Makefile.am;h=7201a93cee39c42df2875ae8857070d7b42dc2ab;hp=a783064e887694ae836280b6cec32ac05e6e47cc;hb=673f2c7418c02fde9b9651d1887cc0cdf7b5a80f;hpb=c510004df54473dfd43e4c6c7b9025b16a26794a diff --git a/Makefile.am b/Makefile.am index a783064..7201a93 100644 --- a/Makefile.am +++ b/Makefile.am @@ -37,6 +37,7 @@ configsdir = $(sysconfdir)/ddns CLEANFILES = DISTCLEANFILES = EXTRA_DIST = +INSTALL_DIRS = noinst_DATA = @INTLTOOL_POLICY_RULE@ @@ -45,6 +46,9 @@ noinst_DATA = update-po: $(MAKE) -C po update-po +DISTCHECK_CONFIGURE_FLAGS = \ + --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) + # ------------------------------------------------------------------------------ AM_V_XSLT = $(AM_V_XSLT_$(V)) @@ -135,10 +139,29 @@ endif # ------------------------------------------------------------------------------ +if HAVE_SYSTEMD +systemdsystemunit_DATA = \ + src/systemd/ddns.service \ + src/systemd/ddns.timer + +CLEANFILES += \ + $(systemdsystemunit_DATA) + +INSTALL_DIRS += \ + $(systemdsystemunitdir) +endif + +EXTRA_DIST += \ + src/systemd/ddns.service.in \ + src/systemd/ddns.timer + +# ------------------------------------------------------------------------------ + substitutions = \ '|PACKAGE_NAME=$(PACKAGE_NAME)|' \ '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \ - '|configsdir=$(configsdir)|' + '|configsdir=$(configsdir)|' \ + '|bindir=$(bindir)|' SED_PROCESS = \ $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ @@ -147,3 +170,6 @@ SED_PROCESS = \ ddns: ddns.in Makefile $(SED_PROCESS) + +src/systemd/%: src/systemd/%.in Makefile + $(SED_PROCESS)