622 |
@echo " *" >>config.tmp |
@echo " *" >>config.tmp |
623 |
@echo " * Edit config.h.in instead." >>config.tmp |
@echo " * Edit config.h.in instead." >>config.tmp |
624 |
@echo " */" >>config.tmp |
@echo " */" >>config.tmp |
625 |
sed "s/%PACKAGE_VERSION%/$(VERSION)/" <$(srcdir)/config.h.in \ |
sed -e "s/%PACKAGE_STRING%/$(PACKAGE_STRING)/" \ |
626 |
>>config.tmp |
-e "s/%PACKAGE_BUGREPORT%/$(PACKAGE_BUGREPORT)/" \ |
627 |
|
<$(srcdir)/config.h.in >>config.tmp |
628 |
@cmp -s config.tmp $(srcdir)/config.h \ |
@cmp -s config.tmp $(srcdir)/config.h \ |
629 |
|| (echo "Updating config.h"; \ |
|| (echo "Updating config.h"; \ |
630 |
cp config.tmp $(srcdir)/config.h) |
cp config.tmp $(srcdir)/config.h) |
642 |
# 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 |
643 |
# 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 |
644 |
# 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 |
645 |
# 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 |
646 |
# could potentially save unnecessary rebuilds of many dependent files. |
# could potentially save unnecessary rebuilds of many dependent files. |
647 |
# |
# |
648 |
# 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 |
649 |
# 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 |
650 |
|
# unchanged. |
651 |
stamp-chi: $(srcdir)/mkconfig.pl $(top_srcdir)/config.h.in \ |
stamp-chi: $(srcdir)/mkconfig.pl $(top_srcdir)/config.h.in \ |
652 |
$(srcdir)/config.h.in.in $(srcdir)/config.h.in.footer |
$(srcdir)/config.h.in.in $(srcdir)/config.h.in.footer |
653 |
@$(PERL) mkconfig.pl -q $(top_srcdir)/config.h.in \ |
@$(PERL) mkconfig.pl -q $(top_srcdir)/config.h.in \ |