From: Daniel Carl Date: Sat, 29 Dec 2012 20:29:28 +0000 (+0100) Subject: Do not use CPPFLAGS for the man page. X-Git-Url: https://git.owens.tech/git.owens.tech/git.owens.tech/git?a=commitdiff_plain;h=9db58a0f1ebc6dd755eb0aebf1f8f4bcd94f2591;p=vimb.git Do not use CPPFLAGS for the man page. 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. --- diff --git a/doc/Makefile b/doc/Makefile index f2f3ed5..5e49d06 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -6,7 +6,7 @@ man: vimp.1 %.1: %.1.txt @echo "${PP} $< > $@" - @$(PP) $(CPPFLAGS) $< > $@ + @$(PP) -DVERSION=$(VERSION) -DPROJECT=$(PROJECT) $< > $@ clean: $(RM) *.1 diff --git a/doc/vimp.1.txt b/doc/vimp.1.txt index 81e7cd9..ec89d3e 100644 --- a/doc/vimp.1.txt +++ b/doc/vimp.1.txt @@ -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