2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 18:17:09 +00:00

Vaguely make the toplevel target 'make tarball' work. It's good (if

slow) for getting a clean export of the source. But too many of the
packages make some assumptions that they're in a checked out svn tree
that a lot of the auto-rpm building infrastructure breaks. Use at your
own risk.
This commit is contained in:
Steve Beattie 2007-08-16 22:11:01 +00:00
parent 9c0820d5ed
commit a7b52e44e3
2 changed files with 18 additions and 4 deletions

View File

@ -1,6 +1,7 @@
#
# $Id$
#
OVERRIDE_TARBALL=yes
include common/Make.rules
@ -10,17 +11,28 @@ DIRS=parser \
changehat/libapparmor \
changehat/mod_apparmor \
changehat/pam_apparmor \
management/apparmor-dbus \
management/applets/apparmorapplet-gnome \
management/yastui \
common \
tests
RELEASE_DIR=apparmor-${VERSION}-${REPO_VERSION}
_dist: clean
.PHONY: tarball
tarball: _dist
tar cvzf ${RELEASE_DIR}.tar.gz ${RELEASE_DIR}
${RELEASE_DIR}:
mkdir ${RELEASE_DIR}
for dir in ${DIRS} ; do \
svn export -r $(REPO_VERSION) $(REPO_URL)/$${dir} $(RELEASE_DIR)/$${dir} ; \
done
.PHONY: _dist
.PHONY: ${DIRS}
_dist: clean ${DIRS}
${DIRS}: ${RELEASE_DIR}
svn export -r $(REPO_VERSION) $(REPO_URL)/$@ $(RELEASE_DIR)/$@ ; \
clean:
-rm -rf ${RELEASE_DIR}

View File

@ -140,8 +140,10 @@ ${TARBALL}: clean ${SPECFILE}
$(TAR) -f $@ $(RELEASE_DIR)
rm -rf $(RELEASE_DIR)
ifndef OVERRIDE_TARBALL
.PHONY: tarball
tarball: clean $(TARBALL)
endif
.PHONY: dist
dist: clean $(SPECFILE)