diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile.am | 13 | ||||
-rw-r--r-- | configure.ac | 2 |
3 files changed, 7 insertions, 9 deletions
@@ -54,3 +54,4 @@ perl/MYMETA.yml *~ .*.swp .*.swo +perl/MYMETA.json diff --git a/Makefile.am b/Makefile.am index 629a7c7..e1cb02d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -122,16 +122,16 @@ clean-local: rm -f perl/Makefile # The default for MakeMaker; can be overridden by exporting -INSTALLDIRS ?= site +PERL_INSTALLDIRS ?= site # Remove perl dir for VPATH builds. distclean-local: - -rm perl/Makefile.PL > /dev/null + -rm perl/Makefile.PL || true -rmdir perl > /dev/null -rm -r .hypothesis > /dev/null install-exec-local: perl/Makefile - $(MAKE) -C perl install INSTALLDIRS=${INSTALLDIRS} + $(MAKE) -C perl install INSTALLDIRS=${PERL_INSTALLDIRS} DESTDIR=$(DESTDIR) INSTALL_BASE=$(prefix) INSTALLSITEBIN=$(bindir) mostlyclean-local: rm -rf perl/blib @@ -139,9 +139,4 @@ mostlyclean-local: # 'uninstall' perl files during distcheck uninstall-local: perl/Makefile - $(MAKE) -C perl uninstall_distcheck INSTALLDIRS=${INSTALLDIRS} - -perl/Makefile: perl/Makefile.PL - mkdir -p perl - cd perl && perl Makefile.PL INSTALLDIRS=${INSTALLDIRS} PREFIX= - -rm perl/Makefile.old > /dev/null + $(MAKE) -C perl uninstall_distcheck INSTALLDIRS=${PERL_INSTALLDIRS} DESTDIR=$(DESTDIR) INSTALLSITEBIN=$(bindir) diff --git a/configure.ac b/configure.ac index b5a59ee..398ea58 100644 --- a/configure.ac +++ b/configure.ac @@ -68,6 +68,8 @@ PKG_CHECK_MODULES([CPPUNIT], [cppunit]) # Output files AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_COMMANDS([perl], [cd perl && perl Makefile.PL && cd ..], []) + AC_CONFIG_FILES([libsubunit.pc libcppunit_subunit.pc Makefile |