forked from JRCSTU/CO2MPAS-TA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (23 loc) · 885 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
33
## monorepo utilities for the developers
#
PNAME := co2mpas
SUBPROJECTS := pCO2SIM pCO2DICE pCO2GUI
include Makefile.defs
BUILDALL := $(addsuffix -all,$(BUILDCMDS))
default2:
@echo Specify one of: $(BUILDALL)
default: default2
wheel-all : $(SUBPROJECTS) $(MAKECMDGOALS:-all=)
install-all : _installwarn $(SUBPROJECTS) $(MAKECMDGOALS:-all=)
uninstall-all : $(SUBPROJECTS) $(MAKECMDGOALS:-all=)
clean-build-all : $(SUBPROJECTS) $(MAKECMDGOALS:-all=)
clean-doc-all : $(SUBPROJECTS) $(MAKECMDGOALS:-all=)
clean-all : $(SUBPROJECTS) $(MAKECMDGOALS:-all=)
## Install all projects in "develop" mode.
develop-all:
pip install $(addprefix -e ./,$(SUBPROJECTS)) -e .
twine-all: #wheel-all
twine upload -su $(USER) $(addsuffix /dist/*.whl,$(SUBPROJECTS)) dist/*.whl
$(SUBPROJECTS):
$(MAKE) -C $@ $(MAKECMDGOALS:-all=)
.PHONY: default $(BUILDCMDS) $(BUILDALL) $(SUBPROJECTS)