###############################################################################
#Copyright (C) 2025 CIX Technology, Inc.
#All Rights Reserved.
#
#The code contained herein is licensed under the GNU General Public
#License. You may obtain a copy of the GNU General Public License
#Version 2 or later at the following locations:
#
#http://www.opensource.org/licenses/gpl-license.html
#http://www.gnu.org/copyleft/gpl.html
###############################################################################
#
#    @file   Makefile
#
#    @brief  configuration file to compile the libcme test applications.
#
###############################################################################
#Revision History:
#Author                  Date      Description of Changes
#------------------  ------------  ----------------------
# Xu Xu                 21/04/2026   Initial version
#
###############################################################################
#Portability: Indicate if this module is portable to other compilers
#             or platforms.
#             If not, indicate specific reasons why is it not portable.
#
###############################################################################

SUBDIRS=cases
SUBDIRS+=common
SUBDIRS+=tests
SCRIPTS=$(wildcard *.py)
SCRIPTS+=$(wildcard *.sh)
SCRIPTS+=$(wildcard *.ini)

all:
	@set -e;

install:
	@set -e;
	mkdir -p ../../bin/libcme_tests
	@for i in $(SUBDIRS); do \
		cp -r $$i ../../bin/libcme_tests ;\
		echo "***********************************************" ; \
		echo "** INSTALL : $$i " ;\
		echo "***********************************************" ; \
	done
	@for i in $(SCRIPTS); do \
		ln -f $$i ../../bin/libcme_tests ;\
		echo "***********************************************" ; \
		echo "** INSTALL : $$i " ;\
		echo "***********************************************" ; \
	done
	@echo

clean:
	@set -e;
	-rm -rf ../../bin/libcme_tests
