added support for xmonisdn.man.in

This commit is contained in:
Paul Slootman 1998-12-02 11:38:05 +00:00
parent 1f79924b70
commit 1944330158
1 changed files with 10 additions and 1 deletions

View File

@ -25,7 +25,7 @@ ifeq (../.config,$(wildcard ../.config))
BINDIROPT = BINDIR=$(CONFIG_BINDIR)
endif
all: xmonisdn
all: xmonisdn xmonisdn.man
#
# Bug in original Makefile:
@ -40,6 +40,15 @@ xmonisdn:
CFLAGS= ; MAKEFLAGS= ; $(MAKE) -f Makefile EXTRA_DEFINES="$(I4LU_DEFINES)"
rm -rf X11
xmonisdn.man: xmonisdn.man.in Makefile
MANDATE=`grep CHECKIN $< | awk '{print $4}'`
sed \
-e "s#\@MANDATE\@#${MANDATE}#g" \
-e "s#\@I4LVERSION\@#${I4LVERSION}#g" \
-e s,\@CONFIG_XMONISDN_UPCMD\@,${CONFIG_XMONISDN_UPCMD},g \
-e s,\@CONFIG_XMONISDN_DOWNCMD\@,${CONFIG_XMONISDN_DOWNCMD},g \
< $< > $@
config:
@cp Makefile.in GNUmakefile
@xmkmf