diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-03-05 20:59:11 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-03-05 20:59:11 +0000 |
commit | a06faff6c100f5fd26cd5061d8f994b0560c708f (patch) | |
tree | 15c493c006fef57b9b6bf47c170ea4153c50f991 | |
parent | e3d3d6c990bd23606129dc97a185d48ea0d2ea0f (diff) | |
download | glibc-a06faff6c100f5fd26cd5061d8f994b0560c708f.tar glibc-a06faff6c100f5fd26cd5061d8f994b0560c708f.tar.gz glibc-a06faff6c100f5fd26cd5061d8f994b0560c708f.tar.bz2 glibc-a06faff6c100f5fd26cd5061d8f994b0560c708f.zip |
Add rules to run and distribute xtract-typefun.
-rw-r--r-- | manual/Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/manual/Makefile b/manual/Makefile index 0f525be731..0e8ae85dc7 100644 --- a/manual/Makefile +++ b/manual/Makefile @@ -21,6 +21,9 @@ subdir := manual export subdir := $(subdir) +# We need GNU awk for the xtract-typefun script. +GAWK = gawk + .PHONY: all dvi info all: dvi info dvi: libc.dvi @@ -60,6 +63,17 @@ stamp-summary: summary.awk $(chapters) $(chapters-incl) # touch is broken on our machines. Sigh. date > $@ +# Generate a file which can be added to the `dir' content to provide direct +# access to the documentation of the function, variables, and other +# definitions. +dir-add.texi: manual/xtract-typefun.awk $(chapters-incl) + if test -n "$(chapters-incl)"; then \ + (for i in $(chapters-incl); do \ + $(GAWK) -f $< < $i; \ + done) | sort > $@.new; \ + ./move-if-change $@.new $@; \ + fi + # Generate Texinfo files from the C source for the example programs. %.c.texi: examples/%.c sed -e 's,[{}],@&,g' \ @@ -78,7 +92,8 @@ distribute = $(minimal-dist) \ $(patsubst examples/%.c,%.c.texi,$(filter examples/%.c, \ $(minimal-dist))) \ libc.info* libc.?? libc.??s texinfo.tex summary.texi \ - stamp-summary chapters chapters-incl + stamp-summary chapters chapters-incl \ + xtract-typefun.awk export distribute := $(distribute) tar-it = tar chovf $@ $^ |