X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=perl-module%2Fautomake.mk;h=c502cbe8b88d763b87e393a7dd61150d4e15e4c2;hb=27a0c1b1d9dc57d2109d8accfccd8df1303d8c46;hp=f3eb19d77a79a1d3ad7a9ce2250925a44380f308;hpb=7006fb25e78f46e26dbabbfacf68b0297e4cd0ea;p=pspp-builds.git diff --git a/perl-module/automake.mk b/perl-module/automake.mk index f3eb19d7..c502cbe8 100644 --- a/perl-module/automake.mk +++ b/perl-module/automake.mk @@ -2,7 +2,6 @@ # PSPP - module_sources = \ perl-module/Changes \ perl-module/COPYING \ @@ -16,7 +15,6 @@ module_sources = \ perl-module/lib/PSPP.pm \ perl-module/t/Pspp.t - perl-module/pspp-module-config: Makefile target=`mktemp`;\ echo '%Locations = (' > $$target ;\ @@ -35,7 +33,11 @@ perl-module/Makefile: perl-module/Makefile.PL perl-module/pspp-module-config module-make: perl-module/Makefile cd perl-module && $(MAKE) $(AM_MAKEFLAGS) -all-local: +perl-module/lib/pspp-vers.pl: src/libpspp/version.c + mkdir -p perl-module/lib + $(GREP) '^\$$VERSION' $(top_builddir)/src/libpspp/version.c | $(SED) -e 's/VERSION/PSPP::VERSION/' > $@ + +all-local: perl-module/lib/pspp-vers.pl if test x"$(top_builddir)" != x"$(top_srcdir)" ; then \ for f in $(module_sources); do \ destdir=`dirname $$f` ;\ @@ -58,22 +60,11 @@ clean-local: fi $(RM) perl-module/Makefile.old -#install-data-local: -# cd perl-module && $(MAKE) $(AM_MAKEFLAGS) doc_install -# -#install-exec-local: -# cd perl-module && $(MAKE) $(AM_MAKEFLAGS) pure_install -# -#uninstall-local: -# cd perl-module && $(MAKE) $(AM_MAKEFLAGS) uninstall -# - CLEANFILES += \ perl-module/pspp-module-config \ + perl-module/lib/pspp-vers.pl \ perl-module/const-c.inc \ perl-module/const-xs.inc - - EXTRA_DIST += $(module_sources)