summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2014-10-09 13:27:16 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2014-10-09 13:27:16 +0200
commit773bcc7ccd52dc72114b293bba9dbca1e9ae054a (patch)
tree8485d3f3d3cc6fb90cbd06baf8dc3fdf270d5c78
parent595f6b02c854fdc412a180fc6767148d6eebd394 (diff)
downloadcrawler-773bcc7ccd52dc72114b293bba9dbca1e9ae054a.tar.gz
crawler-773bcc7ccd52dc72114b293bba9dbca1e9ae054a.tar.bz2
building curl fetcher only if WITH_CURL=1 is set
-rw-r--r--makefiles/gmake/help.mk3
-rw-r--r--src/modules/fetcher/GNUmakefile6
2 files changed, 7 insertions, 2 deletions
diff --git a/makefiles/gmake/help.mk b/makefiles/gmake/help.mk
index db834a1..376cd3e 100644
--- a/makefiles/gmake/help.mk
+++ b/makefiles/gmake/help.mk
@@ -55,5 +55,6 @@ Example:
make WITH_SSL=1 WITH_SQLITE3=1 WITH_PGSQL=1 \
WITH_LOCAL_LIBFETCH=1 WITH_LIBXML2=1 \
WITH_LOCAL_GOOGLEURL=1 WITH_ICU=1 \
- WITH_LUA=1 WITH_LOCAL_TEXTWOLF=1
+ WITH_LUA=1 WITH_LOCAL_TEXTWOLF=1 \
+ WITH_CURL=1
diff --git a/src/modules/fetcher/GNUmakefile b/src/modules/fetcher/GNUmakefile
index 6be8eaa..feb638c 100644
--- a/src/modules/fetcher/GNUmakefile
+++ b/src/modules/fetcher/GNUmakefile
@@ -1,6 +1,10 @@
TOPDIR = ../../..
-SUBDIRS = libfetch file libcurl
+SUBDIRS = libfetch file
+
+ifeq ($(WITH_CURL),1)
+SUBDIRS += libcurl
+endif
-include $(TOPDIR)/makefiles/gmake/sub.mk