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