head	1.12;
access;
symbols;
locks; strict;
comment	@# @;


1.12
date	2023.01.23.18.05.47;	author tun39360;	state Exp;
branches;
next	1.11;

1.11
date	2023.01.19.00.14.24;	author tun39360;	state Exp;
branches;
next	1.10;

1.10
date	2023.01.19.00.13.17;	author tun39360;	state Exp;
branches;
next	1.9;

1.9
date	2023.01.19.00.11.38;	author tun39360;	state Exp;
branches;
next	1.8;

1.8
date	2022.12.16.15.47.16;	author picone;	state Exp;
branches;
next	1.7;

1.7
date	2022.12.16.04.34.05;	author tun39360;	state Exp;
branches;
next	1.6;

1.6
date	2022.11.11.19.57.50;	author tun39360;	state Exp;
branches;
next	1.5;

1.5
date	2022.11.07.03.59.06;	author tun39360;	state Exp;
branches;
next	1.4;

1.4
date	2022.11.07.03.57.49;	author tun39360;	state Exp;
branches;
next	1.3;

1.3
date	2022.06.14.22.54.06;	author tun67934;	state Exp;
branches;
next	1.2;

1.2
date	2022.06.14.21.59.33;	author tun67934;	state Exp;
branches;
next	1.1;

1.1
date	2022.06.13.20.15.42;	author tun67934;	state Exp;
branches;
next	;


desc
@@


1.12
log
@*** empty log message ***
@
text
@# file: $(NEDC_NFC)/src/util/shell/Makefile
#
# revision history:
#
# 20221216 (ML): initial version
#
# This Makefile builds all the bash script in this directory and place it
# in ./bin of the root directory
#

# get the current directory of Makefile
#
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
mkfile_dir := $(dir $(mkfile_path))

# set the variable to the root of folder
#
NEDC_NFC=$(realpath $(mkfile_dir)/../..)

# define source and object files
#
EEG_RESNET = nedc_eeg_resnet.sh
EEG_RESNET_BFILE := $(basename $(EEG_RESNET))

EEG_ENV = nedc_eeg_resnet_env.sh
EEG_ENV_BFILE := $(basename $(EEG_ENV))

EEG_TRAIN = nedc_eeg_resnet_train.sh
EEG_TRAIN_BFILE := $(basename $(EEG_TRAIN))

EEG_DECODE = nedc_eeg_resnet_decode.sh
EEG_DECODE_BFILE := $(basename $(EEG_DECODE))

EEG_SCORE = nedc_eeg_score.sh
EEG_SCORE_BFILE := $(basename $(EEG_SCORE))

# define an installation target
#
install:
	rm -f $(NEDC_NFC)/bin/$(EEG_RESNET_BFILE)
	cp -f $(EEG_RESNET) $(NEDC_NFC)/bin/$(EEG_RESNET_BFILE)
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx,o+rx $(EEG_RESNET_BFILE)

	rm -f $(NEDC_NFC)/bin/$(EEG_ENV_BFILE)
	cp -f $(EEG_ENV) $(NEDC_NFC)/bin/$(EEG_ENV_BFILE)
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx,o+rx $(EEG_ENV_BFILE)

	rm -f $(NEDC_NFC)/bin/$(EEG_TRAIN_BFILE)
	cp -f $(EEG_TRAIN) $(NEDC_NFC)/bin/$(EEG_TRAIN_BFILE)
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx,o+rx $(EEG_TRAIN_BFILE)

	rm -f $(NEDC_NFC)/bin/$(EEG_DECODE_BFILE)
	cp -f $(EEG_DECODE) $(NEDC_NFC)/bin/$(EEG_DECODE_BFILE)
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx,o+rx $(EEG_DECODE_BFILE)

	rm -f $(NEDC_NFC)/bin/$(EEG_SCORE_BFILE)
	cp -f $(EEG_SCORE) $(NEDC_NFC)/bin/$(EEG_SCORE_BFILE)
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx,o+rx $(EEG_SCORE_BFILE)

#
# end of file
@


1.11
log
@*** empty log message ***
@
text
@a18 3
export NEDC_NFC;

# $(info [${NEDC_NFC}])
@


1.10
log
@*** empty log message ***
@
text
@d45 1
a45 1
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx,o+rw $(EEG_RESNET_BFILE)
d49 1
a49 1
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx,o+rw $(EEG_ENV_BFILE)
d53 1
a53 1
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx,o+rw $(EEG_TRAIN_BFILE)
d57 1
a57 1
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx,o+rw $(EEG_DECODE_BFILE)
d61 1
a61 1
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx,o+rw $(EEG_SCORE_BFILE)
@


1.9
log
@*** empty log message ***
@
text
@d45 1
a45 1
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx $(EEG_RESNET_BFILE)
d49 1
a49 1
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx $(EEG_ENV_BFILE)
d53 1
a53 1
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx $(EEG_TRAIN_BFILE)
d57 1
a57 1
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx $(EEG_DECODE_BFILE)
d61 1
a61 1
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx $(EEG_SCORE_BFILE)
@


1.8
log
@initial version.
@
text
@d45 1
a45 1
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx,o+rw $(EEG_RESNET_BFILE)
d49 1
a49 1
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx,o+rw $(EEG_ENV_BFILE)
d53 1
a53 1
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx,o+rw $(EEG_TRAIN_BFILE)
d57 1
a57 1
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx,o+rw $(EEG_DECODE_BFILE)
d61 1
a61 1
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx,o+rw $(EEG_SCORE_BFILE)
@


1.7
log
@*** empty log message ***
@
text
@d3 4
@


1.6
log
@*** empty log message ***
@
text
@a35 3
EEG_PICKLE = nedc_eeg_pickle.sh
EEG_PICKLE_BFILE := $(basename $(EEG_PICKLE))

d50 1
a50 1
	
d54 1
a54 1
		
a57 4

	rm -f $(NEDC_NFC)/bin/$(EEG_PICKLE_BFILE)
	cp -f $(EEG_PICKLE) $(NEDC_NFC)/bin/$(EEG_PICKLE_BFILE)
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx,o+rw $(EEG_PICKLE_BFILE)
@


1.5
log
@*** empty log message ***
@
text
@d14 1
a14 1
NEDC_NFC=$(realpath $(mkfile_dir)/../../..)
@


1.4
log
@*** empty log message ***
@
text
@d62 3
a64 3
        rm -f $(NEDC_NFC)/bin/$(EEG_PICKLE_BFILE)
        cp -f $(EEG_PICKLE) $(NEDC_NFC)/bin/$(EEG_PICKLE_BFILE)
        cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx,o+rw $(EEG_PICKLE_BFILE)
@


1.3
log
@remove pickle script
@
text
@d33 2
a34 2
EEG_POSTPROCESS = nedc_eeg_resnet_postprocess.sh
EEG_POSTPROCESS_BFILE := $(basename $(EEG_POSTPROCESS))
d36 2
d58 7
a64 3
	rm -f $(NEDC_NFC)/bin/$(EEG_POSTPROCESS_BFILE)
	cp -f $(EEG_POSTPROCESS) $(NEDC_NFC)/bin/$(EEG_POSTPROCESS_BFILE)
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx,o+rw $(EEG_POSTPROCESS_BFILE)
@


1.2
log
@*** empty log message ***
@
text
@a26 3
EEG_PICKLE = nedc_eeg_pickle.sh
EEG_PICKLE_BFILE := $(basename $(EEG_PICKLE))

a46 4

	rm -f $(NEDC_NFC)/bin/$(EEG_PICKLE_BFILE)
	cp -f $(EEG_PICKLE) $(NEDC_NFC)/bin/$(EEG_PICKLE_BFILE)
	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx,o+rw $(EEG_PICKLE_BFILE)
@


1.1
log
@Initial revision
@
text
@d21 2
a22 2
SRC = nedc_eeg_pickle.sh
BFILE := $(basename $(SRC))
d24 2
a25 1
SOURCES := $(shell find $(mkfile_dir) -name '*.sh')
d27 11
a37 5
SOURCES:
	@@for f in $(shell ls ${SOURCES}); do \
		install: \
			Src = f; \
	done
d42 24
a65 4
# install:
# 	rm -f $(NEDC_NFC)/bin/$(BFILE)
# 	cp -f $(SRC) $(NEDC_NFC)/bin/$(BFILE)
# 	cd $(NEDC_NFC)/bin; chmod u+rwx,g+rwx,o+rw $(BFILE)
@
