1 |
include $(top_srcdir)/config/common.am |
include $(top_srcdir)/config/common.am |
2 |
|
|
3 |
include_HEADERS = forms.h |
include_HEADERS = forms.h |
4 |
CLEANFILES = forms.h |
CLEANFILES = forms.h AAA.h stamp-forms |
5 |
BUILT_SOURCES = forms.h |
BUILT_SOURCES = forms.h AAA.h |
6 |
|
|
7 |
noinst_HEADERS = \ |
noinst_HEADERS = \ |
|
AAA.h \ |
|
8 |
Basic.h \ |
Basic.h \ |
9 |
XBasic.h \ |
XBasic.h \ |
10 |
bitmap.h \ |
bitmap.h \ |
39 |
xyplot.h \ |
xyplot.h \ |
40 |
zzz.h |
zzz.h |
41 |
|
|
42 |
forms.h: $(noinst_HEADERS) |
forms.h: stamp-forms |
43 |
@rm -f $@ |
@: |
44 |
@for i in $(noinst_HEADERS); do \ |
|
45 |
sed "1,/crop here for forms/d" ${srcdir}/$$i >> $@; \ |
stamp-forms: AAA.h $(noinst_HEADERS) |
46 |
|
rm -f tmpforms |
47 |
|
sed "1,/crop here for forms/d" AAA.h > tmpforms |
48 |
|
for i in $(noinst_HEADERS); do \ |
49 |
|
sed "1,/crop here for forms/d" ${srcdir}/$$i >> tmpforms; \ |
50 |
done |
done |
51 |
|
if cmp -s tmpforms forms.h ; then \ |
52 |
|
rm -f tmpforms ;\ |
53 |
|
else \ |
54 |
|
rm -f forms.h ;\ |
55 |
|
mv tmpforms forms.h ;\ |
56 |
|
fi |
57 |
|
echo timestamp > $@ |