Skip to content

Instantly share code, notes, and snippets.

@Munter
Created August 22, 2011 15:40
Show Gist options
  • Save Munter/1162703 to your computer and use it in GitHub Desktop.
Save Munter/1162703 to your computer and use it in GitHub Desktop.
Example Makefile for assetgraph-builder
DEV_JS_CSS_SOURCES = $(shell find ./http-pub -name "*.js" -o -name "*.css")
PAGES = http-pub/index.html
LABELS = \
--label Ext:extJs4Dir=http-pub/3rdparty/ext/src
.PHONY: all clean
all: http-pub-production
development: ${PAGES}
http-pub/%.html: http-pub/%.html.template ${DEV_JS_CSS_SOURCES}
buildDevelopment \
--cssimports \
--root=http-pub \
${LABELS}
$<
http-pub-production: development
-rm -fr http-pub-production
buildProduction \
--root http-pub \
--outroot http-pub-production \
${PAGES}
clean:
-rm -fr http-pub-production http-pub-cdn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment