aboutsummaryrefslogtreecommitdiff
path: root/manual/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-05-08 20:56:30 +0000
committerUlrich Drepper <drepper@redhat.com>1998-05-08 20:56:30 +0000
commit5bc2f642a77010ef3d118dc286b39fa4a7f21699 (patch)
tree93d643946175191a02d997b300d02f918e7b8877 /manual/Makefile
parentc7562c74ed1b18fda99bfd5f6c4b61a449bcb35f (diff)
downloadglibc-5bc2f642a77010ef3d118dc286b39fa4a7f21699.tar
glibc-5bc2f642a77010ef3d118dc286b39fa4a7f21699.tar.gz
glibc-5bc2f642a77010ef3d118dc286b39fa4a7f21699.tar.bz2
glibc-5bc2f642a77010ef3d118dc286b39fa4a7f21699.zip
Update.
1998-05-08 21:56 Zack Weinberg <zack@rabi.phys.columbia.edu> * autolock.sh: Removed. * manual/move-if-change: Removed. * scripts: new directory. * =__ify: moved to scripts. * config.guess: Likewise. * config.sub: Likewise. * gen-FAQ.pl: Likewise. * install-sh: Likewise. * mkinstalldirs: Likewise. * move-if-change: Likewise. * printsources: Likewise. * rellns.sh: Likewise. * test-installation.pl: Likewise. * configure.in: Look in scripts for config.guess, config.sub, install-sh. * Makefile: Distribute all above files in their new home. Find gen-FAQ.pl and test-installation.pl in scripts. * manual/Makefile: Find mkinstalldirs and move-if-change in $(..)scripts. Drop them from distribute. Minor cleanups. * Makerules: Find mkinstalldirs and rellns-sh in scripts. * sysdeps/mach/hurd/Makefile: Find move-if-change in scripts. * timezone/Makefile: Find rellns-sh in scripts.
Diffstat (limited to 'manual/Makefile')
-rw-r--r--manual/Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/manual/Makefile b/manual/Makefile
index d00a3cb586..bc36978ebb 100644
--- a/manual/Makefile
+++ b/manual/Makefile
@@ -64,6 +64,10 @@ define find-includes
mv -f $@.new $@
endef
+# scripts we use
+move-if-change = $(..)scripts/move-if-change
+mkinstalldirs = $(..)scripts/mkinstalldirs
+
libc.dvi libc.info: $(chapters) summary.texi $(chapters-incl)
libc.dvi: texinfo.tex
@@ -78,9 +82,8 @@ summary.texi: stamp-summary ;
stamp-summary: summary.awk $(chapters) $(chapters-incl)
$(AWK) -f $^ \
| sort -df +1 -2 | tr '\014' '\012' > summary-tmp
- ./move-if-change summary-tmp summary.texi
-# touch is broken on our machines. Sigh.
- date > $@
+ $(move-if-change) summary-tmp summary.texi
+ touch $@
# Generate a file which can be added to the `dir' content to provide direct
# access to the documentation of the function, variables, and other
@@ -102,10 +105,10 @@ dir-add.texinfo: xtract-typefun.awk $(chapters) $(chapters-incl)
mv -f $@.new $@
-minimal-dist = summary.awk move-if-change libc.texinfo $(chapters) \
+minimal-dist = summary.awk libc.texinfo $(chapters) \
$(patsubst %.c.texi,examples/%.c, \
$(filter-out summary.texi,$(chapters-incl)))
-doc-only-dist = Makefile COPYING.LIB mkinstalldirs
+doc-only-dist = Makefile COPYING.LIB
distribute = $(minimal-dist) \
$(patsubst examples/%.c,%.c.texi,$(filter examples/%.c, \
$(minimal-dist))) \
@@ -171,8 +174,8 @@ $(inst_infodir)/libc.info: libc.info installdirs
`echo $@ | sed "s,$<\$$,$$name,"`; \
done
-installdirs: $(firstword $(wildcard mkinstalldirs ../mkinstalldirs))
- $(dir $<)$(notdir $<) $(inst_infodir)
+installdirs:
+ $(mkinstalldirs) $(inst_infodir)
.PHONY: dist
dist: # glibc-doc-$(edition).tar.gz
@@ -212,13 +215,12 @@ stubs: $(objpfx)stubs
endif
$(objpfx)stubs ../po/manual.pot $(objpfx)stamp%:
$(make-target-directory)
- cp /dev/null $@
-
+ touch $@
# Make the target directory if it doesn't exist, using the `mkinstalldirs'
# script that does `mkdir -p' even if `mkdir' doesn't support that flag.
define make-target-directory
-$(addprefix $(..)./mkinstalldirs ,\
+$(addprefix $(mkinstalldirs) ,\
$(filter-out $(wildcard $(@D:%/=%)),$(@D:%/=%)))
endef