Make the version number automatically included in the man page footer

This commit is contained in:
hpa 2001-11-17 00:16:53 +00:00
parent 779db73551
commit 4f739767f2
7 changed files with 330 additions and 10 deletions

View file

@ -1,6 +1,7 @@
all: tftp
all: tftp tftp.1
SRCROOT = ..
VERSION = $(shell cat ../version)
-include ../MCONFIG
include ../MRULES
@ -12,13 +13,16 @@ tftp: $(OBJS)
$(OBJS): tftpsubs.h
install: tftp
tftp.1: tftp.1.in ../version
sed -e 's/@@VERSION@@/$(VERSION)/g' < $< > $@
install: all
mkdir -p $(INSTALLROOT)$(BINDIR) $(INSTALLROOT)$(MANDIR)/man1
$(INSTALL_PROGRAM) tftp $(INSTALLROOT)$(BINDIR)
$(INSTALL_DATA) tftp.1 $(INSTALLROOT)$(MANDIR)/man1
clean:
rm -f *.o tftp
rm -f *.o tftp tftp.1
distclean: clean
rm -f *~

View file

@ -31,7 +31,7 @@
.\" SUCH DAMAGE.
.\"
.\"----------------------------------------------------------------------- */
.TH TFTP 1 "13 November 2001" "tftp-hpa" "UNIX User's Manual"
.TH TFTP 1 "13 November 2001" "tftp-hpa @@VERSION@@" "UNIX User's Manual"
.SH NAME
.B tftp
\- IPv4 Trivial File Transfer Protocol client