35a7c71cca26aa95164b6e205e1c7d84e2ad1288
2 BUILD_ARGS
= --enable-debug
8 CONFIGS
=$(wildcard $(BRANCH_DIR
)/ext
/*/config
*.m4
)
11 $(SAY
) "Result: $$(cat $(REPORT))"
13 clean: $(CONFIG_REPORT
)
17 make
$(SILENT_FLAG
) clean; \
20 $(REPORT
): $(TEST_REPORT
)
22 TESTS_PASSED
=$$(awk
'/^Tests passed/{print $$4}' < $(TEST_REPORT
)); \
23 TESTS_FAILED
=$$(awk
'/^Tests failed/{print $$4}' < $(TEST_REPORT
)); \
24 printf
"%d/%d" $$TESTS_PASSED $$TESTS_FAILED >$@
; \
25 if
test -s
"$(LAST_REPORT)"; then \
26 LAST_PASSED
=$$(awk
'/^Tests passed/{print $$4}' < $(LAST_REPORT
)); \
27 LAST_FAILED
=$$(awk
'/^Tests failed/{print $$4}' < $(LAST_REPORT
)); \
28 DIFF_PASSED
=$$(bc
<<<"$$TESTS_PASSED - $$LAST_PASSED"); \
29 DIFF_FAILED
=$$(bc
<<<"$$TESTS_FAILED - $$LAST_FAILED"); \
30 printf
" %+d/%+d" $$DIFF_PASSED $$DIFF_FAILED >>$@
; \
35 $(TEST_REPORT
): $(BUILD_REPORT
)
36 $(SAY
) "Running tests... "
38 make
test TESTS
="$(TEST_ARGS) -s ../$@"
40 $(BUILD_REPORT
): $(CONFIG_REPORT
)
41 $(SAY
) "Making build..."
43 make
-j
$(CPUS
) >..
/$@
2>&1
45 $(CONFIG_REPORT
): $(BRANCH_DIR
)/configure
$(BUILD_DIR
)
46 $(SAY
) "Running 'configure'..."
48 ..
/$(BRANCH_DIR
)/configure
-C
$(BUILD_ARGS
) >..
/$@
2>&1
53 $(BRANCH_DIR
)/configure
: $(BRANCH_DIR
)/buildconf
$(CONFIGS
)
54 $(SAY
) "Building configure..."
56 .
/buildconf
>/dev
/null