policycoreutils: genhomedircon: regenerate genhomedircon more often

The semodule_path file, inside scripts, which is used to tell the
Makefile where genhomedircon should point to find semodule, was not
being updated.  This patch makes sure we update this file every time
something builds, thus genhomedircon doesn't point to some wild out of
data file location.

Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
Eric Paris 2013-01-25 10:21:40 -05:00
parent 0834ff3022
commit 3e4ab5e506
2 changed files with 6 additions and 2 deletions

View File

@ -6,6 +6,7 @@ SBINDIR ?= $(DESTDIR)/sbin
MANDIR ?= $(PREFIX)/share/man
LOCALEDIR ?= $(PREFIX)/share/locale
.PHONY: all genhomedircon
all: fixfiles genhomedircon chcat
genhomedircon:

View File

@ -10,11 +10,14 @@ override CFLAGS += -I$(INCLUDEDIR)
LDLIBS = -lsepol -lselinux -lsemanage -L$(LIBDIR)
SEMODULE_OBJS = semodule.o
all: semodule
.PHONY: all semodule_path
all: semodule semodule_path
semodule_path:
@echo -n $(SBINDIR) > ../scripts/semodule_path
semodule: $(SEMODULE_OBJS)
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
@echo -n $(SBINDIR) > ../scripts/semodule_path
install: all
-mkdir -p $(SBINDIR)