root / Makefile @ master
History | View | Annotate | Download (1.7 KB)
| 1 | GARGOYLE_VERSION:=1.5.X (Built $(shell echo "`date -u +%Y%m%d-%H%M` git@`git log -1 --pretty=format:%h`")) |
|---|---|
| 2 | V=99 |
| 3 | FULL_BUILD=false |
| 4 | CUSTOM_TEMPLATE=ar71xx |
| 5 | JS_COMPRESS=true |
| 6 | |
| 7 | |
| 8 | ALL: all |
| 9 | all: |
| 10 | ( \ |
| 11 | targets=`ls targets | sed 's/custom//g' ` ;\ |
| 12 | for t in $$targets ; do \ |
| 13 | if [ ! -d "$$t-src" ] || [ "$(FULL_BUILD)" = "1" -o "$(FULL_BUILD)" = "true" -o "$(FULL_BUILD)" = "TRUE" ] ; then \ |
| 14 | bash full-build.sh "$$t" "$(GARGOYLE_VERSION)" "$(V)" "" "$(JS_COMPRESS)" ;\ |
| 15 | else \ |
| 16 | bash rebuild.sh "$$t" "$(GARGOYLE_VERSION)" "$(V)" "$(JS_COMPRESS)" ;\ |
| 17 | fi ;\ |
| 18 | done ;\ |
| 19 | ) |
| 20 | |
| 21 | brcm: brcm-2.4 |
| 22 | brcm-2.4: |
| 23 | ( \ |
| 24 | if [ ! -d "brcm47xx-src" ] || [ "$(FULL_BUILD)" = "1" -o "$(FULL_BUILD)" = "true" -o "$(FULL_BUILD)" = "TRUE" ] ; then \ |
| 25 | bash full-build.sh "brcm-2.4" "$(GARGOYLE_VERSION)" "$(V)" "" "$(JS_COMPRESS)" ;\ |
| 26 | else \ |
| 27 | bash rebuild.sh "brcm-2.4" "$(GARGOYLE_VERSION)" "$(V)" "$(JS_COMPRESS)" ;\ |
| 28 | fi ;\ |
| 29 | ) |
| 30 | |
| 31 | |
| 32 | %: targets/% |
| 33 | ( \ |
| 34 | if [ ! -d "$@-src" ] || [ "$(FULL_BUILD)" = "1" -o "$(FULL_BUILD)" = "true" -o "$(FULL_BUILD)" = "TRUE" ] ; then \ |
| 35 | bash full-build.sh "$@" "$(GARGOYLE_VERSION)" "$(V)" "$(CUSTOM_TEMPLATE)" "$(JS_COMPRESS)" ;\ |
| 36 | else \ |
| 37 | bash rebuild.sh "$@" "$(GARGOYLE_VERSION)" "$(V)" "$(JS_COMPRESS)" ;\ |
| 38 | fi ;\ |
| 39 | ) |
| 40 | |
| 41 | prepare: |
| 42 | if [ -d "../downloaded" ] ; then cp -r ../downloaded . ; fi |
| 43 | if [ -d "../backfire-src" ] ; then cp -r ../backfire-src . ; fi |
| 44 | if [ -e "./backfire-src/dl" ] ; then rm -rf "./backfire-src/dl" ; fi |
| 45 | |
| 46 | cleanup: |
| 47 | find . -name ".svn" | xargs rm -rf |
| 48 | find . -name "*~" | xargs rm -rf |
| 49 | find . -name ".*sw*" | xargs rm -rf |
| 50 | |
| 51 | # If you run this, you will need to start all over with compiling. |
| 52 | distclean: cleanup |
| 53 | rm -rf ./*-src |
| 54 | rm -rf ./built |
| 55 | rm -rf ./images |
| 56 | rm -rf ./downloaded |