summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@infotropique.org>2017-10-17 12:29:35 +0000
committerng0 <ng0@infotropique.org>2017-10-17 12:29:35 +0000
commit7348fad86391b913ecc41f986066f260efb04633 (patch)
treedcf927f6e8974c017d2a0a2bfdfa0c61855e296b
parent4a3f7e1ce17b5109e713cdbb37ad85a8852d4723 (diff)
Use Suffix Extensions in Makefiles (doc, src/{arm,dht,integration,statistics}) for improved portability.
-rw-r--r--doc/Makefile.am1
-rw-r--r--src/arm/Makefile.am3
-rw-r--r--src/dht/Makefile.am3
-rw-r--r--src/integration-tests/Makefile.am3
-rw-r--r--src/statistics/Makefile.am3
5 files changed, 9 insertions, 4 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 1a8bb64b9..d9a68d533 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -150,6 +150,7 @@ lego_stack.png: images/lego_stack.svg
convert images/lego_stack.svg images/lego_stack.png &&
pngcrush images/lego_stack.png images/lego_stack.png
+# FIXME: The usage of 'date' strings causes a warning.
version.texi:
echo "@set UPDATED $(date +'%d %B %Y')" > $@
echo "@set UPDATED-MONTH $(date +'%B %Y')" >> $@
diff --git a/src/arm/Makefile.am b/src/arm/Makefile.am
index 373847fde..b1706a479 100644
--- a/src/arm/Makefile.am
+++ b/src/arm/Makefile.am
@@ -92,7 +92,8 @@ test_gnunet_service_arm_SOURCES = \
do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
-%.py: %.py.in Makefile
+SUFFIXES = .py.in .py
+.py.in.py:
$(do_subst) < $(srcdir)/$< > $@
chmod +x $@
diff --git a/src/dht/Makefile.am b/src/dht/Makefile.am
index 00ce0e934..4a78ea4c7 100644
--- a/src/dht/Makefile.am
+++ b/src/dht/Makefile.am
@@ -213,7 +213,8 @@ endif
do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' -e 's,[@]bindir[@],$(bindir),g'
-%.py: %.py.in Makefile
+SUFFIXES = .py.in .py
+.py.in.py:
$(do_subst) < $(srcdir)/$< > $@
chmod +x $@
diff --git a/src/integration-tests/Makefile.am b/src/integration-tests/Makefile.am
index 6fff0b407..368980064 100644
--- a/src/integration-tests/Makefile.am
+++ b/src/integration-tests/Makefile.am
@@ -42,7 +42,8 @@ endif
do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
-%.py: %.py.in Makefile
+SUFFIXES = .py.in .py
+.py.in.py:
$(do_subst) < $(srcdir)/$< > $@
chmod +x $@
diff --git a/src/statistics/Makefile.am b/src/statistics/Makefile.am
index b2e256960..16a1ea2d0 100644
--- a/src/statistics/Makefile.am
+++ b/src/statistics/Makefile.am
@@ -90,7 +90,8 @@ endif
do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
-%.py: %.py.in Makefile
+SUFFIXES = .py.in .py
+.py.in.py:
$(do_subst) < $(srcdir)/$< > $@
chmod +x $@