From 37a57b1a4004ab89424d8881d0b33b59709e375a Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sun, 29 Dec 2013 18:14:58 +0100 Subject: Give ability to not install some rc directories Signed-off-by: Abdoulaye Walsimou Gaye --- Makefile | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 119a27e..ecfc1c5 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,44 @@ include Makefile.inc -SUBDIR= conf.d etc init.d local.d man scripts sh src sysctl.d +SUBDIR= + +MKCONFD?= yes +ifeq ($(MKCONFD),yes) +SUBDIR+= conf.d +endif + +MKETC?= yes +ifeq ($(MKETC),yes) +SUBDIR+= etc +endif + +MKINITD?= yes +ifeq ($(MKINITD),yes) +SUBDIR+= init.d +endif + +MKLOCALD?= yes +ifeq ($(MKLOCALD),yes) +SUBDIR+= local.d +endif + +MKMAN?= yes +ifeq ($(MKMAN),yes) +SUBDIR+= man +endif + +MKSCRIPTS?= yes +ifeq ($(MKSCRIPTS),yes) +SUBDIR+= scripts +endif + +SUBDIR+= sh src + +MKSYSCTLD?= yes +ifeq ($(MKSYSCTLD),yes) +SUBDIR+= sysctl.d +endif # Build pkgconfig or not MKPKGCONFIG?= yes @@ -13,7 +50,10 @@ SUBDIR+= pkgconfig endif # We need to ensure that runlevels is done last +MKRUNLEVELS?= yes +ifeq ($(MKRUNLEVELS),yes) SUBDIR+= runlevels +endif INSTALLAFTER= _installafter -- cgit v1.2.3