mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-20 21:20:13 +00:00
468bff0952
This is purely personal preference. Most of the Makefiles use $() for Makefile variables, but a couple of places use ${}. Since this obscured some later Makefile changes I figured I'd just make them all the same up front. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
31 lines
631 B
Makefile
31 lines
631 B
Makefile
# Installation directories.
|
|
PREFIX ?= $(DESTDIR)/usr
|
|
SBINDIR ?= $(PREFIX)/sbin
|
|
MANDIR = $(PREFIX)/share/man
|
|
ETCDIR ?= $(DESTDIR)/etc
|
|
LIBDIR ?= $(PREFIX)/lib
|
|
|
|
CFLAGS = -Werror -Wall -W
|
|
override CFLAGS += -I$(PREFIX)/include -D_FILE_OFFSET_BITS=64
|
|
LDLIBS = -lselinux -L$(LIBDIR)
|
|
|
|
all: sestatus
|
|
|
|
sestatus: sestatus.o
|
|
|
|
install: all
|
|
[ -d $(MANDIR)/man8 ] || mkdir -p $(MANDIR)/man8
|
|
-mkdir -p $(SBINDIR)
|
|
install -m 755 sestatus $(SBINDIR)
|
|
install -m 644 sestatus.8 $(MANDIR)/man8
|
|
-mkdir -p $(ETCDIR)
|
|
install -m 644 sestatus.conf $(ETCDIR)
|
|
|
|
clean:
|
|
rm -f sestatus *.o
|
|
|
|
indent:
|
|
../../scripts/Lindent $(wildcard *.[ch])
|
|
|
|
relabel:
|