Skip to contentSkip to conversation

git/Documentation/Makefile - "install" doesn't depend on "all"

DISCUSSION Randal L. Schwartz 2 participants 2 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

I traditionally simply say "make install" to a Makefile, which should always have the installed components depend on their sources.

For the past few days, apparently I've been doing nothing but the final "install" command, even though the sources have been changed.

On a whim, I typed "make all install", and there ya go, everything got made.

So, apparently, the manpages don't properly depend on the sources, or "install" doesn't properly depend on "all", or both.

Therefore, broken.

Signature · 4 lines
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
#1 lore raw
Quoted 4 lines · [email protected] (Randal L. Schwartz) writes:

So, apparently, the manpages don't properly depend on the sources, or "install" doesn't properly depend on "all", or both.

Therefore, broken.

Thanks for the patch.

------------
git diff

Documentation/Makefile +1 -1
@@ -44,7 +44,7 @@ man: man1 man7
 man1: $(DOC_MAN1)
 man7: $(DOC_MAN7)
 
-install:
+install: all
 	$(INSTALL) -d -m755 $(DESTDIR)/$(man1) $(DESTDIR)/$(man7)
 	$(INSTALL) $(DOC_MAN1) $(DESTDIR)/$(man1)
 	$(INSTALL) $(DOC_MAN7) $(DESTDIR)/$(man7)