Ticket #35730: patch-man-Makefile.in.diff

File patch-man-Makefile.in.diff, 1.1 KB (added by ajdudman, 12 years ago)

patch makefile rules to build and install manual files by default

  • man/Makefile.in

    old new  
    7777TARGETS = $(MAN5G) $(MAN1G) $(MAN3G) $(MAN8G)
    7878OTHERCLEANTARGETS=$(TARGETS) default_store.3.h $(MANALIASES) manaliases
    7979
    80 all: $(TARGETS) standardall manaliases
     80all: targets standardall manaliases
    8181
    82 manaliases: Makefile
    83         touch manaliases
     82.PHONY: targets
     83targets: $(TARGETS)
     84
     85../sedscript:
     86        cd .. & $(MAKE) sedscript
     87
     88manaliases: targets
    8489        @for i in $(MAN3_API) ; do                                \
    8590            for j in `sed -n '/^.SH NAME/,/^.SH SYNOPSIS/p' $$i  | sed -e 's/.- .*//' | sed 's/,.*//'  | @EGREP@ -v '^.SH ' `; do \
    8691                echo "making man page alias $$j -> $$i APIs" ;    \
    8792                echo ".so man3/$$i" > $$j.3 ;             \
    8893            done                                                  \
    8994        done
     95        touch manaliases
    9096
    9197agentxtrap.1: $(srcdir)/agentxtrap.1.def ../sedscript
    9298        $(SED) -f ../sedscript < $(srcdir)/agentxtrap.1.def > agentxtrap.1
     
    274280#          fi ; \
    275281        done ;\
    276282        $(PERL) make_index.pl man_sections.txt $$a > index.html
     283
     284
     285install: $(OTHERINSTALL)
     286uninstall: $(OTHERUNINSTALL)
     287