Merge with git+ssh://pasky/srv/git/elinks.git
[elinks/images.git] / Makefile
blobf21bfef4ed31026d69f551bd1e3995bc151ff222
1 path_to_top = .
2 -include $(path_to_top)/Makefile.config
4 SUBDIRS = doc po src
5 CLEAN = features.log
7 all-recursive: config.h
9 # Automagically rerun autotools
10 config.status: $(top_srcdir)/configure
11 $(SHELL) ./config.status --recheck
13 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
14 $(ACLOCAL_M4): configure.in acinclude.m4
15 cd $(top_srcdir) && $(ACLOCAL)
17 $(top_srcdir)/configure: $(top_srcdir)/configure.in $(ACLOCAL_M4)
18 cd $(top_srcdir) && $(AUTOCONF)
20 config.h: stamp-h
21 @if test ! -f $@; then \
22 rm -f stamp-h; \
23 $(MAKE) stamp-h; \
24 else :; fi
26 stamp-h: $(top_srcdir)/config.h.in $(top_builddir)/config.status
27 cd $(top_builddir) \
28 && CONFIG_FILES= CONFIG_HEADERS=config.h \
29 $(SHELL) ./config.status
30 @echo timestamp > stamp-h 2> /dev/null
32 $(top_srcdir)/config.h.in: $(top_srcdir)/stamp-h.in
33 @if test ! -f $@; then \
34 rm -f $(top_srcdir)/stamp-h.in; \
35 $(MAKE) $(top_srcdir)/stamp-h.in; \
36 else :; fi
38 $(top_srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
39 cd $(top_srcdir) && $(AUTOHEADER)
40 @echo timestamp > $(top_srcdir)/stamp-h.in 2> /dev/null
43 ifeq ($(wildcard Makefile.config),)
44 # Catch all
45 $(MAKECMDGOALS) default:
46 @echo "You need to first run ./configure"
47 else
48 include $(path_to_top)/Makefile.lib
49 endif