Skip to content

Commit

Permalink
Fixed when no EXTRAS or OPTIONAL_MODULES
Browse files Browse the repository at this point in the history
  • Loading branch information
jollytoad committed May 14, 2009
1 parent bc94273 commit de1819d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,22 @@ include ${BUILD_DIR}/minify.mk

concat: ${CONCAT}

ifdef ${OPTIONAL_MODULES}
opts: ${DIST_DIR} ${JS_OPT}
@@echo "Copying optional modules"
@@for f in ${OPTIONAL_MODULES} ; do \
cat ${SRC_DIR}/$$f | ${SUB} > ${DIST_DIR}/$$f ; done
else
opts:
endif

ifdef ${EXTRAS}
extras: ${DIST_DIR} ${EXTRAS}
@@echo "Copying extra files"
@@cp -a ${EXTRAS} ${DIST_DIR}
else
extras:
endif

${DIST_DIR}:
@@echo "Creating distribution directory:" ${DIST_DIR}
Expand Down

0 comments on commit de1819d

Please sign in to comment.