2012-04-24 15:18:12 +00:00
|
|
|
# Installation directories.
|
2018-02-14 09:57:07 +00:00
|
|
|
PREFIX ?= /usr
|
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 \
|
|
|
|
loginsPage.py \
|
|
|
|
modulesPage.py \
|
2018-02-13 12:08:48 +00:00
|
|
|
polgen.ui \
|
2012-04-24 15:18:12 +00:00
|
|
|
portsPage.py \
|
|
|
|
semanagePage.py \
|
|
|
|
statusPage.py \
|
2013-10-11 13:20:12 +00:00
|
|
|
system-config-selinux.png \
|
2017-09-20 06:56:54 +00:00
|
|
|
system-config-selinux.ui \
|
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
|
2018-02-14 09:57:07 +00:00
|
|
|
-mkdir -p $(DESTDIR)$(MANDIR)/man8
|
|
|
|
-mkdir -p $(DESTDIR)$(SHAREDIR)
|
|
|
|
-mkdir -p $(DESTDIR)$(BINDIR)
|
|
|
|
-mkdir -p $(DESTDIR)$(DATADIR)/pixmaps
|
|
|
|
-mkdir -p $(DESTDIR)$(DATADIR)/icons/hicolor/24x24/apps
|
|
|
|
-mkdir -p $(DESTDIR)$(DATADIR)/polkit-1/actions/
|
|
|
|
install -m 755 system-config-selinux.py $(DESTDIR)$(SHAREDIR)
|
|
|
|
install -m 755 system-config-selinux $(DESTDIR)$(BINDIR)
|
|
|
|
install -m 755 polgengui.py $(DESTDIR)$(SHAREDIR)
|
|
|
|
install -m 644 $(TARGETS) $(DESTDIR)$(SHAREDIR)
|
|
|
|
install -m 644 system-config-selinux.8 $(DESTDIR)$(MANDIR)/man8
|
|
|
|
install -m 644 selinux-polgengui.8 $(DESTDIR)$(MANDIR)/man8
|
|
|
|
install -m 644 system-config-selinux.png $(DESTDIR)$(DATADIR)/pixmaps
|
|
|
|
install -m 644 system-config-selinux.png $(DESTDIR)$(DATADIR)/icons/hicolor/24x24/apps
|
|
|
|
install -m 644 system-config-selinux.png $(DESTDIR)$(DATADIR)/system-config-selinux
|
|
|
|
install -m 644 *.desktop $(DESTDIR)$(DATADIR)/system-config-selinux
|
|
|
|
-mkdir -p $(DESTDIR)$(DATADIR)/pixmaps
|
|
|
|
install -m 644 sepolicy_256.png $(DESTDIR)$(DATADIR)/pixmaps/sepolicy.png
|
2016-11-02 13:46:05 +00:00
|
|
|
for i in 16 22 32 48 256; do \
|
2018-02-14 09:57:07 +00:00
|
|
|
mkdir -p $(DESTDIR)$(DATADIR)/icons/hicolor/$${i}x$${i}/apps; \
|
|
|
|
install -m 644 sepolicy_$${i}.png $(DESTDIR)$(DATADIR)/icons/hicolor/$${i}x$${i}/apps/sepolicy.png; \
|
2016-11-02 13:46:05 +00:00
|
|
|
done
|
2018-02-14 09:57:07 +00:00
|
|
|
install -m 644 org.selinux.config.policy $(DESTDIR)$(DATADIR)/polkit-1/actions/
|
2012-04-24 15:18:12 +00:00
|
|
|
clean:
|
|
|
|
|
|
|
|
indent:
|
|
|
|
|
|
|
|
relabel:
|
2016-11-16 14:05:20 +00:00
|
|
|
|
|
|
|
test:
|