From ca2fa90f8e7a9399c7c44781f1a032fe10f98cdc Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sun, 10 May 2009 23:02:21 +0200 Subject: Manpage generation Provides a set of make rules for generating UNIX manual pages from DocBook 4.5 source as well as sample manpage for sss_useradd. Automatic generation of manual pages during "make" process is tunable with config parameter "--with-manpages". To rebuild the man pages separately, use the "make doc" target. Before building, the manpages are validated using a DTD schema. --- server/rules.mk | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'server/rules.mk') diff --git a/server/rules.mk b/server/rules.mk index 8ef3676a..69f3c45a 100644 --- a/server/rules.mk +++ b/server/rules.mk @@ -4,7 +4,7 @@ etags: ctags: ctags `find $(srcdir) -name "*.[ch]"` -.SUFFIXES: .c .o +.SUFFIXES: .c .o .xml .1.xml .3.xml .5.xml .8.xml .1 .3 .5 .8 .c.o: @echo Compiling $*.c @@ -16,6 +16,22 @@ ctags: @mkdir -p `dirname $@` @$(CC) -fPIC $(CFLAGS) -c $< -o $@ +.1.xml.1: + $(XMLLINT) $(XMLLINT_FLAGS) $< + $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(DOCBOOK_XSLT) $< + +.3.xml.3: + $(XMLLINT) $(XMLLINT_FLAGS) $< + $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(DOCBOOK_XSLT) $< + +.5.xml.5: + $(XMLLINT) $(XMLLINT_FLAGS) $< + $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(DOCBOOK_XSLT) $< + +.8.xml.8: + $(XMLLINT) $(XMLLINT_FLAGS) $< + $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(DOCBOOK_XSLT) $< + showflags:: @echo 'server will be compiled with flags:' @echo ' CFLAGS = $(CFLAGS)' -- cgit