Files
IfcOpenShell/src/ifctester/Makefile
T

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

59 lines
1.7 KiB
Makefile
Raw Normal View History

2024-04-08 10:31:37 +10:00
# IfcTester - IDS based model auditing
# Copyright (C) 2021 Dion Moult <dion@thinkmoult.com>
#
# This file is part of IfcTester.
#
# IfcTester is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# IfcTester is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with IfcTester. If not, see <http://www.gnu.org/licenses/>.
PACKAGE_NAME:=ifctester
include ../common.mk
2023-05-09 20:49:08 +10:00
2025-08-28 12:13:14 +05:30
NODE_ENV ?= production
2025-08-29 17:45:30 +05:30
WEBAPP_DIR := webapp
2025-08-28 12:13:14 +05:30
WEBAPP_BUILD_DIR := $(WEBAPP_DIR)/dist
.PHONY: webapp-dev
webapp-dev:
cd $(WEBAPP_DIR) && npm run dev
.PHONY: webapp-build
webapp-build:
cd $(WEBAPP_DIR) && npm install
cd $(WEBAPP_DIR) && npm run build
.PHONY: webapp-serve
webapp-serve: webapp-build
cd $(WEBAPP_DIR) && $(PYTHON) serve.py
.PHONY: webapp-clean
webapp-clean:
rm -rf $(WEBAPP_BUILD_DIR)
rm -rf $(WEBAPP_DIR)/node_modules
.PHONY: dist
dist: webapp-prepare
$(MAKE) -f ../common.mk dist PACKAGE_NAME=$(PACKAGE_NAME)
.PHONY: webapp-prepare
webapp-prepare: webapp-build
rm -rf $(PACKAGE_NAME)/webapp/www/*
mkdir -p $(PACKAGE_NAME)/webapp/www
cp -r $(WEBAPP_BUILD_DIR)/* $(PACKAGE_NAME)/webapp/www/
cp $(WEBAPP_DIR)/__init__.py $(PACKAGE_NAME)/webapp/__init__.py
2025-08-28 12:13:14 +05:30
cp $(WEBAPP_DIR)/serve.py $(PACKAGE_NAME)/webapp/serve.py
2022-08-11 16:37:46 +10:00
.PHONY: test
test:
pytest -p no:pytest-blender test