Home | History | Annotate | Download | only in gui
      1 # Installation directories.
      2 LINGUAS ?= ru
      3 PREFIX ?= /usr
      4 BINDIR ?= $(PREFIX)/bin
      5 SHAREDIR ?= $(PREFIX)/share/system-config-selinux
      6 DATADIR ?= $(PREFIX)/share
      7 MANDIR ?= $(PREFIX)/share/man
      8 DESKTOPDIR ?= $(PREFIX)/share/applications
      9 
     10 TARGETS= \
     11 booleansPage.py \
     12 domainsPage.py \
     13 fcontextPage.py \
     14 loginsPage.py \
     15 modulesPage.py \
     16 polgen.ui \
     17 portsPage.py \
     18 semanagePage.py \
     19 statusPage.py \
     20 system-config-selinux.png \
     21 system-config-selinux.ui \
     22 usersPage.py
     23 
     24 all: $(TARGETS) system-config-selinux.py polgengui.py
     25 
     26 install: 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/
     57 clean:
     58 
     59 indent:
     60 
     61 relabel:
     62 
     63 test:
     64