Move code from format_table() to new distribute_table_widths().
[elinks.git] / Makefile
blob1c788d532893a72a24f0cef10cc31a57e62d073e
1 top_builddir=.
2 -include $(top_builddir)/Makefile.config
4 SUBDIRS = doc src
5 SUBDIRS-$(CONFIG_NLS) += po
6 CLEAN = features.log
8 all-recursive: config.h
10 # Automagically rerun autotools
11 $(top_builddir)/config.status: $(top_srcdir)/configure
12 cd $(top_builddir) && $(SHELL) ./config.status --recheck
14 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
15 $(ACLOCAL_M4): $(top_srcdir)/configure.in $(top_srcdir)/acinclude.m4
16 cd $(top_srcdir) && $(ACLOCAL)
18 $(top_srcdir)/configure: $(top_srcdir)/configure.in $(ACLOCAL_M4)
19 cd $(top_srcdir) && $(AUTOCONF)
21 $(top_builddir)/config.h: $(top_builddir)/stamp-h
22 @cd $(top_builddir) && \
23 if test ! -f $@; then \
24 rm -f stamp-h; \
25 $(MAKE) stamp-h; \
26 else :; fi
28 $(top_builddir)/stamp-h: $(top_srcdir)/config.h.in $(top_builddir)/config.status
29 cd $(top_builddir) \
30 && CONFIG_FILES= CONFIG_HEADERS=config.h \
31 $(SHELL) ./config.status
32 @echo timestamp > stamp-h 2> /dev/null
34 $(top_srcdir)/config.h.in: $(top_srcdir)/stamp-h.in
35 @if test ! -f $@; then \
36 rm -f $(top_srcdir)/stamp-h.in; \
37 $(MAKE) $(top_srcdir)/stamp-h.in; \
38 else :; fi
40 $(top_srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
41 cd $(top_srcdir) && $(AUTOHEADER)
42 @echo timestamp > $(top_srcdir)/stamp-h.in 2> /dev/null
45 ifeq ($(wildcard Makefile.config),)
46 # Catch all
47 $(MAKECMDGOALS) default:
48 @echo "You need to first run ./configure"
49 else
50 include $(top_srcdir)/Makefile.lib
51 endif