summaryrefslogtreecommitdiff
path: root/Build/source/texk/make/config.mk
blob: 21a7839c73d55078733d71d9d84eb96b3d1e9d88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# config.mk -- autoconf rules to remake the Makefile, c-auto.h, etc.
@MAINT@ac_dir = $(top_srcdir)/../etc/autoconf
@MAINT@autoconf = $(ac_dir)/acspecific.m4 $(ac_dir)/acgeneral.m4 $(ac_dir)/acsite.m4
@MAINT@autoheader = $(ac_dir)/acconfig.h $(ac_dir)/autoheader.m4
@MAINT@
@MAINT@# I define $(autoconf) to acgeneral.m4 and the other Autoconf files, so
@MAINT@# configure automatically gets remade in the sources with a new Autoconf
@MAINT@# release.  But it would be bad for installers with Autoconf to remake
@MAINT@# configure (not to mention require Autoconf), so I take out the variable
@MAINT@# $(autoconf) definition before release.
@MAINT@# 
@MAINT@# BTW, xt.ac isn't really required for dvipsk or dviljk, but it doesn't
@MAINT@# seem worth the trouble.
@MAINT@# 
@MAINT@configure_in = $(srcdir)/configure.in $(kpathsea_srcdir)/common.ac \
@MAINT@  $(kpathsea_srcdir)/withenable.ac $(kpathsea_srcdir)/xt.ac \
@MAINT@  $(kpathsea_srcdir_parent)/libtool.m4
@MAINT@$(srcdir)/configure: $(configure_in) $(autoconf)
@MAINT@	cd $(srcdir) && $(top_srcdir)/../autoconf2.13 -m $(ac_dir)

config.status: $(srcdir)/configure
	$(SHELL) $@ --recheck

Makefile: config.status $(srcdir)/Makefile.in $(top_srcdir)/../make/*.mk
	$(SHELL) $<

@MAINT@# autoheader reads acconfig.h (and c-auto.h.top) automatically.
@MAINT@$(srcdir)/c-auto.in: $(srcdir)/stamp-auto.in
@MAINT@$(srcdir)/stamp-auto.in: $(configure_in) $(autoheader) \
@MAINT@  $(kpathsea_srcdir)/acconfig.h
@MAINT@	cd $(srcdir) && autoheader -m $(ac_dir) -l $(srcdir)
@MAINT@	date >$(srcdir)/stamp-auto.in

# This rule isn't used for the top-level Makefile, but it doesn't hurt.
# We don't depend on config.status because configure always rewrites
# config.status, even when it doesn't change. Thus it might be newer
# than c-auto.h when we don't need to remake the latter.
c-auto.h: stamp-auto
stamp-auto: $(srcdir)/c-auto.in
	$(SHELL) config.status
	date >stamp-auto

# End of config.mk.