• 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_link
11
12semodule_link:  semodule_link.o
13
14install: all
15	-mkdir -p $(DESTDIR)$(BINDIR)
16	install -m 755 semodule_link $(DESTDIR)$(BINDIR)
17	test -d $(DESTDIR)$(MANDIR)/man8 || install -m 755 -d $(DESTDIR)$(MANDIR)/man8
18	install -m 644 semodule_link.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
26relabel:
27
28clean:
29	-rm -f semodule_link *.o
30
31indent:
32	../../scripts/Lindent $(wildcard *.[ch])
33
34