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