diff options
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | initscripts.spec | 2 | ||||
-rw-r--r-- | src/Makefile | 2 |
3 files changed, 3 insertions, 4 deletions
@@ -4,8 +4,7 @@ VERSION=$(shell awk '/Version:/ { print $$2 }' initscripts.spec) CVSTAG = r$(subst .,-,$(VERSION)) all: - (cd src; make CFLAGS="$(CFLAGS)") - + (cd src; make) install: mkdir -p $(ROOT)/etc/profile.d $(ROOT)/sbin $(ROOT)/usr/sbin mkdir -p $(ROOT)/usr/man/man8 diff --git a/initscripts.spec b/initscripts.spec index 6d6a2aa3..cddb1cba 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -28,7 +28,7 @@ deactivate most network interfaces. %setup -q %build -make CFLAGS="$RPM_OPT_FLAGS" +make %install rm -rf $RPM_BUILD_ROOT diff --git a/src/Makefile b/src/Makefile index f274897a..987609ea 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,4 +1,4 @@ -CFLAGS+=-Wall -D_GNU_SOURCE -g +CFLAGS+=$(RPM_OPT_FLAGS) -Wall -D_GNU_SOURCE PROGS=usernetctl doexec netreport testd usleep ipcalc initlog minilogd \ getkey ppp-watch consoletype |