chiark / gitweb /
&! new esc can be anything
[subdirmk.git] / subdirmk / regen.mk.in
1
2 CONFIGURE       ?= configure
3 CONFIGURE_AC    ?= $(CONFIGURE).ac
4 CONFIG_STATUS   ?= config.status
5
6 CONFIGURE_ACS   += $(CONFIGURE_AC)
7 CONFIGURE_ACS   += subdirmk/subdirmk.ac
8
9 $(top_srcdir)/$(CONFIGURE): $(addprefix $(top_srcdir)/,$(CONFIGURE_ACS))
10         cd $(top_srcdir) && autoconf
11
12 $(CONFIG_STATUS): $(top_srcdir)/$(CONFIGURE)
13         ./$(CONFIG_STATUS) --recheck
14
15 MAKEFILES += subdirmk/regen.mk
16
17 main.mk $(MAKFILES): makefiles.phantom
18 .INTERMEDIATE: makefiles.phantom
19 makefiles.phantom:                                              \
20                 $(top_srcdir)/subdirmk/generate                 \
21                 $(CONFIG_STATUS)                                \
22                 $(top_srcdir)/Perdir.mk.in                      \
23                 $(foreach m,$(MAKEFILES),$(top_srcdir)/$(m).in)
24         ./$(CONFIG_STATUS)
25
26 realclean: clean
27         $(RM) config.status config.log
28         $(RM) main.mk $(MAKEFILES)
29
30 -include $(ALL_DEPFILES)