aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/Makefile.am15
1 files changed, 14 insertions, 1 deletions
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 = \
70 70
71do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' 71do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
72 72
73%.py: %.py.in Makefile 73# Use SUFFIX Extension rules, they are more portable for every
74# implementation of 'make'.
75# You'll also run into the "'%' is a GNU make extension warning"
76# if you use this:
77#
78#%.py: %.py.in Makefile
79# $(do_subst) < $< > $@
80# chmod +x $@
81#
82# instead of this:
83
84SUFFIXES = .py.in .py
85
86.py.in.py:
74 $(do_subst) < $< > $@ 87 $(do_subst) < $< > $@
75 chmod +x $@ 88 chmod +x $@
76 89