forked from jfhovinne/jFeed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (28 loc) · 789 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
SRC_DIR = src
BUILD_DIR = build
JS_FILES = ${SRC_DIR}/jfeed.js\
${SRC_DIR}/jfeeditem.js\
${SRC_DIR}/jatom.js\
${SRC_DIR}/jrss.js
WE = ${BUILD_DIR}/dist/jquery.jfeed.js
WE_PACK = ${BUILD_DIR}/dist/jquery.jfeed.pack.js
WE_ARCH = ../jquery.jfeed.tar.gz
MERGE = sed -s -e '1 s/^\xEF\xBB\xBF//' ${JS_FILES} > ${WE}
PACKER = perl -I${BUILD_DIR}/packer ${BUILD_DIR}/packer/jsPacker.pl -i ${WE} -o ${WE_PACK} -e62
all: archive
jfeed:
@@echo "Building" ${WE}
@@echo " - Merging files"
@@${MERGE}
@@echo ${WE} "Built"
@@echo
pack: jfeed
@@echo "Building" ${WE_PACK}
@@echo " - Compressing using Packer"
@@${PACKER}
@@echo ${WE_PACK} "Built"
@@echo
archive: pack
@@echo "Building" ${WE_ARCH}
@@echo " - Creating archive"
@@tar -C .. -czf ${WE_ARCH} --exclude '.git' jFeed