3 CONFIGURE_AC ?= $(CONFIGURE).ac
4 CONFIG_STATUS ?= config.status
6 CONFIGURE_ACS += $(CONFIGURE_AC)
7 CONFIGURE_ACS += subdirmk/subdirmk.ac
9 $(top_srcdir)/$(CONFIGURE): $(addprefix $(top_srcdir)/,$(CONFIGURE_ACS))
10 cd $(top_srcdir) && autoconf
12 $(CONFIG_STATUS): $(top_srcdir)/$(CONFIGURE)
13 ./$(CONFIG_STATUS) --recheck
15 MAKEFILES += subdirmk/regen.mk
17 main.mk $(MAKEFILES): .makefiles.stamp ;
19 $(top_srcdir)/subdirmk/generate \
21 $(top_srcdir)/Perdir.mk.in \
22 $(foreach m,$(MAKEFILES),$(top_srcdir)/$(m).in)
23 # This filtering arranges that we can often run config.status to
24 # generate only particular output files. We look for *inputs* that
25 # have changed. If the only inputs that have changed are ones that we
26 # know affect only one output (Subdir.mk.in and regen.mk.in), we pass
27 # config.status the corresponding output file names. Otherwise we
28 # pass nothing and config.status does them all. We need to mention
29 # regen.mk.in twice because if $(top_srcdir) is `.', make elides the
30 # directory part from $?.
31 ./$(CONFIG_STATUS) $(if \
32 $(filter-out Subdir.mk.in %/Subdir.mk.in \
33 subdirmk/regen.mk.in \
34 $(top_srcdir)/subdirmk/regen.mk.in \
36 $(patsubst %.mk.in,%.mk,$(filter %.mk.in,$?)))
40 $(RM) config.status config.log
41 $(RM) main.mk subdirmk/regen.mk $(MAKEFILES)
42 $(RM) $(addsuffix Makefile,$(dir $(MAKEFILES)))
44 -include $(ALL_DEPFILES)