Makefile.am: Fix Automake portability warning
This silences: Makefile.am:20: warning: escaping \# comment markers is not portable
This commit is contained in:
parent
6dfcede81a
commit
a12398c315
1 changed files with 8 additions and 13 deletions
21
Makefile.am
21
Makefile.am
|
@ -16,19 +16,7 @@ EXTRA_DIST = \
|
||||||
sample-get-ip-from-fritzbox
|
sample-get-ip-from-fritzbox
|
||||||
CLEANFILES =
|
CLEANFILES =
|
||||||
|
|
||||||
# Command that replaces substitution variables with their values.
|
|
||||||
subst = sed \
|
|
||||||
-e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \
|
|
||||||
-e '1 s|^\#\!.*perl$$|\#\!$(PERL)|g' \
|
|
||||||
-e 's|@localstatedir[@]|$(localstatedir)|g' \
|
|
||||||
-e 's|@runstatedir[@]|$(runstatedir)|g' \
|
|
||||||
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
|
|
||||||
-e 's|@CURL[@]|$(CURL)|g'
|
|
||||||
|
|
||||||
# Files that will be generated by passing their *.in file through
|
|
||||||
# $(subst).
|
|
||||||
subst_files = ddclient ddclient.conf
|
subst_files = ddclient ddclient.conf
|
||||||
|
|
||||||
EXTRA_DIST += $(subst_files:=.in)
|
EXTRA_DIST += $(subst_files:=.in)
|
||||||
CLEANFILES += $(subst_files)
|
CLEANFILES += $(subst_files)
|
||||||
|
|
||||||
|
@ -36,7 +24,14 @@ $(subst_files): Makefile
|
||||||
rm -f '$@' '$@'.tmp
|
rm -f '$@' '$@'.tmp
|
||||||
in='$@'.in; \
|
in='$@'.in; \
|
||||||
test -f "$${in}" || in='$(srcdir)/'$${in}; \
|
test -f "$${in}" || in='$(srcdir)/'$${in}; \
|
||||||
$(subst) "$${in}" >'$@'.tmp && \
|
sed \
|
||||||
|
-e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \
|
||||||
|
-e '1 s|^#\!.*perl$$|#\!$(PERL)|g' \
|
||||||
|
-e 's|@localstatedir[@]|$(localstatedir)|g' \
|
||||||
|
-e 's|@runstatedir[@]|$(runstatedir)|g' \
|
||||||
|
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
|
||||||
|
-e 's|@CURL[@]|$(CURL)|g' \
|
||||||
|
"$${in}" >'$@'.tmp && \
|
||||||
{ ! test -x "$${in}" || chmod +x '$@'.tmp; }
|
{ ! test -x "$${in}" || chmod +x '$@'.tmp; }
|
||||||
mv '$@'.tmp '$@'
|
mv '$@'.tmp '$@'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue