first commit

This commit is contained in:
Peter Hedenskog 2012-10-15 22:38:29 +02:00
parent 2a084ece66
commit 37872ed79d
1 changed files with 52 additions and 0 deletions

52
Makefile Normal file
View File

@ -0,0 +1,52 @@
BUILD := build
DEP := dependencies
REPORT := report
CSS := css
IMG := img
JS := js
PROPERTIES := properties
VELOCITY := velocity
clean:
@echo "Clean the package"
@rm -fR $(BUILD)
@echo "done"
package:
@echo "Packaging sitespeed"
@if [ ! -d $(BUILD) ]; then mkdir -p $(BUILD); fi
@if [ ! -d $(BUILD)/$(DEP) ]; then mkdir -p $(BUILD)/$(DEP); fi
@if [ ! -d $(BUILD)/$(REPORT) ]; then mkdir -p $(BUILD)/$(REPORT); fi
@if [ ! -d $(BUILD)/$(REPORT)/$(CSS) ]; then mkdir -p $(BUILD)/$(REPORT)/$(CSS); fi
@if [ ! -d $(BUILD)/$(REPORT)/$(IMG) ]; then mkdir -p $(BUILD)/$(REPORT)/$(IMG); fi
@if [ ! -d $(BUILD)/$(REPORT)/$(JS) ]; then mkdir -p $(BUILD)/$(REPORT)/$(JS); fi
@if [ ! -d $(BUILD)/$(REPORT)/$(PROPERTIES) ]; then mkdir -p $(BUILD)/$(REPORT)/$(PROPERTIES); fi
@if [ ! -d $(BUILD)/$(REPORT)/$(VELOCITY) ]; then mkdir -p $(BUILD)/$(REPORT)/$(VELOCITY); fi
@cp sitespeed.io CHANGELOG $(BUILD)/
@cp $(DEP)/LICENSE.txt $(BUILD)/$(DEP)/
@cp $(DEP)/crawler-0.9-full.jar $(BUILD)/$(DEP)/
@cp $(DEP)/xml-velocity-1.1-full.jar $(BUILD)/$(DEP)/
@cp $(DEP)/rasterize.js $(BUILD)/$(DEP)/
@cp $(DEP)/yslow-3.1.4-sitespeed.js $(BUILD)/$(DEP)/
@cp $(REPORT)/$(CSS)/bootstrap.min.css $(BUILD)/$(REPORT)/$(CSS)/
@cp $(REPORT)/$(IMG)/apple-touch-icon-114-precomposed.png $(BUILD)/$(REPORT)/$(IMG)/
@cp $(REPORT)/$(IMG)/apple-touch-icon-144-precomposed.png $(BUILD)/$(REPORT)/$(IMG)/
@cp $(REPORT)/$(IMG)/apple-touch-icon-72-precomposed.png $(BUILD)/$(REPORT)/$(IMG)/
@cp $(REPORT)/$(IMG)/favicon.ico $(BUILD)/$(REPORT)/$(IMG)/
@cp $(REPORT)/$(IMG)/glyphicons-halflings.png $(BUILD)/$(REPORT)/$(IMG)/
@cp $(REPORT)/$(IMG)/sitespeed-logo.gif $(BUILD)/$(REPORT)/$(IMG)/
@cp $(REPORT)/$(JS)/bootstrap.min.js $(BUILD)/$(REPORT)/$(JS)/
@cp $(REPORT)/$(JS)/jquery-1.8.2.min.js $(BUILD)/$(REPORT)/$(JS)/
@cp $(REPORT)/$(JS)/jquery.tablesorter.min.js $(BUILD)/$(REPORT)/$(JS)/
@cp $(REPORT)/$(PROPERTIES)/page.properties $(BUILD)/$(REPORT)/$(PROPERTIES)/
@cp $(REPORT)/$(PROPERTIES)/pages.properties $(BUILD)/$(REPORT)/$(PROPERTIES)/
@cp $(REPORT)/$(PROPERTIES)/summary.properties $(BUILD)/$(REPORT)/$(PROPERTIES)/
@cp $(REPORT)/$(VELOCITY)/footer.vm $(BUILD)/$(REPORT)/$(VELOCITY)/
@cp $(REPORT)/$(VELOCITY)/macros.vm $(BUILD)/$(REPORT)/$(VELOCITY)/
@cp $(REPORT)/$(VELOCITY)/pages.vm $(BUILD)/$(REPORT)/$(VELOCITY)/
@cp $(REPORT)/$(VELOCITY)/summary.vm $(BUILD)/$(REPORT)/$(VELOCITY)/
@cp $(REPORT)/$(VELOCITY)/header.vm $(BUILD)/$(REPORT)/$(VELOCITY)/
@cp $(REPORT)/$(VELOCITY)/page.vm $(BUILD)/$(REPORT)/$(VELOCITY)/
@cp $(REPORT)/$(VELOCITY)/summary.logic.vm $(BUILD)/$(REPORT)/$(VELOCITY)/
@echo "finished!"