]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(MOSTLYCLEANFILES): Initialize.
authorJim Meyering <jim@meyering.net>
Mon, 2 Jun 2003 08:15:38 +0000 (08:15 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 2 Jun 2003 08:15:38 +0000 (08:15 +0000)
(stdbool.h): New rule.
(all-local $(lib_OBJECTS)): Depend on $(STDBOOL_H)
(MOSTLYCLEANFILES): Add stdbool.h.
(EXTRA_DIST): Add stdbool.h.

lib/Makefile.am

index 205914a1dbc852b8d021d52bde895efe4cc8a960..ffee8cf03a36541d064320d21a4e3ac447abe0cf 100644 (file)
@@ -135,6 +135,7 @@ libfetish_a_DEPENDENCIES = $(libfetish_a_LIBADD)
 
 BUILT_SOURCES = getdate.c
 MAINTAINERCLEANFILES = $(BUILT_SOURCES)
+MOSTLYCLEANFILES =
 
 EXTRA_DIST = config.charset ref-add.sin ref-del.sin \
   fnmatch_loop.c inttostr.c inttostr.h
@@ -180,6 +181,14 @@ charset.alias: config.charset
        $(SHELL) $(srcdir)/config.charset '@host@' > t-$@
        mv t-$@ $@
 
+# Create stdbool.h on systems that lack a working one.
+all-local $(lib_OBJECTS): $(STDBOOL_H)
+stdbool.h: stdbool.hin
+       sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' $(srcdir)/stdbool.hin > t-$@
+       mv t-$@ $@
+MOSTLYCLEANFILES += stdbool.h
+EXTRA_DIST += stdbool.hin
+
 SUFFIXES = .sed .sin
 .sin.sed:
        sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@