Home | History | Annotate | Download | only in semodule_expand
      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_expand
     11 
     12 semodule_expand:  semodule_expand.o 
     13 
     14 install: all
     15 	-mkdir -p $(DESTDIR)$(BINDIR)
     16 	install -m 755 semodule_expand $(DESTDIR)$(BINDIR)
     17 	test -d $(DESTDIR)$(MANDIR)/man8 || install -m 755 -d $(DESTDIR)$(MANDIR)/man8
     18 	install -m 644 semodule_expand.8 $(DESTDIR)$(MANDIR)/man8/
     19 	for lang in $(LINGUAS) ; do \
     20 		if [ -e $${lang} ] ; then \
     21 			test -d $(DESTDIR)$(MANDIR)/$${lang}/man8 || install -m 755 -d $(DESTDIR)$(MANDIR)/$${lang}/man8 ; \
     22 			install -m 644 $${lang}/*.8 $(DESTDIR)$(MANDIR)/$${lang}/man8/ ; \
     23 		fi ; \
     24 	done
     25 
     26 relabel:
     27 
     28 clean:
     29 	-rm -f semodule_expand *.o
     30 
     31 indent:
     32 	../../scripts/Lindent $(wildcard *.[ch])
     33 
     34