Debian Codegraph @

src/ifcbimtester/Makefile

raw
1 # IfcBIMTester - BIM Gherkin testing.
2 # Copyright (C) 2020-2024 Dion Moult <[email protected]>
3 #
4 # This file is part of IfcBIMTester.
5 #
6 # IfcBIMTester is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU Lesser General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # IfcBIMTester is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU Lesser General Public License for more details.
15 #
16 # You should have received a copy of the GNU Lesser General Public License
17 # along with IfcBIMTester. If not, see <http://www.gnu.org/licenses/>.
18
19 PACKAGE_NAME:=bimtester
20 include ../common.mk
21
22 .PHONY: license
23 license:
24 copyright-header --license LGPL3 --copyright-holder "Dion Moult <[email protected]>" --copyright-year "2022" --copyright-software "BIMTester" --copyright-software-description "OpenBIM Auditing Tool" -a ./ -o ./
25
26 .PHONY: qa
27 qa:
28 black .
29
30 .PHONY: dist
31 dist:
32 rm -rf build
33 mkdir -p build
34 mkdir -p dist
35 cp -r $(PACKAGE_NAME) build/
36 cp pyproject.toml build/
37 $(SED) 's/version = "0.0.0"/version = "$(VERSION)"/' build/pyproject.toml
38 $(SED) 's/version = "0.0.0"/version = "$(VERSION)"/' build/$(PACKAGE_NAME)/__init__.py
39 cd build && $(PYTHON) -m venv env && . env/$(VENV_ACTIVATE) && $(PIP) install build
40 cd build && . env/$(VENV_ACTIVATE) && $(PIP) install pybabel
41 cd build && . env/$(VENV_ACTIVATE) && $(PIP) install babel
42 cd build && . env/$(VENV_ACTIVATE) && ./env/$(VENV_BIN)/pybabel compile -d ./bimtester/locale/
43 cd build && . env/$(VENV_ACTIVATE) && $(PYTHON) -m build
44 cp build/dist/*.whl dist/
45 rm -rf build