summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile42
1 files changed, 41 insertions, 1 deletions
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