diff options
Diffstat (limited to 'perl/Makefile.am')
-rw-r--r-- | perl/Makefile.am | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/perl/Makefile.am b/perl/Makefile.am index 5c841052f143..d1f9b1c74162 100644 --- a/perl/Makefile.am +++ b/perl/Makefile.am @@ -2,9 +2,12 @@ PERL_MODULES = lib/Nix/Store.pm lib/Nix/Manifest.pm lib/Nix/GeneratePatches.pm l all: $(PERL_MODULES:.in=) -install-exec-local: $(PERL_MODULES:.in=) +install-exec-local: $(PERL_MODULES:.in=) install-perl-xs $(INSTALL) -d $(DESTDIR)$(perllibdir)/Nix $(INSTALL_DATA) $(PERL_MODULES:.in=) $(DESTDIR)$(perllibdir)/Nix + +if PERL_BINDINGS +install-perl-xs: $(INSTALL) -d $(DESTDIR)$(perllibdir)/auto/Nix/Store ln -sfn $(pkglibdir)/libNixStore$(dynlib_suffix) $(DESTDIR)$(perllibdir)/auto/Nix/Store/Store$(dynlib_suffix) @@ -25,6 +28,10 @@ AM_CXXFLAGS = \ lib/Nix/Store.cc: lib/Nix/Store.xs xsubpp $^ -output $@ +else +install-perl-xs: +endif + EXTRA_DIST = $(PERL_MODULES) lib/Nix/Store.xs include ../substitute.mk |