2012-04-24 15:18:12 +00:00
|
|
|
# Installation directories.
|
2023-08-14 12:57:37 +00:00
|
|
|
LINGUAS ?=
|
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
|
2019-03-18 13:39:25 +00:00
|
|
|
DESKTOPDIR ?= $(PREFIX)/share/applications
|
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
|
2022-04-01 09:57:24 +00:00
|
|
|
(cd po && $(MAKE) $@)
|
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/
|
2019-03-18 13:39:25 +00:00
|
|
|
-mkdir -p $(DESTDIR)$(DESKTOPDIR)
|
2018-02-14 09:57:07 +00:00
|
|
|
install -m 755 system-config-selinux.py $(DESTDIR)$(SHAREDIR)
|
|
|
|
install -m 755 system-config-selinux $(DESTDIR)$(BINDIR)
|
2019-03-05 16:38:55 +00:00
|
|
|
install -m 755 polgengui.py $(DESTDIR)$(BINDIR)/selinux-polgengui
|
2018-02-14 09:57:07 +00:00
|
|
|
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
|
2018-12-25 15:25:05 +00:00
|
|
|
for lang in $(LINGUAS) ; do \
|
|
|
|
if [ -e $${lang} ] ; then \
|
|
|
|
mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/man8 ; \
|
|
|
|
install -m 644 $${lang}/*.8 $(DESTDIR)$(MANDIR)/$${lang}/man8/ ; \
|
|
|
|
fi ; \
|
|
|
|
done
|
2018-02-14 09:57:07 +00:00
|
|
|
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
|
2019-03-18 13:39:25 +00:00
|
|
|
install -m 644 *.desktop $(DESTDIR)$(DESKTOPDIR)
|
2018-02-14 09:57:07 +00:00
|
|
|
-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/
|
2022-04-01 09:57:24 +00:00
|
|
|
(cd po && $(MAKE) $@)
|
|
|
|
|
2012-04-24 15:18:12 +00:00
|
|
|
clean:
|
2022-04-01 09:57:24 +00:00
|
|
|
(cd po && $(MAKE) $@)
|
2012-04-24 15:18:12 +00:00
|
|
|
|
|
|
|
indent:
|
|
|
|
|
|
|
|
relabel:
|
2016-11-16 14:05:20 +00:00
|
|
|
|
|
|
|
test:
|