aboutsummaryrefslogtreecommitdiff
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)
downloadgnunet-7348fad86391b913ecc41f986066f260efb04633.tar.gz
gnunet-7348fad86391b913ecc41f986066f260efb04633.zip
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
150 convert images/lego_stack.svg images/lego_stack.png && 150 convert images/lego_stack.svg images/lego_stack.png &&
151 pngcrush images/lego_stack.png images/lego_stack.png 151 pngcrush images/lego_stack.png images/lego_stack.png
152 152
153# FIXME: The usage of 'date' strings causes a warning.
153version.texi: 154version.texi:
154 echo "@set UPDATED $(date +'%d %B %Y')" > $@ 155 echo "@set UPDATED $(date +'%d %B %Y')" > $@
155 echo "@set UPDATED-MONTH $(date +'%B %Y')" >> $@ 156 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 = \
92 92
93do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' 93do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
94 94
95%.py: %.py.in Makefile 95SUFFIXES = .py.in .py
96.py.in.py:
96 $(do_subst) < $(srcdir)/$< > $@ 97 $(do_subst) < $(srcdir)/$< > $@
97 chmod +x $@ 98 chmod +x $@
98 99
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
213 213
214do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' -e 's,[@]bindir[@],$(bindir),g' 214do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' -e 's,[@]bindir[@],$(bindir),g'
215 215
216%.py: %.py.in Makefile 216SUFFIXES = .py.in .py
217.py.in.py:
217 $(do_subst) < $(srcdir)/$< > $@ 218 $(do_subst) < $(srcdir)/$< > $@
218 chmod +x $@ 219 chmod +x $@
219 220
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
42 42
43do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' 43do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
44 44
45%.py: %.py.in Makefile 45SUFFIXES = .py.in .py
46.py.in.py:
46 $(do_subst) < $(srcdir)/$< > $@ 47 $(do_subst) < $(srcdir)/$< > $@
47 chmod +x $@ 48 chmod +x $@
48 49
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
90 90
91do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' 91do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
92 92
93%.py: %.py.in Makefile 93SUFFIXES = .py.in .py
94.py.in.py:
94 $(do_subst) < $(srcdir)/$< > $@ 95 $(do_subst) < $(srcdir)/$< > $@
95 chmod +x $@ 96 chmod +x $@
96 97