From: Marek VavruĊĦa Date: Thu, 19 Mar 2015 10:04:34 +0000 (+0100) Subject: build: option to build specific directories X-Git-Tag: v1.0.0-beta1~287^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=323d52349b4fefe943d2eb46fed8b01eacf9557b;p=thirdparty%2Fknot-resolver.git build: option to build specific directories --- diff --git a/Makefile b/Makefile index a1be42423..9cf516603 100644 --- a/Makefile +++ b/Makefile @@ -2,10 +2,10 @@ include config.mk include platform.mk # Targets -all: info libkresolve modules kresolved -install: libkresolve-install modules-install kresolved-install +all: info lib modules daemon +install: lib-install modules-install daemon-install check: all tests -clean: libkresolve-clean modules-clean kresolved-clean tests-clean doc-clean +clean: lib-clean modules-clean daemon-clean tests-clean doc-clean doc: doc-html .PHONY: all install check clean doc @@ -26,8 +26,8 @@ CFLAGS += $(libknot_CFLAGS) $(libuv_CFLAGS) $(cmocka_CFLAGS) $(python_CFLAGS) # Sub-targets include help.mk -include lib/libkresolve.mk -include daemon/kresolved.mk +include lib/lib.mk +include daemon/daemon.mk include modules/modules.mk include tests/tests.mk include doc/doc.mk diff --git a/daemon/kresolved.mk b/daemon/daemon.mk similarity index 78% rename from daemon/kresolved.mk rename to daemon/daemon.mk index 7e9347d7f..532ac36a9 100644 --- a/daemon/kresolved.mk +++ b/daemon/daemon.mk @@ -12,3 +12,8 @@ kresolved_LIBS := $(libkresolve_TARGET) $(libknot_LIBS) $(libuv_LIBS) # Make binary $(eval $(call make_bin,kresolved,daemon)) + +# Targets +daemon: kresolved +daemon-install: kresolved-install +daemon-clean: kresolved-clean diff --git a/lib/libkresolve.mk b/lib/lib.mk similarity index 83% rename from lib/libkresolve.mk rename to lib/lib.mk index 4955b2589..50aa2a60c 100644 --- a/lib/libkresolve.mk +++ b/lib/lib.mk @@ -27,4 +27,9 @@ libkresolve_LIBS := $(libknot_LIBS) libkresolve_TARGET := -Wl,-rpath,lib -Llib -lkresolve # Make library -$(eval $(call make_lib,libkresolve,lib)) \ No newline at end of file +$(eval $(call make_lib,libkresolve,lib)) + +# Targets +lib: libkresolve +lib-install: libkresolve-install +lib-clean: libkresolve-clean