From 4051f04d0275f51929aa4a08b34dbf3c70788e8c Mon Sep 17 00:00:00 2001 From: Niko Tyni Date: Tue, 15 Feb 2005 10:53:04 +0000 Subject: Makefile: * add the 'symlinks' and 'remove-symlinks' targets as a desperate measure to get L work. Bah. --- Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c4d7f0e..67b067a 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ SHELL = /bin/sh VERSION = 1.38 IGNORE = ~|CVS|var/|smokeping-$(VERSION)/smokeping-$(VERSION)|cvsignore|rej|orig|DEAD|pod2htm[di]\.tmp GROFF = groff -.PHONY: man html txt ref examples check-examples patch killdoc doc tar rename-man +.PHONY: man html txt ref examples check-examples patch killdoc doc tar rename-man symlinks remove-symlinks .SUFFIXES: .SUFFIXES: .pm .pod .txt .html .man .1 .3 .5 .7 @@ -28,7 +28,7 @@ HTML= $(addsuffix .html,$(BASE)) POD2MAN = pod2man --release=$(VERSION) --center=SmokePing $< MAN2TXT = $(GROFF) -man -Tascii $< > $@ # pod2html apparently needs to be in the target directory to get L<> links right -POD2HTML= cd $(dir $@); top=$(shell echo $(dir $@)|sed 's,[^/]*/,../,g'); pod2html --infile=$(CURDIR)/$< --outfile=$(notdir $@) --noindex --htmlroot=. --podroot=. --podpath=$${top}doc:$${top}bin --title=$* +POD2HTML= cd $(dir $@); top=$(shell echo $(dir $@)|sed 's,[^/]*/,../,g'); pod2html --infile=$(CURDIR)/$< --outfile=$(notdir $@) --noindex --htmlroot=. --podroot=. --podpath=$${top}doc --title=$* # we go to this trouble to ensure that MAKEPOD only uses modules in the installation directory MAKEPOD= perl -Ilib -I/usr/pack/rrdtool-1.0.47-to/lib/perl -mSmokeping -e 'Smokeping::main()' -- --makepod GENEX= perl -Ilib -I/usr/pack/rrdtool-1.0.47-to/lib/perl -mSmokeping -e 'Smokeping::main()' -- --gen-examples @@ -83,7 +83,7 @@ doc/%.txt: doc/%.7 man: $(MAN) -html: $(HTML) +html: symlinks $(HTML) remove-symlinks txt: $(TXT) @@ -98,6 +98,14 @@ rename-man: $(MAN) ref: doc/smokeping_config.pod +symlinks: + -ln -s bin/smokeping.dist doc/smokeping.pod + -ln -s htdocs/smokeping.cgi.dist doc/smokeping.cgi.pod + +remove-symlinks: + -rm doc/smokeping.pod + -rm doc/smokeping.cgi.pod + examples: $(GENEX) -- cgit v1.2.3-24-g4f1b