2005-09-15 20:07:36 -04:00
|
|
|
path_to_top = .
|
2005-10-01 12:18:58 -04:00
|
|
|
-include $(path_to_top)/Makefile.config
|
2005-09-15 15:03:56 -04:00
|
|
|
|
|
|
|
SUBDIRS = doc po src
|
2005-09-27 12:27:17 -04:00
|
|
|
CLEAN = features.log
|
2005-09-15 15:03:56 -04:00
|
|
|
|
2005-10-02 19:29:52 -04:00
|
|
|
all-recursive: config.h
|
|
|
|
|
|
|
|
# Automagically rerun autotools
|
|
|
|
config.status: $(top_srcdir)/configure
|
|
|
|
$(SHELL) ./config.status --recheck
|
|
|
|
|
|
|
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
|
|
|
$(ACLOCAL_M4): configure.in acinclude.m4
|
|
|
|
cd $(top_srcdir) && $(ACLOCAL)
|
|
|
|
|
|
|
|
$(top_srcdir)/configure: $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
|
|
|
cd $(top_srcdir) && $(AUTOCONF)
|
|
|
|
|
|
|
|
config.h: stamp-h
|
|
|
|
@if test ! -f $@; then \
|
|
|
|
rm -f stamp-h; \
|
|
|
|
$(MAKE) stamp-h; \
|
|
|
|
else :; fi
|
|
|
|
|
|
|
|
stamp-h: $(top_srcdir)/config.h.in $(top_builddir)/config.status
|
|
|
|
cd $(top_builddir) \
|
|
|
|
&& CONFIG_FILES= CONFIG_HEADERS=config.h \
|
|
|
|
$(SHELL) ./config.status
|
|
|
|
@echo timestamp > stamp-h 2> /dev/null
|
|
|
|
|
|
|
|
$(top_srcdir)/config.h.in: $(top_srcdir)/stamp-h.in
|
|
|
|
@if test ! -f $@; then \
|
|
|
|
rm -f $(top_srcdir)/stamp-h.in; \
|
|
|
|
$(MAKE) $(top_srcdir)/stamp-h.in; \
|
|
|
|
else :; fi
|
|
|
|
|
|
|
|
$(top_srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
|
|
|
cd $(top_srcdir) && $(AUTOHEADER)
|
|
|
|
@echo timestamp > $(top_srcdir)/stamp-h.in 2> /dev/null
|
|
|
|
|
|
|
|
|
2005-10-01 12:18:58 -04:00
|
|
|
ifeq ($(wildcard Makefile.config),)
|
|
|
|
# Catch all
|
|
|
|
$(MAKECMDGOALS) default:
|
|
|
|
@echo "You need to first run ./configure"
|
|
|
|
else
|
2005-10-19 19:11:47 -04:00
|
|
|
include $(top_srcdir)/Makefile.lib
|
2005-10-01 12:18:58 -04:00
|
|
|
endif
|