apparmor/utils/Makefile
Steve Beattie 4f16824434 This patch makes it so that translations added to po/ directories are
automatically added to the set of languages to be built and installed
unless they are explicitly added to the set of disabled translations.
This eliminates the need to manually add a lang to the Makefile when a
new translation is submitted (svn add will still be necessary).
2006-11-15 09:22:15 +00:00

68 lines
2.2 KiB
Makefile

# $Id$
# ----------------------------------------------------------------------
# Copyright (c) 1999, 2004, 2005, 2006 NOVELL (All rights reserved)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 2 of the GNU General Public
# License published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, contact Novell, Inc.
# ----------------------------------------------------------------------
NAME = apparmor-utils
all:
COMMONDIR=../common/
include common/Make.rules
COMMONDIR_EXISTS=$(strip $(shell [ -d ${COMMONDIR} ] && echo true))
ifeq ($(COMMONDIR_EXISTS), true)
common/Make.rules: $(COMMONDIR)/Make.rules
ln -sf $(COMMONDIR) .
endif
TOOLS = genprof logprof autodep audit complain enforce \
unconfined aa-eventd apparmor_status
all:
make -C po all
# need some better way of determining this
DESTDIR=/
BINDIR=${DESTDIR}/usr/sbin
CONFDIR=${DESTDIR}/etc/apparmor
PERLDIR=${DESTDIR}/usr/lib/perl5/vendor_perl/Immunix
po/${NAME}.pot: ${TOOLS}
make -C po ${NAME}.pot NAME=${NAME} SOURCES="${TOOLS} SubDomain.pm Reports.pm"
.PHONY: install
install:
install -d ${CONFDIR}
install -m 644 logprof.conf severity.db ${CONFDIR}
install -d ${BINDIR}
ln -sf apparmor_status ${BINDIR}/aa-status
ln -sf audit ${BINDIR}/aa-audit
ln -sf autodep ${BINDIR}/aa-autodep
ln -sf complain ${BINDIR}/aa-complain
ln -sf enforce ${BINDIR}/aa-enforce
ln -sf genprof ${BINDIR}/aa-genprof
ln -sf logprof ${BINDIR}/aa-logprof
ln -sf unconfined ${BINDIR}/aa-unconfined
install -m 755 ${TOOLS} ${BINDIR}
install -d ${PERLDIR}
install -m 755 SubDomain.pm Reports.pm Severity.pm ${PERLDIR}
make -C po install DESTDIR=${DESTDIR} NAME=${NAME}
mkdir -m 0700 -p $(DESTDIR)/var/log/apparmor
.PHONY: clean
clean:
rm -f core core.* *.o *.s *.a *~
rm -f $(NAME)-$(VERSION)-*.tar.gz Make.rules
make -C po clean