forked from orlandov/azathoth
-
Notifications
You must be signed in to change notification settings - Fork 72
/
Makefile
19 lines (15 loc) · 1.11 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.PHONY: clean templates compile
PROCESS_TPL = scripts/process_tpl.js
SOURCES = lib/header.js lib/config.js lib/util.js lib/stats.js lib/loop/loop.js lib/loop/multiloop.js lib/monitoring/collectors.js lib/monitoring/statslogger.js lib/monitoring/monitor.js lib/monitoring/monitorgroup.js lib/http.js lib/reporting/*.tpl.js lib/reporting/template.js lib/reporting/report.js lib/reporting/reportmanager.js lib/reporting/external.js lib/loadtesting.js lib/remote/endpoint.js lib/remote/endpointclient.js lib/remote/slave.js lib/remote/slaves.js lib/remote/slavenode.js lib/remote/cluster.js lib/remote/httphandler.js lib/remote/remotetesting.js
all: compile
clean:
rm -rf ./lib-cov
rm -f ./nodeload.js ./lib/reporting/*.tpl.js
rm -f results-*-err.log results-*-stats.log results-*-summary.html
templates:
$(PROCESS_TPL) REPORT_SUMMARY_TEMPLATE lib/reporting/summary.tpl > lib/reporting/summary.tpl.js
$(PROCESS_TPL) DYGRAPH_SOURCE lib/reporting/dygraph.tpl > lib/reporting/dygraph.tpl.js
compile: templates
echo "#!/usr/bin/env node" > ./nodeload.js
cat $(SOURCES) | ./scripts/jsmin.js >> ./nodeload.js
chmod +x ./nodeload.js