From 7348fad86391b913ecc41f986066f260efb04633 Mon Sep 17 00:00:00 2001 From: ng0 Date: Tue, 17 Oct 2017 12:29:35 +0000 Subject: [PATCH] Use Suffix Extensions in Makefiles (doc, src/{arm,dht,integration,statistics}) for improved portability. --- doc/Makefile.am | 1 + src/arm/Makefile.am | 3 ++- src/dht/Makefile.am | 3 ++- src/integration-tests/Makefile.am | 3 ++- src/statistics/Makefile.am | 3 ++- 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 $@ -- 2.25.1