ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/doc/Makefile.maint
(Generate patch)

Comparing gvpe/doc/Makefile.maint (file contents):
Revision 1.3 by pcg, Sun Mar 23 14:58:21 2003 UTC vs.
Revision 1.11 by pcg, Thu Jan 27 06:16:16 2005 UTC

6# for i in *.1; do echo "$i: "|tr -d '\012'; \ 6# for i in *.1; do echo "$i: "|tr -d '\012'; \
7# grep -A1 SH.NAME $i|sed '/SH NAME/d;s/^[^ ][^ ]* .- //'; done 7# grep -A1 SH.NAME $i|sed '/SH NAME/d;s/^[^ ][^ ]* .- //'; done
8 8
9include Makefile.summ 9include Makefile.summ
10 10
11HELP2MAN-run = $(PERL) -w -- $(srcdir)/$(HELP2MAN)
12
13# Depend on configure.in to get version number changes. 11# Depend on configure.in to get version number changes.
14$(dyn_MANS): $(top_srcdir)/configure.in 12$(dyn_MANS): $(top_srcdir)/configure.in
15 13
16# Depend on the source file containing the --help text. 14# Depend on the source file containing the --help text.
17# Filter out irregular cases. 15# Filter out irregular cases.
18regular-men = $(filter-out $(irregular-men),$(dyn_MANS)) 16regular-men = $(filter-out $(irregular-men),$(dyn_MANS))
19$(regular-men): %.8: $(top_srcdir)/src/%.c 17$(regular-men): %.8: $(top_srcdir)/src/%.c
20 18
21executable = $(patsubst %/install,%/ginstall, ../src/$(basename $@)) 19executable = $(patsubst %/install,%/ginstall, ../src/$(basename $@))
22$(dyn_MANS): %.8: %.x $(HELP2MAN)
23 @if test -f $(executable); then \
24 echo "Updating man page $@"; \
25 rm -f $@-t $@; \
26 $(HELP2MAN-run) \
27 --name="$($(basename $@)-summary)" \
28 --include=$(basename $@).x \
29 $(executable) > $@-t; \
30 chmod -w $@-t; \
31 mv $@-t $@; \
32 else \
33 echo "WARNING: The man page $@ cannot be updated yet."; \
34 echo " Retry once the corresponding executable is built."; \
35 fi
36 20
37sample-config.tar.gz: 21%.5: %.5.pod Makefile.maint
38 GZIP=$(GZIP_ENV) $(AMTAR) chozf sample-config.tar.gz sample-config 22 pod2man -n$(shell perl -e '$$ARGV[0] =~ s/\.\d$$//; print uc $$ARGV[0]' $@) -qnone -r$(VERSION) -s5 -c "GNU Virtual Private Ethernet" $< >$@
39 23
40%.5: %.pod 24%.7: %.7.pod Makefile.maint
41 pod2man -r $(VERSION) -s 5 -c "Virtual Private Ethernet" $< >$@ 25 pod2man -n$(shell perl -e '$$ARGV[0] =~ s/\.\d$$//; print uc $$ARGV[0]' $@) -qnone -r$(VERSION) -s7 -c "GNU Virtual Private Ethernet" $< >$@
42 26
43%.8: %.pod 27%.8: %.8.pod Makefile.maint
44 pod2man -r $(VERSION) -s 8 -c "Virtual Private Ethernet" $< >$@ 28 pod2man -n$(shell perl -e '$$ARGV[0] =~ s/\.\d$$//; print uc $$ARGV[0]' $@) -qnone -r$(VERSION) -s8 -c "GNU Virtual Private Ethernet" $< >$@
45 29
46../README: vpe.pod 30gvpe.texi: gvpe.texi.pod pod2texi
47 pod2text -q\\\" -a vpe.pod >../README 31 ./pod2texi <gvpe.texi.pod >gvpe.texi
48 32
33../README: gvpe.5.pod
34 pod2text -q\\\" -a gvpe.5.pod >../README
35

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines