From 37872ed79d9d926039153adb7e652367f24ee5d8 Mon Sep 17 00:00:00 2001 From: Peter Hedenskog Date: Mon, 15 Oct 2012 22:38:29 +0200 Subject: [PATCH] first commit --- Makefile | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..deed5e26a --- /dev/null +++ b/Makefile @@ -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!" \ No newline at end of file