1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
BUILDDIR=_build
if HAVE_SPHINX
MANPAGES1 = $(BUILDDIR)/man/fy-tool.1
doc-%:
srctree=@top_srcdir@ @SPHINX@ -M `echo $@ | sed -s 's/^doc-//g'` "@srcdir@" "$(BUILDDIR)"
# if we have sphinx generate the manpages
$(MANPAGES1): doc-man
else
# otherwise, install the canned ones
MANPAGES1 = $(srcdir)/canned-man/fy-tool.1
endif
install-data-hook: $(MANPAGES1)
$(MKDIR_P) "$(DESTDIR)$(mandir)/man1"
@for i in "$(MANPAGES1)"; do \
$(INSTALL_DATA) $$i "$(DESTDIR)$(mandir)/man1"; \
done
(cd "$(DESTDIR)$(mandir)/man1" && $(LN_S) -f fy-tool.1 fy-dump.1)
(cd "$(DESTDIR)$(mandir)/man1" && $(LN_S) -f fy-tool.1 fy-filter.1)
(cd "$(DESTDIR)$(mandir)/man1" && $(LN_S) -f fy-tool.1 fy-testsuite.1)
(cd "$(DESTDIR)$(mandir)/man1" && $(LN_S) -f fy-tool.1 fy-join.1)
(cd "$(DESTDIR)$(mandir)/man1" && $(LN_S) -f fy-tool.1 fy-ypath.1)
(cd "$(DESTDIR)$(mandir)/man1" && $(LN_S) -f fy-tool.1 fy-compose.1)
uninstall-hook:
@for i in "$(MANPAGES1)"; do \
rm -f "$(DESTDIR)$(mandir)/man1/`basename $$i`"; \
done
(cd "$(DESTDIR)$(mandir)/man1" && \
rm -f fy-dump.1 fy-filter.1 fy-testsuite.1 fy-join.1 fy-ypath.1 fy-compose.1)
clean-local:
@rm -rf "$(BUILDDIR)"
maintainer-clean-local:
@rm -rf Makefile.in
EXTRA_DIST = \
conf.py \
index.rst \
intro.rst \
libfyaml.rst \
man/fy-tool.rst \
canned-man/fy-tool.1
|