projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixing python bindings ... Jarod Wilson jwilson redhat.com
[rrdtool.git]
/
doc
/
Makefile.am
diff --git
a/doc/Makefile.am
b/doc/Makefile.am
index
dc432ac
..
19f5730
100644
(file)
--- a/
doc/Makefile.am
+++ b/
doc/Makefile.am
@@
-24,13
+24,11
@@
HTML = $(POD:.pod=.html) $(PMP:.pod=.html)
PDF = $(MAN:.1=.pdf)
# what should go into the distribution
PDF = $(MAN:.1=.pdf)
# what should go into the distribution
-EXTRA_DIST= $(POD) $(HTML) $(TXT) rrdtool-dump.dtd rrdtool-xport.dtd
+EXTRA_DIST= $(POD) $(HTML) $(
MAN) $(
TXT) rrdtool-dump.dtd rrdtool-xport.dtd
-# some install rules if the install pat
-DOCPREFIX:=$(shell echo "@prefix@" | grep rrd >/dev/null && echo "rrdtool-@VERSION@/")
-idocdir = $(prefix)/shared/doc/$(DOCPREFIX)txt
+idocdir = $(RRDDOCDIR)/txt
idoc_DATA = $(POD) $(TXT)
idoc_DATA = $(POD) $(TXT)
-ihtmldir = $(
prefix)/shared/doc/$(DOCPREFIX)
html
+ihtmldir = $(
RRDDOCDIR)/
html
ihtml_DATA = $(HTML)
imandir = $(mandir)/man1
iman_DATA = $(MAN)
ihtml_DATA = $(HTML)
imandir = $(mandir)/man1
iman_DATA = $(MAN)
@@
-44,7
+42,7
@@
all-local: link txt man html-local
pod2man --release=$(VERSION) --center=rrdtool $< > $@
.1.txt:
pod2man --release=$(VERSION) --center=rrdtool $< > $@
.1.txt:
- @NROFF@ -man -Tlp $< > $@
+
GROFF_NO_SGR=1
@NROFF@ -man -Tlp $< > $@
.1.pdf:
@TROFF@ -man $< | ps2pdf - $@
.1.pdf:
@TROFF@ -man $< | ps2pdf - $@
@@
-53,15
+51,12
@@
all-local: link txt man html-local
pod2html --infile=$< --outfile=$@ --noindex --htmlroot=. --podpath=. --title=$*
RRDs.pod:
pod2html --infile=$< --outfile=$@ --noindex --htmlroot=. --podpath=. --title=$*
RRDs.pod:
-
ln -s ..
/bindings/perl-shared/RRDs.pm RRDs.pod
+
$(LN_S) $(top_srcdir)
/bindings/perl-shared/RRDs.pm RRDs.pod
RRDp.pod:
RRDp.pod:
-
ln -s ..
/bindings/perl-piped/RRDp.pm RRDp.pod
+
$(LN_S) $(top_srcdir)
/bindings/perl-piped/RRDp.pm RRDp.pod
-index.html:
- rm -f index.html; ln -s rrdtool.html index.html
-
-link: RRDp.pod RRDs.pod index.html
+link: RRDp.pod RRDs.pod
man: $(MAN)
man: $(MAN)
@@
-72,3
+67,6
@@
txt: $(TXT)
pdf-local: $(PDF)
pod: $(POD)
pdf-local: $(PDF)
pod: $(POD)
+
+install-data-hook:
+ cd $(DESTDIR)$(ihtmldir) && rm -f index.html && $(LN_S) rrdtool.html index.html