1# Installation directories. 2LINGUAS ?= ru 3PREFIX ?= /usr 4BINDIR ?= $(PREFIX)/bin 5SHAREDIR ?= $(PREFIX)/share/system-config-selinux 6DATADIR ?= $(PREFIX)/share 7MANDIR ?= $(PREFIX)/share/man 8DESKTOPDIR ?= $(PREFIX)/share/applications 9 10TARGETS= \ 11booleansPage.py \ 12domainsPage.py \ 13fcontextPage.py \ 14loginsPage.py \ 15modulesPage.py \ 16polgen.ui \ 17portsPage.py \ 18semanagePage.py \ 19statusPage.py \ 20system-config-selinux.png \ 21system-config-selinux.ui \ 22usersPage.py 23 24all: $(TARGETS) system-config-selinux.py polgengui.py 25 26install: all 27 -mkdir -p $(DESTDIR)$(MANDIR)/man8 28 -mkdir -p $(DESTDIR)$(SHAREDIR) 29 -mkdir -p $(DESTDIR)$(BINDIR) 30 -mkdir -p $(DESTDIR)$(DATADIR)/pixmaps 31 -mkdir -p $(DESTDIR)$(DATADIR)/icons/hicolor/24x24/apps 32 -mkdir -p $(DESTDIR)$(DATADIR)/polkit-1/actions/ 33 -mkdir -p $(DESTDIR)$(DESKTOPDIR) 34 install -m 755 system-config-selinux.py $(DESTDIR)$(SHAREDIR) 35 install -m 755 system-config-selinux $(DESTDIR)$(BINDIR) 36 install -m 755 polgengui.py $(DESTDIR)$(BINDIR)/selinux-polgengui 37 install -m 644 $(TARGETS) $(DESTDIR)$(SHAREDIR) 38 install -m 644 system-config-selinux.8 $(DESTDIR)$(MANDIR)/man8 39 install -m 644 selinux-polgengui.8 $(DESTDIR)$(MANDIR)/man8 40 for lang in $(LINGUAS) ; do \ 41 if [ -e $${lang} ] ; then \ 42 mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/man8 ; \ 43 install -m 644 $${lang}/*.8 $(DESTDIR)$(MANDIR)/$${lang}/man8/ ; \ 44 fi ; \ 45 done 46 install -m 644 system-config-selinux.png $(DESTDIR)$(DATADIR)/pixmaps 47 install -m 644 system-config-selinux.png $(DESTDIR)$(DATADIR)/icons/hicolor/24x24/apps 48 install -m 644 system-config-selinux.png $(DESTDIR)$(DATADIR)/system-config-selinux 49 install -m 644 *.desktop $(DESTDIR)$(DESKTOPDIR) 50 -mkdir -p $(DESTDIR)$(DATADIR)/pixmaps 51 install -m 644 sepolicy_256.png $(DESTDIR)$(DATADIR)/pixmaps/sepolicy.png 52 for i in 16 22 32 48 256; do \ 53 mkdir -p $(DESTDIR)$(DATADIR)/icons/hicolor/$${i}x$${i}/apps; \ 54 install -m 644 sepolicy_$${i}.png $(DESTDIR)$(DATADIR)/icons/hicolor/$${i}x$${i}/apps/sepolicy.png; \ 55 done 56 install -m 644 org.selinux.config.policy $(DESTDIR)$(DATADIR)/polkit-1/actions/ 57clean: 58 59indent: 60 61relabel: 62 63test: 64