aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2011-10-11 09:31:55 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2011-10-11 09:31:55 +0000
commita2a317eb0bc418577461105790c70b363a10cc34 (patch)
treef842b749f26e5bda2f57febb6dee2023f26bfd70
parent5090c34ee1251dd8f0a57332feff0c99489f7faa (diff)
* Distribute GeneratePatches.pm.
-rw-r--r--perl/Makefile.am10
1 files 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