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.
%.1: %.1.txt
@echo "${PP} $< > $@"
- @$(PP) $(CPPFLAGS) $< > $@
+ @$(PP) -DVERSION=$(VERSION) -DPROJECT=$(PROJECT) $< > $@
clean:
$(RM) *.1
.\" 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