Do not use CPPFLAGS for the man page.
authorDaniel Carl <danielcarl@gmx.de>
Sat, 29 Dec 2012 20:29:28 +0000 (21:29 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 29 Dec 2012 20:31:13 +0000 (21:31 +0100)
We use the VERSION and PROJECT macros direct for the generation of the man
page. The CPPFLAGS will cause errors if the m4 macro processor does not know
the options.

doc/Makefile
doc/vimp.1.txt

index f2f3ed5..5e49d06 100644 (file)
@@ -6,7 +6,7 @@ man: vimp.1
 
 %.1: %.1.txt
        @echo "${PP} $< > $@"
-       @$(PP) $(CPPFLAGS) $< > $@
+       @$(PP) -DVERSION=$(VERSION) -DPROJECT=$(PROJECT) $< > $@
 
 clean:
        $(RM) *.1
index 81e7cd9..ec89d3e 100644 (file)
@@ -1,6 +1,4 @@
 .\" Process this file with
-define(`PROJECT', translit(PROJECT, `"\', `'))dnl
-define(`VERSION', translit(VERSION, `"\', `'))dnl
 .\" groff -man -Tascii PROJECT.1
 .TH PROJECT 1 "29/12/2012" PROJECT/VERSION "PROJECT Manual"
 .SH NAME