-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathMakefile
32 lines (23 loc) · 826 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
include mk/common.mk
PACKAGES := cephes openblas lapack conmax nlopt q
BUILDS := src debug
OTHERS := coverage
$(foreach dir,$(PACKAGES) $(BUILDS) $(OTHERS), \
$(eval .PHONY: $(dir)) \
$(eval $(dir): ; make -C $(dir)) \
$(foreach target,build install uninstall test bench clean, \
$(eval .PHONY: $(dir)_$(target)) \
$(eval $(dir)_$(target): ; make -C $(dir) $(target))))
all: build
build: $(addsuffix _install,$(PACKAGES)) src_build
@echo build complete.
install: build src_install
@echo installed.
uninstall: src_uninstall
@echo removed.
test: build $(addsuffix _test,$(BUILDS))
@echo all tests passed.
clean: $(addsuffix _clean,$(PACKAGES) $(BUILDS) $(OTHERS))
rm -rf -- include/ lib/
$(MAKE) -f mk/test.mk clean
include mk/maint.mk # targets for use by maintainer are in this file