~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-08-10 18:12:34 UTC
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20110810181234-b6obckg60cp99crg
Tags: upstream-2.7.0~beta1+bzr1774
ImportĀ upstreamĀ versionĀ 2.7.0~beta1+bzr1774

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
     changehat/libapparmor \
11
11
     changehat/mod_apparmor \
12
12
     changehat/pam_apparmor \
13
 
     management/apparmor-dbus \
14
 
     management/applets/apparmorapplet-gnome \
15
 
     management/yastui \
16
 
     common \
17
13
     tests
18
14
 
19
 
REPO_URL?=lp:apparmor/2.6
 
15
REPO_URL?=lp:apparmor
20
16
# alternate possibilities to export from
21
17
#REPO_URL=.
22
18
#REPO_URL="bzr+ssh://bazaar.launchpad.net/~sbeattie/+junk/apparmor-dev/"
24
20
RELEASE_DIR=apparmor-${VERSION}
25
21
__SETUP_DIR?=.
26
22
 
 
23
# We create a separate version for tags because git can't handle tags
 
24
# with embedded ~s in them. No spaces around '-' or they'll get
 
25
# embedded in ${VERSION}
 
26
TAG_VERSION=$(subst ~,-, ${VERSION})
 
27
 
27
28
.PHONY: tarball
28
29
tarball: clean
29
30
        REPO_VERSION=`$(value REPO_VERSION_CMD)` ; \
30
31
        make export_dir __EXPORT_DIR=${RELEASE_DIR} __REPO_VERSION=$${REPO_VERSION} ; \
31
32
        make setup __SETUP_DIR=${RELEASE_DIR} ; \
32
 
        tar cvzf ${RELEASE_DIR}.tar.gz ${RELEASE_DIR}
 
33
        tar --exclude deprecated -cvzf ${RELEASE_DIR}.tar.gz ${RELEASE_DIR}
33
34
 
34
35
.PHONY: snapshot
35
36
snapshot: clean
37
38
        SNAPSHOT_DIR=apparmor-${VERSION}~$${REPO_VERSION} ;\
38
39
        make export_dir __EXPORT_DIR=$${SNAPSHOT_DIR} __REPO_VERSION=$${REPO_VERSION} ; \
39
40
        make setup __SETUP_DIR=$${SNAPSHOT_DIR} ; \
40
 
        tar cvzf $${SNAPSHOT_DIR}.tar.gz $${SNAPSHOT_DIR} ;
 
41
        tar --exclude deprecated -cvzf $${SNAPSHOT_DIR}.tar.gz $${SNAPSHOT_DIR} ;
41
42
 
42
43
 
43
44
.PHONY: export_dir
49
50
.PHONY: clean
50
51
clean:
51
52
        -rm -rf ${RELEASE_DIR} ./apparmor-${VERSION}~*
 
53
        for dir in $(DIRS); do \
 
54
                make -C $$dir clean; \
 
55
        done
52
56
 
53
57
.PHONY: setup
54
58
setup:
56
60
 
57
61
.PHONY: tag
58
62
tag:
59
 
        bzr tag apparmor_${VERSION}
 
63
        bzr tag apparmor_${TAG_VERSION}
 
64