summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@iki.fi>2005-02-15 11:53:04 +0100
committerNiko Tyni <ntyni@iki.fi>2005-02-15 11:53:04 +0100
commit4051f04d0275f51929aa4a08b34dbf3c70788e8c (patch)
tree0638433be3b67caa574424f6ecaeb4f2a4b0cbe2
parent02ea9b1fa581f890c9401fe23b75852541578d59 (diff)
downloadsmokeping-4051f04d0275f51929aa4a08b34dbf3c70788e8c.tar.gz
smokeping-4051f04d0275f51929aa4a08b34dbf3c70788e8c.tar.xz
Makefile:
* add the 'symlinks' and 'remove-symlinks' targets as a desperate measure to get L<smokeping> work. Bah.
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
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)