* modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
[gnulib.git] / modules / stdbool
1 Description:
2 An <stdbool.h> that nearly conforms to C99.
3 (Nearly: casts to bool may not work.)
4
5 Files:
6 lib/stdbool_.h
7 m4/stdbool.m4
8
9 Depends-on:
10
11 configure.ac:
12 AM_STDBOOL_H
13
14 Makefile.am:
15 BUILT_SOURCES += $(STDBOOL_H)
16 EXTRA_DIST += stdbool_.h
17
18 # We need the following in order to create an <stdbool.h> when the system
19 # doesn't have one that works.
20 all-local $(lib_OBJECTS): $(STDBOOL_H)
21 stdbool.h: stdbool_.h
22         sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool_.h > $@-t
23         mv $@-t $@
24 MOSTLYCLEANFILES += stdbool.h stdbool.h-t
25
26 Include:
27 #include <stdbool.h>
28
29 Maintainer:
30 Bruno Haible
31