secilc: do not build secilc man page if it is up to date

When running "make all" several times in the root directory of the
project, the following lines always appear (and the command takes some
seconds to complete on my system with a slow hard drive):

    xmlto man secilc.8.xml
    Note: Writing secilc.8

This is because "make man" always builds secilc.8 even though
secilc.8.xml has not been modified. Introduce an intermediate target to
avoid this behavior.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
Nicolas Iooss 2016-11-14 22:33:24 +01:00 committed by Stephen Smalley
parent 2c1ae0f029
commit 672f96f012
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@ $(SECILC): $(SECILC_OBJS)
test: $(SECILC)
./$(SECILC) test/policy.cil
man: $(MANPAGE).xml
man: $(MANPAGE)
$(MANPAGE): $(MANPAGE).xml
$(XMLTO) man $(MANPAGE).xml
install: all man