X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fautomake.mk;h=0892a481c865e22af3fbff2490efccb7b3796680;hb=1c34ef6b7f0a6af23141cb117429ab46f8c3a6c5;hp=ca8bac6b4996ec71126c423113039c7c32c2d82b;hpb=6b55442545f78ac54922e1a5b080b87b2b65f28c;p=pspp diff --git a/src/libpspp/automake.mk b/src/libpspp/automake.mk index ca8bac6b49..0892a481c8 100644 --- a/src/libpspp/automake.mk +++ b/src/libpspp/automake.mk @@ -122,6 +122,12 @@ src/libpspp/version.c: $(top_srcdir)/AUTHORS Makefile $(AM_V_at)echo "#include \"version.h\"" >> $@,tmp $(AM_V_at)echo "const char bare_version[] = \"$(VERSION)\";" >> $@,tmp $(AM_V_at)echo "const char version[] = \"GNU $(PACKAGE) $(VERSION)\";" >> $@,tmp + $(AM_V_at)printf "const char announced_version[] = \"GNU $(PACKAGE) $(VERSION)\"" >> $@,tmp + @case `echo $(VERSION) | $(SED) -e 's/[0-9][0-9]*\.[0-9]*\([0-9]\)\.[0-9][0-9]*/\1/'` in \ + [13579]) printf "\"\\\nThis is an unreleased test version. It is not recommended for production use. Use at your own risk\"" >> $@,tmp \ + ;;\ + esac + $(AM_V_at)printf ";\n" >> $@,tmp $(AM_V_at)echo "const char host_system[] = \"$(host_triplet)\";" >> $@,tmp $(AM_V_at)echo "const char build_system[] = \"$(build_triplet)\";" >> $@,tmp $(AM_V_at)echo "const char locale_dir[] = \"$(datadir)/locale\";" >> $@,tmp