This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Refactor the Makefile so that the install target depends on install-all.
authorNicholas Clark <nick@ccl4.org>
Tue, 24 Apr 2012 16:41:47 +0000 (18:41 +0200)
committerNicholas Clark <nick@ccl4.org>
Sat, 13 Jul 2013 10:32:13 +0000 (12:32 +0200)
Also, add targets install_notify and install-notify, as synonyms for
no_install and no-install. Previously install, install-all and install_all
were all generated by the same rule.

These changes make future refactoring easier.

Makefile.SH

index 46c2620..6e533e1 100755 (executable)
@@ -1009,7 +1009,7 @@ extras.install: $(PERL_EXE)
 install_strip install-strip:
        $(MAKE) STRIPFLAGS=-s install DESTDIR="$(DESTDIR)"
 
-install install_all install-all:
+install_all install-all:
        $(MAKE) install.perl install.man STRIPFLAGS=$(STRIPFLAGS) DESTDIR="$(DESTDIR)"
 
 install_verbose install-verbose:
@@ -1018,12 +1018,16 @@ install_verbose install-verbose:
 install_silent install-silent:
        $(MAKE) install.perl install.man STRIPFLAGS=$(STRIPFLAGS) INSTALLFLAGS=-S DESTDIR="$(DESTDIR)"
 
-no_install no-install:
+install_notify install-notify:
        $(MAKE) install.perl install.man STRIPFLAGS=$(STRIPFLAGS) INSTALLFLAGS=-n DESTDIR="$(DESTDIR)"
 
 # Set this to an empty string to avoid an attempt of rebuild before install
 INSTALL_DEPENDENCE = all
 
+no_install no-install: install-notify
+
+install: install-all
+
 install.perl:  $(INSTALL_DEPENDENCE) installperl
        $(RUN_PERL) installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
        -@test ! -s extras.lst || $(MAKE) extras.install