This repository was archived by the owner on Jun 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (43 loc) · 2.15 KB
/
Makefile
File metadata and controls
48 lines (43 loc) · 2.15 KB
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
46
47
48
python: $(eval SHELL:=/bin/bash) ## Make example project (python)
{\
name="pyproject-cookiecutter-example";\
description="An example instance of [python-project-templates/pyproject-cookiecutter](https://github.com/python-project-templates/pyproject-cookiecutter), for testing";\
url="https://github.com/python-project-templates/pyproject-cookiecutter";\
author="Tim Paine";\
github_account="python-project-templates";\
email="[email protected]";\
pattern="1";\
configuration="$$name\n$$description\n$$url\n$$author\n$$github_account\n$$email\n$$pattern\n";\
printf "$$configuration" | cookiecutter . -o .. -f;\
}
cpp: $(eval SHELL:=/bin/bash) ## Make example project (c++)
{\
name="pyproject-cookiecutter-example";\
description="An example instance of [python-project-templates/pyproject-cookiecutter](https://github.com/python-project-templates/pyproject-cookiecutter), for testing";\
url="https://github.com/python-project-templates/pyproject-cookiecutter";\
author="Tim Paine";\
github_account="python-project-templates";\
email="[email protected]";\
pattern="2";\
configuration="$$name\n$$description\n$$url\n$$author\n$$github_account\n$$email\n$$pattern\n";\
printf "$$configuration" | cookiecutter . -o .. -f;\
}
jupyter: $(eval SHELL:=/bin/bash) ## Make example project (python + js for jupyter)
{\
name="pyproject-cookiecutter-example";\
description="An example instance of [python-project-templates/pyproject-cookiecutter](https://github.com/python-project-templates/pyproject-cookiecutter), for testing";\
url="https://github.com/python-project-templates/pyproject-cookiecutter";\
author="Tim Paine";\
github_account="python-project-templates";\
email="[email protected]";\
pattern="5";\
configuration="$$name\n$$description\n$$url\n$$author\n$$github_account\n$$email\n$$pattern\n";\
printf "$$configuration" | cookiecutter . -o .. -f;\
}
# Thanks to Francoise at marmelab.com for this
.DEFAULT_GOAL := help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
print-%:
@echo '$*=$($*)'
.PHONY: help test python cpp jupyter