Code

Exporting ENV vars from Makefile is supported only with GNU Make. Use the shell instead.
authorThomas Guyot-Sionnest <dermoth@aei.ca>
Tue, 25 Nov 2008 05:28:51 +0000 (00:28 -0500)
committerThomas Guyot-Sionnest <dermoth@aei.ca>
Tue, 25 Nov 2008 05:28:51 +0000 (00:28 -0500)
plugins-scripts/Makefile.am

index 4c94f2cbb31d1f7a60164360715602f239354ef8..897c724a689ea4a48a0dd13ffefd6694954d6417 100644 (file)
@@ -6,8 +6,6 @@ NP-VERSION-FILE: .FORCE-NP-VERSION-FILE
 
 -include NP-VERSION-FILE
 
-export NP_VERSION:= $(NP_VERSION)
-
 SUFFIXES = .pl .sh
 
 VPATH=$(top_srcdir) $(top_srcdir)/plugins-scripts $(top_srcdir)/plugins-scripts/t
@@ -39,11 +37,11 @@ test-debug:
 CLEANFILES=$(libexec_SCRIPTS)
 
 .pl :
-       $(AWK) -f ./subst $< > $@
+       NP_VERSION=$(NP_VERSION) $(AWK) -f ./subst $< > $@
        chmod +x $@
 
 .sh :
-       $(AWK) -f ./subst $< > $@
+       NP_VERSION=$(NP_VERSION) $(AWK) -f ./subst $< > $@
        chmod +x $@
 
 clean-local: