From: ng0 Date: Tue, 17 Oct 2017 11:53:30 +0000 (+0000) Subject: contrib/Makefile.am: Use more portable Suffixes Extensions. X-Git-Tag: gnunet-0.11.0rc0~101^2~58 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4a3f7e1ce17b5109e713cdbb37ad85a8852d4723;p=oweals%2Fgnunet.git contrib/Makefile.am: Use more portable Suffixes Extensions. --- diff --git a/contrib/Makefile.am b/contrib/Makefile.am index 07cff424c..ac8b15188 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -70,7 +70,20 @@ CLEANFILES = \ do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' -%.py: %.py.in Makefile +# Use SUFFIX Extension rules, they are more portable for every +# implementation of 'make'. +# You'll also run into the "'%' is a GNU make extension warning" +# if you use this: +# +#%.py: %.py.in Makefile +# $(do_subst) < $< > $@ +# chmod +x $@ +# +# instead of this: + +SUFFIXES = .py.in .py + +.py.in.py: $(do_subst) < $< > $@ chmod +x $@