Fix overflow in the plaintext parser
[elinks.git] / Makefile
blob08d92fe3218c5ab9b9c41167db7f26d0515a15ad
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 # Makefile.config doesn't need a separate timestamp file because
22 # touching it doesn't directly cause other files to be rebuilt.
23 $(top_builddir)/Makefile.config: $(top_srcdir)/Makefile.config.in $(top_builddir)/config.status
24 cd $(top_builddir) \
25 && CONFIG_FILES=Makefile.config CONFIG_HEADERS= \
26 $(SHELL) ./config.status
28 $(top_builddir)/config.h: $(top_builddir)/stamp-h
29 @cd $(top_builddir) && \
30 if test ! -f $@; then \
31 rm -f stamp-h; \
32 $(MAKE) stamp-h; \
33 else :; fi
35 $(top_builddir)/stamp-h: $(top_srcdir)/config.h.in $(top_builddir)/config.status
36 cd $(top_builddir) \
37 && CONFIG_FILES= CONFIG_HEADERS=config.h \
38 $(SHELL) ./config.status
39 @echo timestamp > stamp-h 2> /dev/null
41 $(top_srcdir)/config.h.in: $(top_srcdir)/stamp-h.in
42 @if test ! -f $@; then \
43 rm -f $(top_srcdir)/stamp-h.in; \
44 $(MAKE) $(top_srcdir)/stamp-h.in; \
45 else :; fi
47 $(top_srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
48 cd $(top_srcdir) && $(AUTOHEADER)
49 @echo timestamp > $(top_srcdir)/stamp-h.in 2> /dev/null
52 ifeq ($(wildcard Makefile.config),)
53 # Catch all
54 $(MAKECMDGOALS) default:
55 @echo "You need to first run ./configure"
56 else
57 include $(top_srcdir)/Makefile.lib
58 endif