Files
2020-09-14 20:10:42 +05:30

36 lines
879 B
Makefile

clean: ## Clean
rm -rf dist
rm -rf build
rm -rf *.egg-info
build: clean ## Build PIPy Package
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: ## Install from repo
pip install -e .
uninstall: ## Uninstall
pip uninstall labml_nn
docs: ## Render annotated HTML
python ../../pylit/pylit.py --remove_empty_sections -s ../../pylit/pylit_docs.css -t ../../pylit/template_docs.html -d html -w labml_nn
pages: ## Copy to lab-ml site
@cd ../lab-ml.github.io; git pull
cp -r html/* ../lab-ml.github.io/
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
.PHONY: clean build check upload help docs
.DEFAULT_GOAL := help