68 |
@echo " *" >>config.tmp |
@echo " *" >>config.tmp |
69 |
@echo " * Edit config.h.in instead." >>config.tmp |
@echo " * Edit config.h.in instead." >>config.tmp |
70 |
@echo " */" >>config.tmp |
@echo " */" >>config.tmp |
71 |
sed "s/%PACKAGE_VERSION%/$(VERSION)/" <$(srcdir)/config.h.in \ |
sed -e "s/%PACKAGE_STRING%/$(PACKAGE_STRING)/" \ |
72 |
>>config.tmp |
-e "s/%PACKAGE_BUGREPORT%/$(PACKAGE_BUGREPORT)/" \ |
73 |
|
<$(srcdir)/config.h.in >>config.tmp |
74 |
@cmp -s config.tmp $(srcdir)/config.h \ |
@cmp -s config.tmp $(srcdir)/config.h \ |
75 |
|| (echo "Updating config.h"; \ |
|| (echo "Updating config.h"; \ |
76 |
cp config.tmp $(srcdir)/config.h) |
cp config.tmp $(srcdir)/config.h) |
89 |
# The following target exists for two reasons. The first is so that the rule |
# The following target exists for two reasons. The first is so that the rule |
90 |
# for config.h.in above may be conditionally dependent on it and thus only |
# for config.h.in above may be conditionally dependent on it and thus only |
91 |
# built in maintainer mode. The second reason is so that the config.h.in, and |
# built in maintainer mode. The second reason is so that the config.h.in, and |
92 |
# thus the config.h file only gets touched when it actually changes, which |
# thus the config.h file, only gets touched when it actually changes, which |
93 |
# could potentially save unnecessary rebuilds of many dependent files. |
# could potentially save unnecessary rebuilds of many dependent files. |
94 |
# |
# |
95 |
# This file is distributed since without it config.h.in will always be rebuilt |
# This file is distributed since, without it, config.h.in will always be |
96 |
# on the first run in maintainer mode, even if its dependencies are unchanged. |
# rebuilt on the first run in maintainer mode, even if its dependencies are |
97 |
|
# unchanged. |
98 |
stamp-chi: $(srcdir)/mkconfig.pl $(top_srcdir)/config.h.in \ |
stamp-chi: $(srcdir)/mkconfig.pl $(top_srcdir)/config.h.in \ |
99 |
$(srcdir)/config.h.in.in $(srcdir)/config.h.in.footer |
$(srcdir)/config.h.in.in $(srcdir)/config.h.in.footer |
100 |
@$(PERL) mkconfig.pl -q $(top_srcdir)/config.h.in \ |
@$(PERL) mkconfig.pl -q $(top_srcdir)/config.h.in \ |