Skip to content

Instantly share code, notes, and snippets.

@LubosRemplik
Created October 17, 2013 12:04
Show Gist options
  • Save LubosRemplik/7023701 to your computer and use it in GitHub Desktop.
Save LubosRemplik/7023701 to your computer and use it in GitHub Desktop.
Use of Makefile and make
LESS_SOURCE = ./app/webroot/frontpage/css/less/style.less
CSS_TARGET = ./app/webroot/frontpage/css/style.min.css
BOOTSTRAP_SOURCE = ./app/webroot/frontpage/js/bootstrap/
JS_TARGET = ./app/webroot/frontpage/js/app.min.js
build:
@recess --compress --compile ${LESS_SOURCE} > ${CSS_TARGET}
@cat \
./app/webroot/app/js/jquery/jquery-1.10.2.min.js \
./app/webroot/app/js/jquery/jquery.cookie.js \
${BOOTSTRAP_SOURCE}respond.min.js \
${BOOTSTRAP_SOURCE}transition.js \
${BOOTSTRAP_SOURCE}tooltip.js \
${BOOTSTRAP_SOURCE}affix.js \
${BOOTSTRAP_SOURCE}alert.js \
${BOOTSTRAP_SOURCE}button.js \
${BOOTSTRAP_SOURCE}carousel.js \
${BOOTSTRAP_SOURCE}collapse.js \
${BOOTSTRAP_SOURCE}dropdown.js \
${BOOTSTRAP_SOURCE}modal.js \
${BOOTSTRAP_SOURCE}popover.js \
${BOOTSTRAP_SOURCE}scrollspy.js \
${BOOTSTRAP_SOURCE}tab.js \
./app/webroot/gallery/js/gallery.js \
./app/webroot/frontpage/js/app.js \
> ${JS_TARGET}.tmp
@uglifyjs -nc \
${JS_TARGET}.tmp \
> ${JS_TARGET}
@rm ${JS_TARGET}.tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment