From a2a317eb0bc418577461105790c70b363a10cc34 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 11 Oct 2011 09:31:55 +0000 Subject: [PATCH] * Distribute GeneratePatches.pm. --- perl/Makefile.am | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/perl/Makefile.am b/perl/Makefile.am index a459bdc87..d41340af0 100644 --- a/perl/Makefile.am +++ b/perl/Makefile.am @@ -2,11 +2,13 @@ perlversion := $(shell perl -e 'use Config; print $$Config{version};') perlarchname := $(shell perl -e 'use Config; print $$Config{archname};') perllibdir = $(libdir)/perl5/site_perl/$(perlversion)/$(perlarchname) -all: lib/Nix/Config.pm +PERL_MODULES = lib/Nix/Store.pm lib/Nix/Manifest.pm lib/Nix/GeneratePatches.pm lib/Nix/Config.pm.in -install-exec-local: lib/Nix/*.pm lib/Nix/Config.pm +all: $(PERL_MODULES:.in=) + +install-exec-local: $(PERL_MODULES:.in=) $(INSTALL) -d $(DESTDIR)$(perllibdir)/Nix - $(INSTALL_DATA) lib/Nix/*.pm $(DESTDIR)$(perllibdir)/Nix + $(INSTALL_DATA) $(PERL_MODULES:.in=) $(DESTDIR)$(perllibdir)/Nix $(INSTALL) -d $(DESTDIR)$(perllibdir)/auto/Nix/Store ln -sfn $(pkglibdir)/libNixStore.so $(DESTDIR)$(perllibdir)/auto/Nix/Store/Store.so @@ -24,6 +26,6 @@ AM_CXXFLAGS = \ lib/Nix/Store.cc: lib/Nix/Store.xs xsubpp $^ -output $@ -EXTRA_DIST = lib/Nix/Store.pm lib/Nix/Manifest.pm lib/Nix/Config.pm.in lib/Nix/Store.xs +EXTRA_DIST = $(PERL_MODULES) lib/Nix/Store.xs include ../substitute.mk