Use @VARIABLE@ instead of $(VARIABLE) consistently in Makefiles.
[pspp-builds.git] / src / libpspp / automake.mk
index c7992b463593a57e6888bf82346cc926da529ad0..746756d8900ba0207e45ae77718ed8dbab8dda91 100644 (file)
@@ -89,12 +89,12 @@ src/libpspp/version.c: $(top_srcdir)/AUTHORS Makefile
        echo "   Generated by src/libpspp/automake.mk --- Do not edit.">> $@
        echo "" >> $@
        echo "   The following line is for the benefit of the perl module" >>$@
-       echo "\$$VERSION='`echo '$(VERSION)' | sed 's/-.*//'`';" >> $@
+       echo "\$$VERSION='$(VERSION_FOR_PERL)';" >> $@
        echo "*/" >> $@
        echo "#include \"version.h\"" >> $@
-       echo "const char bare_version[] = \"@VERSION@\";" >> $@
-       echo "const char version[] = \"GNU @PACKAGE@ @VERSION@\";" >> $@
-       echo "const char stat_version[] = \"GNU @PACKAGE@ @VERSION@ \
+       echo "const char bare_version[] = \"$(VERSION)\";" >> $@
+       echo "const char version[] = \"GNU $(PACKAGE) $(VERSION)\";" >> $@
+       echo "const char stat_version[] = \"GNU $(PACKAGE) $(VERSION) \
 (`date`).\";" >> $@
        echo "const char host_system[] = \"$(host_triplet)\";" >> $@
        echo "const char build_system[] = \"$(build_triplet)\";" >> $@