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