Created
August 22, 2011 15:40
-
-
Save Munter/1162703 to your computer and use it in GitHub Desktop.
Example Makefile for assetgraph-builder
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
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