# Copyright 3000 Test Tester
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This file was generated by BlueCat Automation Toolkit (BATK).
# Portions which reproduce template contents from BATK are Copyright 2023 BlueCat Networks Inc.
# Other contents are owned by their authors.
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
parentdir := $(shell dirname $(mkfile_path))

ui-req:
	cd $(parentdir)/tester_workflow_ui && npm install

ui-build:
	cd $(parentdir)/tester_workflow_ui \
		&& export NODE_ENV=production \
		&& npm run build

clean:
	rm -rf \
		$(parentdir)/../../workspace/workflows/tester_workflow/fonts \
		$(parentdir)/../../workspace/workflows/tester_workflow/html \
		$(parentdir)/../../workspace/workflows/tester_workflow/img \
		$(parentdir)/../../workspace/workflows/tester_workflow/js

purge: clean
	rm -rf $(parentdir)/tester_workflow_ui/node_modules
