diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-07-12 19:18:06 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-07-12 19:18:06 +0200 |
commit | b1e647baf2e1724838e34d25339a3672caf09e14 (patch) | |
tree | 1e305a8efc6138603c3949a4ab083b252b9e39c8 /makefiles/gmake/top.mk | |
parent | 7d4bf0e6f0f7e65ab3b2e6465755aa00d896d76e (diff) | |
download | crawler-b1e647baf2e1724838e34d25339a3672caf09e14.tar.gz crawler-b1e647baf2e1724838e34d25339a3672caf09e14.tar.bz2 |
added basic structure
Diffstat (limited to 'makefiles/gmake/top.mk')
-rw-r--r-- | makefiles/gmake/top.mk | 68 |
1 files changed, 62 insertions, 6 deletions
diff --git a/makefiles/gmake/top.mk b/makefiles/gmake/top.mk index 810bedc..fd31b11 100644 --- a/makefiles/gmake/top.mk +++ b/makefiles/gmake/top.mk @@ -14,6 +14,7 @@ # - target 'help' # - target 'install' # - target 'uninstall' +# - target 'config' -include makefiles/gmake/platform.mk @@ -26,13 +27,15 @@ all: clean: @test -z "$(SUBDIRS)" || ( set -e; for d in $(SUBDIRS)""; do \ (set -e; $(MAKE) -C $$d clean || exit 1); done) - @-rm $(TOPDIR)/makefiles/gmake/platform.mk.vars + @-test ! -f $(TOPDIR)/makefiles/gmake/platform.mk.vars && rm $(TOPDIR)/makefiles/gmake/platform.mk.vars + @-test ! -f $(TOPDIR)/makefiles/gmake/platform.vars || rm $(TOPDIR)/makefiles/gmake/platform.vars .PHONY: distclean distclean: @test -z "$(SUBDIRS)" || ( set -e; for d in $(SUBDIRS)""; do \ (set -e; $(MAKE) -C $$d distclean || exit 1); done) - @-rm $(TOPDIR)/makefiles/gmake/platform.mk.vars + @-test ! -f $(TOPDIR)/makefiles/gmake/platform.mk.vars || rm $(TOPDIR)/makefiles/gmake/platform.mk.vars + @-test ! -f $(TOPDIR)/makefiles/gmake/platform.vars || rm $(TOPDIR)/makefiles/gmake/platform.vars .PHONY: install install: @@ -46,16 +49,69 @@ uninstall: .PHONY: test test: all - @$(MAKE) -C tests test + @test -z "$(SUBDIRS)" || ( set -e; for d in $(SUBDIRS)""; do \ + (set -e; $(MAKE) -C $$d test || exit 1); done) -.PHONY: doc -doc: - cd docs; $(MAKE) doc +.PHONY: longtest +longtest: test + @test -z "$(SUBDIRS)" || ( set -e; for d in $(SUBDIRS)""; do \ + (set -e; $(MAKE) -C $$d longtest || exit 1); done) .PHONY: help help: @cat $(TOPDIR)/makefiles/gmake/help.mk +.PHONY: config +config: + @echo "Build Configuration for CrawlingWolf" + @echo "------------------------------------" + @echo + @echo "Operating system: $(PLATFORM), $(OS_MAJOR_VERSION).$(OS_MINOR_VERSION)" + @echo "Architecture: $(ARCH)" + @echo "System library directory: $(LIBDIR)" +ifeq "$(PLATFORM)" "LINUX" + @echo "Linux distribution: $(LINUX_DIST) $(LINUX_REV)" +endif + @echo "C++ Compiler: $(COMPILER)" + @echo + @echo "Optional Dependencies:" +ifeq ($(WITH_SQLITE3),1) +ifeq ($(WITH_SYSTEM_SQLITE3),1) + @echo + @echo "SQLITE3_DIR: $(SQLITE3_DIR)" + @echo "SQLITE3_INCLUDE_DIR: $(SQLITE3_INCLUDE_DIR)" + @echo "SQLITE3_LIB_DIR: $(SQLITE3_LIB_DIR)" + @echo "SQLITE3_LIBS: $(SQLITE3_LIBS)" +endif +ifeq ($(WITH_LOCAL_SQLITE3),1) + @echo + @echo "using local Sqlite3 amalgamation sources.." +endif +endif +ifeq ($(WITH_PGSQL),1) + @echo + @echo "PGSQL_DIR: $(PGSQL_DIR)" + @echo "PGSQL_INCLUDE_DIRS: $(PGSQL_INCLUDE_DIRS)" + @echo "PGSQL_LIB_DIRS: $(PGSQL_LIB_DIRS)" + @echo "PGSQL_LIBS: $(PGSQL_LIBS)" +endif +ifeq ($(WITH_LIBXML2),1) + @echo + @echo "LIBXML2_DIR: $(LIBXML2_DIR)" + @echo "LIBXML2_INCLUDE_DIRS: $(LIBXML2_INCLUDE_DIRS)" + @echo "LIBXML2_LIB_DIRS: $(LIBXML2_LIB_DIRS)" + @echo "LIBXML2_LIBS: $(LIBXML2_LIBS)" +endif + @echo + @echo "Additional build options:" + @echo +ifeq ($(ENABLE_NLS),0) + @echo "NLS support is disabled" +else + @echo "NLS support is enabled" +endif + @echo + .PHONY: init-po init-po: @test -z "$(SUBDIRS)" || ( set -e; for d in $(SUBDIRS)""; do \ |