From 9db58a0f1ebc6dd755eb0aebf1f8f4bcd94f2591 Mon Sep 17 00:00:00 2001
From: Daniel Carl <danielcarl@gmx.de>
Date: Sat, 29 Dec 2012 21:29:28 +0100
Subject: [PATCH] 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.
---
 doc/Makefile   | 2 +-
 doc/vimp.1.txt | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

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
-- 
2.20.1