summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2008-07-29 09:44:13 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2008-07-29 09:44:13 +0000
commit4c4309ecac3743fb42625697b79c6a7d097ae0c0 (patch)
treeb38aa88bd55c533b39b880563b8de4482104ca7f
parent4c6006e6f4d50ed9fadcd21a83afc177fd3f99be (diff)
downloadnetsurf-4c4309ecac3743fb42625697b79c6a7d097ae0c0.tar.gz
netsurf-4c4309ecac3743fb42625697b79c6a7d097ae0c0.tar.bz2
Rename AUTOCONF to M.CONFIG to make it clearer that it's Makefile.config governing the behaviour. Add support for Makefile.config.override so we stop checking in the disabling of HARU by mistake. Ensure the M.CONFIG lines do not appear when doing make clean.
svn path=/trunk/netsurf/; revision=4796
-rw-r--r--Makefile20
-rw-r--r--Makefile.config3
2 files changed, 18 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index f04ccdd1d..91eede9cb 100644
--- a/Makefile
+++ b/Makefile
@@ -154,9 +154,13 @@ define feature_enabled
ifeq ($$(NETSURF_USE_$(1)),YES)
CFLAGS += $(2)
LDFLAGS += $(3)
- $$(info AUTOCONF: building with $(4))
+ ifneq ($(MAKECMDGOALS),clean)
+ $$(info M.CONFIG: building with $(4))
+ endif
else
- $$(info AUTOCONF: building without $(4))
+ ifneq ($(MAKECMDGOALS),clean)
+ $$(info M.CONFIG: building without $(4))
+ endif
endif
endef
@@ -175,19 +179,25 @@ define pkg_config_find_and_add
NETSURF_USE_$(1) := YES
endif
else
- $$(info AUTOCONF: building with $(3))
+ ifneq ($(MAKECMDGOALS),clean)
+ $$(info M.CONFIG: building with $(3))
+ endif
endif
ifeq ($$(NETSURF_USE_$(1)),YES)
ifeq ($$(NETSURF_FEATURE_$(1)_AVAILABLE),yes)
CFLAGS += $$(shell $$(PKG_CONFIG) --cflags $(2)) $$(NETSURF_FEATURE_$(1)_CFLAGS)
LDFLAGS += $$(shell $$(PKG_CONFIG) --libs $(2)) $$(NETSURF_FEATURE_$(1)_LDFLAGS)
- $$(info AUTOCONF: auto-enabled $(3) ($(2)).)
+ ifneq ($(MAKECMDGOALS),clean)
+ $$(info M.CONFIG: auto-enabled $(3) ($(2)).)
+ endif
else
$$(error Unable to find library for: $(3) ($(2))
endif
endif
else
- $$(info AUTOCONF: building without $(3))
+ ifneq ($(MAKECMDGOALS),clean)
+ $$(info M.CONFIG: building without $(3))
+ endif
endif
endef
diff --git a/Makefile.config b/Makefile.config
index 8b2b978ab..c9e31aee5 100644
--- a/Makefile.config
+++ b/Makefile.config
@@ -82,3 +82,6 @@ ifeq ($(TARGET),gtk)
endif
+
+# Include any local overrides
+-include Makefile.config.override