forked from DmitryBaranovskiy/g.raphael
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated distribution builds with make.
- Loading branch information
Christopher Joslyn
committed
Nov 17, 2010
1 parent
c3cb50e
commit ac429ee
Showing
13 changed files
with
31 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
SRC_DIR = src | ||
BUILD_DIR = build | ||
|
||
DIR_PREFIX = . | ||
DIST_DIR = ${DIR_PREFIX}/dist | ||
|
||
SOURCES := $(patsubst ${SRC_DIR}/%.js, %, $(wildcard ${SRC_DIR}/*.js)) | ||
|
||
MINJAR = java -jar ${BUILD_DIR}/yuicompressor-2.4.2.jar | ||
|
||
all: script min | ||
@@echo "Script build complete." | ||
|
||
script: | ||
@@echo "Copying scripts..." | ||
@@mkdir -p ${DIST_DIR} | ||
@@for f in ${SOURCES} ; do \ | ||
cp ${SRC_DIR}/$$f.js ${DIST_DIR} ; \ | ||
done | ||
|
||
min: script | ||
@@echo "Building minified scripts..." | ||
@@for f in ${SOURCES} ; do \ | ||
${MINJAR} ${SRC_DIR}/$$f.js -o ${DIST_DIR}/$$f.min.js ; \ | ||
done | ||
|
||
clean: | ||
@@echo "Removing Distribution directory:" ${DIST_DIR} | ||
@@rm -rf ${DIST_DIR} |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.