From 9e30f841ac1496bc6c661491286c84c78f9ec96d Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 29 Jun 2011 13:26:45 -0500 Subject: [PATCH] make building init scripts optional This is to be used if you need openrc's core functionality but not the init scripts. --- Makefile | 16 ++++++++++------ README | 1 + 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index dd427d0..8f0a201 100644 --- a/Makefile +++ b/Makefile @@ -4,12 +4,7 @@ include Makefile.inc -SUBDIR= conf.d etc init.d local.d man scripts sh src - -# Build our old net foo or not -ifeq (${MKOLDNET},yes) -SUBDIR+= net doc -endif +SUBDIR= etc man scripts sh src # Build pkgconfig or not MKPKGCONFIG?= yes @@ -17,8 +12,17 @@ ifeq (${MKPKGCONFIG},yes) SUBDIR+= pkgconfig endif +ifneq (${MKINIT},no) +SUBDIR += conf.d init.d local.d + +# Build our old net foo or not +ifeq (${MKOLDNET},yes) +SUBDIR+= net doc +endif + # We need to ensure that runlevels is done last SUBDIR+= runlevels +endif INSTALLAFTER= _installafter diff --git a/README b/README index 5f3745c..ab6469d 100644 --- a/README +++ b/README @@ -10,6 +10,7 @@ You may wish to tweak the installation with the below arguments PROGLDFLAGS=-static LIBNAME=lib64 DESTDIR=/tmp/openrc-image +MKINIT=no MKPAM=pam MKPKGCONFIG=no MKRCSYS=prefix -- 1.7.3.4