Home | History | Annotate | Download | only in semodule
      1 # Installation directories.
      2 LINGUAS ?= ru
      3 PREFIX ?= /usr
      4 SBINDIR ?= $(PREFIX)/sbin
      5 MANDIR = $(PREFIX)/share/man
      6 
      7 CFLAGS ?= -Werror -Wall -W
      8 override LDLIBS += -lsepol -lselinux -lsemanage
      9 SEMODULE_OBJS = semodule.o
     10 
     11 all: semodule genhomedircon
     12 
     13 semodule: $(SEMODULE_OBJS)
     14 
     15 genhomedircon:
     16 	ln -sf semodule genhomedircon
     17 
     18 install: all
     19 	-mkdir -p $(DESTDIR)$(SBINDIR)
     20 	install -m 755 semodule $(DESTDIR)$(SBINDIR)
     21 	(cd $(DESTDIR)$(SBINDIR); ln -sf semodule genhomedircon)
     22 	test -d $(DESTDIR)$(MANDIR)/man8 || install -m 755 -d $(DESTDIR)$(MANDIR)/man8
     23 	install -m 644 semodule.8 $(DESTDIR)$(MANDIR)/man8/
     24 	install -m 644 genhomedircon.8 $(DESTDIR)$(MANDIR)/man8/
     25 	for lang in $(LINGUAS) ; do \
     26 		if [ -e $${lang} ] ; then \
     27 			test -d $(DESTDIR)$(MANDIR)/$${lang}/man8 || install -m 755 -d $(DESTDIR)$(MANDIR)/$${lang}/man8 ; \
     28 			install -m 644 $${lang}/*.8 $(DESTDIR)$(MANDIR)/$${lang}/man8/ ; \
     29 		fi ; \
     30 	done
     31 
     32 relabel:
     33 
     34 clean:
     35 	-rm -f semodule *.o genhomedircon
     36 
     37 indent:
     38 	../../scripts/Lindent $(wildcard *.[ch])
     39 
     40