ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/doc/Makefile.maint
Revision: 1.1
Committed: Sat Mar 1 15:53:02 2003 UTC (21 years, 2 months ago) by pcg
Branch: MAIN
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 pcg 1.1 # This -*- Makefile -*- uses features of GNU make.
2     # It is included via GNUmakefile.
3    
4     # The following one line summaries were extracted from the
5     # original man pages using this bit of sh code:
6     # for i in *.1; do echo "$i: "|tr -d '\012'; \
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    
13     # Depend on configure.in to get version number changes.
14     $(dyn_MANS): $(top_srcdir)/configure.in
15    
16     # Depend on the source file containing the --help text.
17     # Filter out irregular cases.
18     regular-men = $(filter-out $(irregular-men),$(dyn_MANS))
19     $(regular-men): %.8: $(top_srcdir)/src/%.c
20    
21     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