summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-09-26 08:22:37 +0000
committerJim Meyering <jim@meyering.net>2001-09-26 08:22:37 +0000
commit8cd9be5598a8151cbe3f96981643434b0f7b6adb (patch)
treea693b80323f1dd163f0c359634d715d0ea78bb4b /lib
parentdc374320b844868d21c624fd8b96b76e1105a6ec (diff)
downloadcoreutils-8cd9be5598a8151cbe3f96981643434b0f7b6adb.tar.xz
.
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.in20
1 files changed, 3 insertions, 17 deletions
diff --git a/lib/Makefile.in b/lib/Makefile.in
index b69dd0256..26e0ce48f 100644
--- a/lib/Makefile.in
+++ b/lib/Makefile.in
@@ -205,7 +205,7 @@ BUILT_SOURCES = getdate.c lstat.c stat.c unlocked-io.h
MAINTAINERCLEANFILES = $(BUILT_SOURCES)
DISTCLEANFILES = lstat.c stat.c unlocked-io.h
-EXTRA_DIST = xstat.in config.charset ref-add.sin ref-del.sin unlocked-io.hin
+EXTRA_DIST = xstat.in config.charset ref-add.sin ref-del.sin gen-uio
charset_alias = $(DESTDIR)$(libdir)/charset.alias
charset_tmp = $(DESTDIR)$(libdir)/charset.tmp
@@ -221,9 +221,6 @@ io_functions = \
clearerr feof ferror fflush fgets fputc fputs \
fread fwrite getc getchar putc putchar
-
-a_z = abcdefghijklmnopqrstuvwxyz
-A_Z = ABCDEFGHIJKLMNOPQRSTUVWXYZ
subdir = lib
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
@@ -1002,19 +999,8 @@ charset.alias: config.charset
sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $< > $@-t
mv $@-t $@
-unlocked-io.h: $(srcdir)/unlocked-io.hin Makefile.am
- tmp=t$$$$; \
- for f in $(io_functions); do \
- u=`echo $$f|tr $(a_z) $(A_Z)`; \
- echo "# if HAVE_$${u}_UNLOCKED" ; \
- echo "# undef $$f" ; \
- echo "# define $$f(S) $${f}_unlocked (S)" ; \
- echo '# endif' ; \
- done > $$tmp; \
- sed '/^@replace_this@$$/r '$$tmp $(srcdir)/unlocked-io.hin \
- | sed '/^@replace_this@$$/d' \
- > $@t; \
- rm -f $$tmp; \
+unlocked-io.h: $(srcdir)/gen-uio Makefile.am
+ srcdir=$(srcdir) $(SHELL) $(srcdir)/gen-uio $(io_functions) > $@t
mv $@t $@
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.