aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/Makefile.am
blob: 68c2f6a3982f072bf87c834102b8d8250a625d4d (plain)
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
include $(top_srcdir)/bootstrap.am

man_MANS = sciteco.1
EXTRA_DIST = sciteco.1.in
CLEANFILES = sciteco.1

man_MANS += sciteco.7
EXTRA_DIST += sciteco.7.template
CLEANFILES += sciteco.7 sciteco.7.in sciteco.7.htbl
SOURCES = $(wildcard @top_srcdir@/src/*.cpp)

EXTRA_DIST += generate-docs.tes htbl.tes

%.in : %.template generate-docs.tes $(SOURCES)
	$(BOOTSTRAP_SCITECO) -m @srcdir@/generate-docs.tes \
			     $@ $< $(SOURCES)

if BUILD_HTMLMAN
html_DATA = sciteco.1.html sciteco.7.html
CLEANFILES += $(html_DATA)
endif

%.htbl : % htbl.tes
	$(BOOTSTRAP_SCITECO) -m @srcdir@/htbl.tes $< $@

%.html : %.htbl
	@GROFF@ -Thtml -man $< >$@

#
# Doxygen processing (do not install or distribute)
#
if BUILD_DEVDOC
noinst_DATA = doxygen/
endif

.PHONY: doxygen/
doxygen/ : Doxyfile
	-rm -rf doxygen/
	@DOXYGEN@ $<

clean-local:
	-rm -rf doxygen/