-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
45 lines (35 loc) · 963 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
34
35
36
37
38
39
40
41
42
43
44
45
clean: ## Clean
rm -rf dist
rm -rf build
rm -rf *.egg-info
rm -rf app
rm -rf labml_dashboard/app
compile: ## Compile JS
rm -rf app
mkdir app
mkdir app/ui
cp ui/index.html app/ui/index.html
cp -r ui/images app/ui/
npm run build
watch: compile ## Watch and Compile JS
npm run build
npm run watch
build: clean compile ## Build PIPy Package
cp package.json app/
cp package-lock.json app/
mv app/ labml_dashboard/
python setup.py sdist bdist_wheel
check-content: build ## List contents of PIPy Package
tar -tvf dist/*.tar.gz
check: build ## Check PIPy Package
twine check dist/*
upload: build ## Upload PIPy Package
twine upload dist/*
install: compile ## Install from repo
pip install -e .
uninstall: ## Uninstall
pip uninstall labml_dashboard labml
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
.PHONY: clean compile build check upload help
.DEFAULT_GOAL := help