[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] modules/stdbool proposed patch for BUILT_SOURCES, $@ (coreu
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] modules/stdbool proposed patch for BUILT_SOURCES, $@ (coreutils merge) |
Date: |
16 Aug 2003 20:49:41 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Coreutils's Makefile.am is using the strategy of modules/alloca and
modules/fnmatch for its stdbool configuration. modules/stdbool should
be consistent with the other modules anyway, so here's a proposed patch:
2003-08-16 Paul Eggert <address@hidden>
* modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
in makefile rules.
Index: modules/stdbool
===================================================================
RCS file: /cvsroot/gnulib/gnulib/modules/stdbool,v
retrieving revision 1.8
diff -p -u -r1.8 stdbool
--- modules/stdbool 7 Jun 2003 16:18:09 -0000 1.8
+++ modules/stdbool 17 Aug 2003 03:16:43 -0000
@@ -12,14 +12,15 @@ configure.ac:
AM_STDBOOL_H
Makefile.am:
+BUILT_SOURCES += $(STDBOOL_H)
EXTRA_DIST += stdbool_.h
# We need the following in order to create an <stdbool.h> when the system
# doesn't have one that works.
all-local $(lib_OBJECTS): $(STDBOOL_H)
stdbool.h: stdbool_.h
- sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool_.h >
stdbool.h-t
- mv stdbool.h-t stdbool.h
+ sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool_.h >
address@hidden
+ mv address@hidden $@
MOSTLYCLEANFILES += stdbool.h stdbool.h-t
Include:
- [Bug-gnulib] modules/stdbool proposed patch for BUILT_SOURCES, $@ (coreutils merge),
Paul Eggert <=