Skip to content

Commit

Permalink
Add a Makefile for dist
Browse files Browse the repository at this point in the history
  • Loading branch information
apjanke committed May 3, 2019
1 parent 3341d02 commit 4afa4d9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This Makefile is just for building the release distribution.
# It's not needed for just building or running the program.

PROGRAM=jl-mat2str2
VERSION=$(shell cat VERSION)
FILES=Mcode LICENSE README.md

.PHONY: dist
dist:
mkdir -p dist/${PROGRAM}-${VERSION}
cp -r $(FILES) dist/${PROGRAM}-${VERSION}
rm -f dist/${PROGRAM}-${VERSION}/*.DS_Store
cd dist; tar czf ${PROGRAM}-${VERSION}.tgz --exclude='*.DS_Store' ${PROGRAM}-${VERSION}
cd dist; zip -rq ${PROGRAM}-${VERSION}.zip ${PROGRAM}-${VERSION} -x '*.DS_Store'

.PHONY: clean
clean:
rm -rf dist/*
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.0

0 comments on commit 4afa4d9

Please sign in to comment.