… | |
… | |
3 | |
3 | |
4 | # The following one line summaries were extracted from the |
4 | # The following one line summaries were extracted from the |
5 | # original man pages using this bit of sh code: |
5 | # original man pages using this bit of sh code: |
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 | |
|
|
9 | include Makefile.summ |
|
|
10 | |
|
|
11 | HELP2MAN-run = $(PERL) -w -- $(srcdir)/$(HELP2MAN) |
|
|
12 | |
8 | |
13 | # Depend on configure.in to get version number changes. |
9 | # Depend on configure.in to get version number changes. |
14 | $(dyn_MANS): $(top_srcdir)/configure.in |
10 | $(dyn_MANS): $(top_srcdir)/configure.in |
15 | |
11 | |
16 | # Depend on the source file containing the --help text. |
12 | # Depend on the source file containing the --help text. |
17 | # Filter out irregular cases. |
13 | # Filter out irregular cases. |
18 | regular-men = $(filter-out $(irregular-men),$(dyn_MANS)) |
14 | regular-men = $(filter-out $(irregular-men),$(dyn_MANS)) |
19 | $(regular-men): %.8: $(top_srcdir)/src/%.c |
15 | $(regular-men): %.8: $(top_srcdir)/src/%.c |
20 | |
16 | |
21 | executable = $(patsubst %/install,%/ginstall, ../src/$(basename $@)) |
17 | executable = $(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 | |
|
|
37 | sample-config.tar.gz: |
|
|
38 | GZIP=$(GZIP_ENV) $(AMTAR) chozf sample-config.tar.gz sample-config |
|
|
39 | |
18 | |
40 | %.5: %.5.pod Makefile.maint |
19 | %.5: %.5.pod Makefile.maint |
41 | pod2man -n$(shell perl -e '$$ARGV[0] =~ s/\.\d$$//; print uc $$ARGV[0]' $@) -qnone -r$(VERSION) -s5 -c "Virtual Private Ethernet" $< >$@ |
20 | pod2man -n$(shell perl -e '$$ARGV[0] =~ s/\.\d$$//; print uc $$ARGV[0]' $@) -qnone -r$(VERSION) -s5 -c "GNU Virtual Private Ethernet" $< >$@ |
|
|
21 | |
|
|
22 | %.7: %.7.pod Makefile.maint |
|
|
23 | pod2man -n$(shell perl -e '$$ARGV[0] =~ s/\.\d$$//; print uc $$ARGV[0]' $@) -qnone -r$(VERSION) -s7 -c "GNU Virtual Private Ethernet" $< >$@ |
42 | |
24 | |
43 | %.8: %.8.pod Makefile.maint |
25 | %.8: %.8.pod Makefile.maint |
44 | pod2man -n$(shell perl -e '$$ARGV[0] =~ s/\.\d$$//; print uc $$ARGV[0]' $@) -qnone -r$(VERSION) -s8 -c "Virtual Private Ethernet" $< >$@ |
26 | pod2man -n$(shell perl -e '$$ARGV[0] =~ s/\.\d$$//; print uc $$ARGV[0]' $@) -qnone -r$(VERSION) -s8 -c "GNU Virtual Private Ethernet" $< >$@ |
45 | |
27 | |
46 | vpe.texi: vpe.texi.in |
28 | gvpe.texi: gvpe.texi.pod pod2texi |
47 | ./pod2texi <vpe.texi.in >vpe.texi |
29 | ./pod2texi <gvpe.texi.pod >gvpe.texi |
48 | |
30 | |
49 | ../README: vpe.pod |
31 | ../README: gvpe.5.pod |
50 | pod2text -q\\\" -a vpe.pod >../README |
32 | pod2text -q\\\" -a gvpe.5.pod >../README |
51 | |
33 | |