mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-28 21:07:56 +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:
parent
9c0820d5ed
commit
a7b52e44e3
20
Makefile
20
Makefile
@ -1,6 +1,7 @@
|
|||||||
#
|
#
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
|
OVERRIDE_TARBALL=yes
|
||||||
|
|
||||||
include common/Make.rules
|
include common/Make.rules
|
||||||
|
|
||||||
@ -10,17 +11,28 @@ DIRS=parser \
|
|||||||
changehat/libapparmor \
|
changehat/libapparmor \
|
||||||
changehat/mod_apparmor \
|
changehat/mod_apparmor \
|
||||||
changehat/pam_apparmor \
|
changehat/pam_apparmor \
|
||||||
|
management/apparmor-dbus \
|
||||||
|
management/applets/apparmorapplet-gnome \
|
||||||
management/yastui \
|
management/yastui \
|
||||||
common \
|
common \
|
||||||
tests
|
tests
|
||||||
|
|
||||||
RELEASE_DIR=apparmor-${VERSION}-${REPO_VERSION}
|
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}
|
mkdir ${RELEASE_DIR}
|
||||||
for dir in ${DIRS} ; do \
|
|
||||||
svn export -r $(REPO_VERSION) $(REPO_URL)/$${dir} $(RELEASE_DIR)/$${dir} ; \
|
.PHONY: _dist
|
||||||
done
|
.PHONY: ${DIRS}
|
||||||
|
|
||||||
|
_dist: clean ${DIRS}
|
||||||
|
|
||||||
|
${DIRS}: ${RELEASE_DIR}
|
||||||
|
svn export -r $(REPO_VERSION) $(REPO_URL)/$@ $(RELEASE_DIR)/$@ ; \
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -rf ${RELEASE_DIR}
|
-rm -rf ${RELEASE_DIR}
|
||||||
|
@ -140,8 +140,10 @@ ${TARBALL}: clean ${SPECFILE}
|
|||||||
$(TAR) -f $@ $(RELEASE_DIR)
|
$(TAR) -f $@ $(RELEASE_DIR)
|
||||||
rm -rf $(RELEASE_DIR)
|
rm -rf $(RELEASE_DIR)
|
||||||
|
|
||||||
|
ifndef OVERRIDE_TARBALL
|
||||||
.PHONY: tarball
|
.PHONY: tarball
|
||||||
tarball: clean $(TARBALL)
|
tarball: clean $(TARBALL)
|
||||||
|
endif
|
||||||
|
|
||||||
.PHONY: dist
|
.PHONY: dist
|
||||||
dist: clean $(SPECFILE)
|
dist: clean $(SPECFILE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user