1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
PREFIX ?= /usr
SBINDIR ?= $(PREFIX)/sbin
MANDIR ?= $(PREFIX)/share/man
override CFLAGS += -I../../libselinux/include -D_GNU_SOURCE
override LDFLAGS+= -L../../libselinux/src
override LDLIBS += $(LIBSELINUX_LDLIBS)
all: unsetfiles
unsetfiles: unsetfiles.o
install: all
test -d $(DESTDIR)$(SBINDIR) || install -m 755 -d $(DESTDIR)$(SBINDIR)
test -d $(DESTDIR)$(MANDIR)/man1 || install -m 755 -d $(DESTDIR)$(MANDIR)/man1
install -m 755 unsetfiles $(DESTDIR)$(SBINDIR)
install -m 644 unsetfiles.1 $(DESTDIR)$(MANDIR)/man1/
clean:
-rm -f unsetfiles *.o
indent:
../../scripts/Lindent $(wildcard *.[ch])
relabel: install
/sbin/restorecon $(DESTDIR)$(SBINDIR)/unsetfiles
|