Files
IfcOpenShell/src/ifcpatch/Makefile
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.1 KiB
Makefile
Raw Normal View History

2024-04-08 11:19:13 +10:00
# IfcPatch - IFC patching utiliy
# Copyright (C) 2020, 2021, 2023 Dion Moult <dion@thinkmoult.com>
2022-09-19 13:33:40 +10:00
#
2024-04-08 11:19:13 +10:00
# This file is part of IfcPatch.
2022-09-19 13:33:40 +10:00
#
2024-04-08 11:19:13 +10:00
# IfcPatch is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
2022-09-19 13:33:40 +10:00
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
2024-04-08 11:19:13 +10:00
# IfcPatch is distributed in the hope that it will be useful,
2022-09-19 13:33:40 +10:00
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2024-04-08 11:19:13 +10:00
# GNU Lesser General Public License for more details.
2022-09-19 13:33:40 +10:00
#
2024-04-08 11:19:13 +10:00
# You should have received a copy of the GNU Lesser General Public License
# along with IfcPatch. If not, see <http://www.gnu.org/licenses/>.
2022-09-19 13:33:40 +10:00
2024-04-08 10:31:37 +10:00
VERSION:=`date '+%y%m%d'`
SED:=sed -i
ifeq ($(UNAME_S),Darwin)
SED:=sed -i '' -e
endif
2022-09-19 13:33:40 +10:00
.PHONY: test
test:
pytest -p no:pytest-blender test
.PHONY: qa
qa:
black .
2024-04-08 10:24:04 +10:00
.PHONY: dist
dist:
rm -rf dist
$(SED) "s/999999/$(VERSION)/" pyproject.toml
python -m build
$(SED) "s/$(VERSION)/999999/" pyproject.toml