1
# $Id: Makefile 238 2006-11-15 09:22:15Z steve-beattie $
2
# ----------------------------------------------------------------------
3
# Copyright (c) 1999, 2004, 2005, 2006 NOVELL (All rights reserved)
5
# This program is free software; you can redistribute it and/or
6
# modify it under the terms of version 2 of the GNU General Public
7
# License published by the Free Software Foundation.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License
15
# along with this program; if not, contact Novell, Inc.
16
# ----------------------------------------------------------------------
21
include common/Make.rules
23
COMMONDIR_EXISTS=$(strip $(shell [ -d ${COMMONDIR} ] && echo true))
24
ifeq ($(COMMONDIR_EXISTS), true)
25
common/Make.rules: $(COMMONDIR)/Make.rules
29
TOOLS = genprof logprof autodep audit complain enforce \
30
unconfined aa-eventd apparmor_status
35
# need some better way of determining this
37
BINDIR=${DESTDIR}/usr/sbin
38
CONFDIR=${DESTDIR}/etc/apparmor
39
PERLDIR=${DESTDIR}/usr/lib/perl5/vendor_perl/Immunix
41
po/${NAME}.pot: ${TOOLS}
42
make -C po ${NAME}.pot NAME=${NAME} SOURCES="${TOOLS} SubDomain.pm Reports.pm"
47
install -m 644 logprof.conf severity.db ${CONFDIR}
49
ln -sf apparmor_status ${BINDIR}/aa-status
50
ln -sf audit ${BINDIR}/aa-audit
51
ln -sf autodep ${BINDIR}/aa-autodep
52
ln -sf complain ${BINDIR}/aa-complain
53
ln -sf enforce ${BINDIR}/aa-enforce
54
ln -sf genprof ${BINDIR}/aa-genprof
55
ln -sf logprof ${BINDIR}/aa-logprof
56
ln -sf unconfined ${BINDIR}/aa-unconfined
57
install -m 755 ${TOOLS} ${BINDIR}
59
install -m 755 SubDomain.pm Reports.pm Severity.pm ${PERLDIR}
60
make -C po install DESTDIR=${DESTDIR} NAME=${NAME}
61
mkdir -m 0700 -p $(DESTDIR)/var/log/apparmor
65
rm -f core core.* *.o *.s *.a *~
66
rm -f $(NAME)-$(VERSION)-*.tar.gz Make.rules