Commit b5d78fa7 authored by Eric Gregory's avatar Eric Gregory

Make dist target

parent 9c637042
......@@ -7,4 +7,6 @@ build/
/gearyd
/geary-mailer
/geary-console
*.gz
*.bz2
......@@ -81,3 +81,13 @@ if (DESKTOP_UPDATE)
)
endif ()
# Dist
# This generates the dist tarballs
set(ARCHIVE_NAME ${CMAKE_PROJECT_NAME}-${VERSION})
add_custom_target(dist
COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD
| bzip2 > ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.bz2
COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD
| gzip > ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.gz
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
......@@ -27,3 +27,9 @@ distclean: clean
@-rm -rf $(BUILD_DIR)
@-rm -f Makefile
.PHONY: dist
dist:
@$(MAKE) -C $(BUILD_DIR) dist
@cp build/*.gz .
@cp build/*.bz2 .
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment