~ubuntu-branches/ubuntu/wily/apparmor/wily

« back to all changes in this revision

Viewing changes to module-deprecated/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2011-04-27 10:38:07 UTC
  • mfrom: (5.1.118 natty)
  • Revision ID: james.westby@ubuntu.com-20110427103807-ym3rhwys6o84ith0
Tags: 2.6.1-2
debian/copyright: clarify for some full organization names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile for AppArmor Linux Security Module (previously called "SubDomain")
2
 
#
3
 
# kernel build Makefile is the Kbuild file
4
 
 
5
 
REPO_VERSION := $(shell if [ -x /usr/bin/svn ] ; then \
6
 
        /usr/bin/svn info . 2> /dev/null | grep "^Last Changed Rev:" | sed "s/^Last Changed Rev: //" ; \
7
 
        fi)
8
 
 
9
 
ifeq ("${REPO_VERSION}", "")
10
 
REPO_VERSION := "unknown"
11
 
endif
12
 
 
13
 
KERNELVER := $(shell uname -r)
14
 
 
15
 
KERNELDIR := /lib/modules/${KERNELVER}/build
16
 
 
17
 
all:
18
 
        $(MAKE) -C $(KERNELDIR) M=`pwd` APPARMOR_VER=${REPO_VERSION} $@
19
 
        mv apparmor.ko apparmor-${KERNELVER}.ko
20
 
        mv aamatch/aamatch_pcre.ko aamatch_pcre-${KERNELVER}.ko
21
 
 
22
 
clean:
23
 
        rm -f *.o *.ko *.mod.c .*.cmd Module{s,}.symvers \
24
 
                aamatch/*.o aamatch/*.ko aamatch/.*.cmd aamatch/*.mod.c
25
 
        rm -rf .tmp_versions