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

« back to all changes in this revision

Viewing changes to 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
#
 
2
#
 
3
OVERRIDE_TARBALL=yes
 
4
 
 
5
include common/Make.rules
 
6
 
 
7
DIRS=parser \
 
8
     profiles \
 
9
     utils \
 
10
     changehat/libapparmor \
 
11
     changehat/mod_apparmor \
 
12
     changehat/pam_apparmor \
 
13
     management/apparmor-dbus \
 
14
     management/applets/apparmorapplet-gnome \
 
15
     management/yastui \
 
16
     common \
 
17
     tests
 
18
 
 
19
REPO_URL?=lp:apparmor/2.6
 
20
# alternate possibilities to export from
 
21
#REPO_URL=.
 
22
#REPO_URL="bzr+ssh://bazaar.launchpad.net/~sbeattie/+junk/apparmor-dev/"
 
23
 
 
24
RELEASE_DIR=apparmor-${VERSION}
 
25
__SETUP_DIR?=.
 
26
 
 
27
.PHONY: tarball
 
28
tarball: clean
 
29
        REPO_VERSION=`$(value REPO_VERSION_CMD)` ; \
 
30
        make export_dir __EXPORT_DIR=${RELEASE_DIR} __REPO_VERSION=$${REPO_VERSION} ; \
 
31
        make setup __SETUP_DIR=${RELEASE_DIR} ; \
 
32
        tar cvzf ${RELEASE_DIR}.tar.gz ${RELEASE_DIR}
 
33
 
 
34
.PHONY: snapshot
 
35
snapshot: clean
 
36
        REPO_VERSION=`$(value REPO_VERSION_CMD)` ; \
 
37
        SNAPSHOT_DIR=apparmor-${VERSION}~$${REPO_VERSION} ;\
 
38
        make export_dir __EXPORT_DIR=$${SNAPSHOT_DIR} __REPO_VERSION=$${REPO_VERSION} ; \
 
39
        make setup __SETUP_DIR=$${SNAPSHOT_DIR} ; \
 
40
        tar cvzf $${SNAPSHOT_DIR}.tar.gz $${SNAPSHOT_DIR} ;
 
41
 
 
42
 
 
43
.PHONY: export_dir
 
44
export_dir:
 
45
        mkdir $(__EXPORT_DIR)
 
46
        /usr/bin/bzr export --per-file-timestamps -r $(__REPO_VERSION) $(__EXPORT_DIR) $(REPO_URL)
 
47
        echo "$(REPO_URL) $(__REPO_VERSION)" > $(__EXPORT_DIR)/common/.stamp_rev
 
48
 
 
49
.PHONY: clean
 
50
clean:
 
51
        -rm -rf ${RELEASE_DIR} ./apparmor-${VERSION}~*
 
52
 
 
53
.PHONY: setup
 
54
setup:
 
55
        cd $(__SETUP_DIR)/libraries/libapparmor && ./autogen.sh
 
56
 
 
57
.PHONY: tag
 
58
tag:
 
59
        bzr tag apparmor_${VERSION}