forked from mirrors/tftp-hpa-google
Make the version number automatically included in the man page footer
This commit is contained in:
parent
779db73551
commit
4f739767f2
7 changed files with 330 additions and 10 deletions
|
@ -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 *~
|
||||
|
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue