• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Installation directories.
2LINGUAS ?= ru
3PREFIX ?= /usr
4BINDIR ?= $(PREFIX)/bin
5MANDIR ?= $(PREFIX)/share/man
6
7CFLAGS ?= -Werror -Wall -W
8override LDLIBS += -lsepol
9
10all: semodule_package semodule_unpackage
11
12semodule_package:  semodule_package.o
13
14install: 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
28relabel:
29
30clean:
31	-rm -f semodule_package semodule_unpackage *.o
32
33indent:
34	../../scripts/Lindent $(wildcard *.[ch])
35
36