2012-04-24 15:18:12 +00:00
|
|
|
# Installation directories.
|
|
|
|
PREFIX ?= ${DESTDIR}/usr
|
2013-10-09 18:17:07 +00:00
|
|
|
SYSCONFDIR ?= ${DESTDIR}/etc
|
2012-04-24 15:18:12 +00:00
|
|
|
BINDIR ?= $(PREFIX)/bin
|
|
|
|
SHAREDIR ?= $(PREFIX)/share/system-config-selinux
|
2013-10-09 18:17:07 +00:00
|
|
|
DATADIR ?= $(PREFIX)/share
|
|
|
|
MANDIR ?= $(PREFIX)/share/man
|
2012-04-24 15:18:12 +00:00
|
|
|
|
|
|
|
TARGETS= \
|
|
|
|
booleansPage.py \
|
|
|
|
domainsPage.py \
|
|
|
|
fcontextPage.py \
|
|
|
|
html_util.py \
|
|
|
|
loginsPage.py \
|
|
|
|
mappingsPage.py \
|
|
|
|
modulesPage.py \
|
|
|
|
polgen.glade \
|
|
|
|
portsPage.py \
|
|
|
|
semanagePage.py \
|
|
|
|
statusPage.py \
|
|
|
|
system-config-selinux.glade \
|
2013-10-11 13:20:12 +00:00
|
|
|
system-config-selinux.png \
|
2012-04-24 15:18:12 +00:00
|
|
|
usersPage.py
|
|
|
|
|
2012-05-18 15:40:11 +00:00
|
|
|
all: $(TARGETS) system-config-selinux.py polgengui.py
|
2012-04-24 15:18:12 +00:00
|
|
|
|
|
|
|
install: all
|
2013-10-11 13:20:12 +00:00
|
|
|
-mkdir -p $(MANDIR)/man8
|
2012-05-18 15:40:11 +00:00
|
|
|
-mkdir -p $(SHAREDIR)
|
2012-04-24 15:18:12 +00:00
|
|
|
-mkdir -p $(BINDIR)
|
2013-10-11 13:20:12 +00:00
|
|
|
-mkdir -p $(DATADIR)/pixmaps
|
|
|
|
-mkdir -p $(DATADIR)/icons/hicolor/24x24/apps
|
|
|
|
-mkdir -p $(SYSCONFDIR)
|
|
|
|
-mkdir -p $(DATADIR)/polkit-1/actions/
|
2012-04-24 15:18:12 +00:00
|
|
|
install -m 755 system-config-selinux.py $(SHAREDIR)
|
2013-10-11 13:20:12 +00:00
|
|
|
install -m 755 system-config-selinux $(BINDIR)
|
2012-04-24 15:18:12 +00:00
|
|
|
install -m 755 polgengui.py $(SHAREDIR)
|
|
|
|
install -m 644 $(TARGETS) $(SHAREDIR)
|
2013-10-11 13:20:12 +00:00
|
|
|
install -m 644 system-config-selinux.8 $(MANDIR)/man8
|
|
|
|
install -m 644 selinux-polgengui.8 $(MANDIR)/man8
|
|
|
|
install -m 644 system-config-selinux.png $(DATADIR)/pixmaps
|
|
|
|
install -m 644 system-config-selinux.png $(DATADIR)/icons/hicolor/24x24/apps
|
|
|
|
install -m 644 system-config-selinux.png $(DATADIR)/system-config-selinux
|
|
|
|
install -m 644 *.desktop $(DATADIR)/system-config-selinux
|
2016-11-02 13:46:05 +00:00
|
|
|
-mkdir -p $(DESTDIR) $(DATADIR)/pixmaps
|
|
|
|
install -m 644 sepolicy_256.png $(DATADIR)/pixmaps/sepolicy.png
|
|
|
|
for i in 16 22 32 48 256; do \
|
|
|
|
mkdir -p $(DESTDIR) $(DATADIR)/icons/hicolor/$${i}x$${i}/apps; \
|
|
|
|
install -m 644 sepolicy_$${i}.png $(DATADIR)/icons/hicolor/$${i}x$${i}/apps/sepolicy.png; \
|
|
|
|
done
|
2013-10-11 13:20:12 +00:00
|
|
|
install -m 644 org.selinux.config.policy $(DATADIR)/polkit-1/actions/
|
2012-04-24 15:18:12 +00:00
|
|
|
clean:
|
|
|
|
|
|
|
|
indent:
|
|
|
|
|
|
|
|
relabel:
|
2016-11-16 14:05:20 +00:00
|
|
|
|
|
|
|
test:
|