mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-17 10:06:51 +00:00
Author: Daniel J Walsh
Email: dwalsh@redhat.com Subject: We have moved matchpathcon to /sbin from /usr/sbin Date: Wed, 01 Apr 2009 10:21:53 -0400 Some init scripts wanted to use matchpathcon before /usr is mounted. Author: Chad Sellers Email: csellers@tresys.com Added matchpathcon to clean target Signed-off-by: Chad Sellers <csellers@tresys.com>
This commit is contained in:
parent
a4af847dc6
commit
72d535fdb8
@ -2,28 +2,33 @@
|
|||||||
PREFIX ?= $(DESTDIR)/usr
|
PREFIX ?= $(DESTDIR)/usr
|
||||||
LIBDIR ?= $(PREFIX)/lib
|
LIBDIR ?= $(PREFIX)/lib
|
||||||
BINDIR ?= $(PREFIX)/sbin
|
BINDIR ?= $(PREFIX)/sbin
|
||||||
|
_BINDIR ?= $(DESTDIR)/sbin
|
||||||
|
|
||||||
CFLAGS ?= -Wall
|
CFLAGS ?= -Wall
|
||||||
override CFLAGS += -I../include -D_GNU_SOURCE $(EMFLAGS)
|
override CFLAGS += -I../include -D_GNU_SOURCE $(EMFLAGS)
|
||||||
LDLIBS += -L../src -lselinux -L$(LIBDIR)
|
LDLIBS += -L../src -lselinux -L$(LIBDIR)
|
||||||
|
|
||||||
TARGETS=$(patsubst %.c,%,$(wildcard *.c))
|
TARGETS=$(patsubst %.c,%,$(wildcard *.c))
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(DISABLE_AVC),y)
|
ifeq ($(DISABLE_AVC),y)
|
||||||
UNUSED_TARGETS+=compute_av compute_create compute_member compute_relabel
|
UNUSED_TARGETS+=compute_av compute_create compute_member compute_relabel
|
||||||
endif
|
endif
|
||||||
ifeq ($(DISABLE_BOOL),y)
|
ifeq ($(DISABLE_BOOL),y)
|
||||||
UNUSED_TARGETS+=getsebool togglesebool
|
UNUSED_TARGETS+=getsebool togglesebool
|
||||||
endif
|
endif
|
||||||
TARGETS:= $(filter-out $(UNUSED_TARGETS), $(TARGETS))
|
TARGETS:= $(filter-out $(UNUSED_TARGETS) matchpathcon, $(TARGETS))
|
||||||
|
|
||||||
all: $(TARGETS)
|
all: $(TARGETS) matchpathcon
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
-mkdir -p $(BINDIR)
|
-mkdir -p $(BINDIR)
|
||||||
install -m 755 $(TARGETS) $(BINDIR)
|
install -m 755 $(TARGETS) $(BINDIR)
|
||||||
|
-mkdir -p $(_BINDIR)
|
||||||
|
install -m 755 matchpathcon $(_BINDIR)
|
||||||
|
(cd $(BINDIR); ln -fs ../../sbin/matchpathcon)
|
||||||
clean:
|
clean:
|
||||||
rm -f $(TARGETS) *.o
|
rm -f $(TARGETS) matchpathcon *.o *~
|
||||||
|
|
||||||
indent:
|
indent:
|
||||||
../../scripts/Lindent $(wildcard *.[ch])
|
../../scripts/Lindent $(wildcard *.[ch])
|
||||||
|
Loading…
Reference in New Issue
Block a user