Skip to content

Commit c613f54

Browse files
committed
making more generic to copy to other projects.
1 parent 844ef64 commit c613f54

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

makefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Variables
2+
REPONAME = PyJSONSchemaForm
3+
24
PYTHON = python3
35
PIP = $(PYTHON) -m pip
46
PYTEST = $(PYTHON) -m pytest
@@ -42,9 +44,9 @@ cleanup: isort ruff autoflake ## Run isort, ruff, autoflake
4244
create-docs: ## Build and deploy the project's documentation
4345
python3 scripts/changelog.py
4446
mkdocs build
45-
cp /workspaces/devsetgo_lib/README.md /workspaces/devsetgo_lib/docs/index.md
46-
cp /workspaces/devsetgo_lib/CONTRIBUTING.md /workspaces/devsetgo_lib/docs/contribute.md
47-
cp /workspaces/devsetgo_lib/CHANGELOG.md /workspaces/devsetgo_lib/docs/release-notes.md
47+
cp /workspaces/$(REPONAME)/README.md /workspaces/$(REPONAME)/docs/index.md
48+
cp /workspaces/$(REPONAME)/CONTRIBUTING.md /workspaces/$(REPONAME)/docs/contribute.md
49+
cp /workspaces/$(REPONAME)/CHANGELOG.md /workspaces/$(REPONAME)/docs/release-notes.md
4850
mkdocs gh-deploy
4951

5052
create-docs-local: ## Build and deploy the project's documentation
@@ -82,8 +84,8 @@ speedtest: ## Run a speed test
8284
test: ## Run the project's tests
8385
pre-commit run -a
8486
pytest
85-
sed -i 's|<source>/workspaces/devsetgo_lib</source>|<source>/github/workspace</source>|' /workspaces/devsetgo_lib/coverage.xml
86-
genbadge coverage -i /workspaces/dsg/coverage.xml
87+
sed -i 's|<source>/workspaces/$(REPONAME)</source>|<source>/github/workspace</source>|' /workspaces/$(REPONAME)/coverage.xml
88+
genbadge coverage -i /workspaces/$(REPONAME)/coverage.xml
8789
flake8 --tee . > htmlcov/_flake8Report.txt
8890
#flake8 --max-doc-length=132 --tee . > htmlcov/_flake8Report.txt
8991

0 commit comments

Comments
 (0)