From 1f9186195f594321bd8e74ede17d402af2669628 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 2 Jun 2003 08:15:38 +0000 Subject: [PATCH] (MOSTLYCLEANFILES): Initialize. (stdbool.h): New rule. (all-local $(lib_OBJECTS)): Depend on $(STDBOOL_H) (MOSTLYCLEANFILES): Add stdbool.h. (EXTRA_DIST): Add stdbool.h. --- lib/Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/Makefile.am b/lib/Makefile.am index 205914a1d..ffee8cf03 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -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-$@ -- 2.34.1