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


1.18
date	2023.01.24.22.37.41;	author tun39360;	state Exp;
branches;
next	1.17;

1.17
date	2023.01.23.17.27.21;	author tun39360;	state Exp;
branches;
next	1.16;

1.16
date	2023.01.20.18.27.12;	author tun39360;	state Exp;
branches;
next	1.15;

1.15
date	2023.01.20.18.12.18;	author tun39360;	state Exp;
branches;
next	1.14;

1.14
date	2023.01.20.18.00.19;	author tun39360;	state Exp;
branches;
next	1.13;

1.13
date	2023.01.20.17.56.11;	author tun39360;	state Exp;
branches;
next	1.12;

1.12
date	2023.01.20.17.41.18;	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.18
log
@*** empty log message ***
@
text
@# file: $(NEDC_NFC)/src/util/shell/Makefile
#
# revision history:
#
# 20221216 (ML): initial version
#
# This Makefile builds all the classes in this directory and puts them in
# $NEDC_NFC/lib and adjusts the permissions
#

# 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_DOWNSAMPLE = ./nedc_edf_downsample/nedc_edf_downsample.py
EEG_DOWNSAMPLE_FILE := nedc_edf_downsample.py

EEG_IMAGE = ./nedc_eeg_image/nedc_eeg_image.py
EEG_IMAGE_FILE := nedc_eeg_image.py

EEG_DECODE = ./nedc_resnet_decode/nedc_resnet_decode.py
EEG_DECODE_FILE := nedc_resnet_decode.py

EEG_TRAIN = ./nedc_resnet_train/nedc_resnet_train.py
EEG_TRAIN_FILE := nedc_resnet_train.py

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

	rm -f $(NEDC_NFC)/lib/$(EEG_IMAGE_FILE)
	cp -f $(EEG_IMAGE) $(NEDC_NFC)/lib/$(EEG_IMAGE_FILE)
	cd $(NEDC_NFC)/lib; chmod u+rwx,g+rwx,o+rx $(EEG_IMAGE_FILE)

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

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

#
# end of file
@


1.17
log
@*** empty log message ***
@
text
@a23 1
#EEG_DOWNSAMPLE_BFILE := $(basename $(EEG_DOWNSAMPLE))
a26 1
#EEG_IMAGE_BFILE := $(basename $(EEG_IMAGE))
a29 1
#EEG_DECODE_BFILE := $(basename $(EEG_DECODE))
a32 1
#EEG_TRAIN_BFILE := $(basename $(EEG_TRAIN))
@


1.16
log
@*** empty log message ***
@
text
@d24 1
a24 1
EEG_DOWNSAMPLE_BFILE := $(basename $(EEG_DOWNSAMPLE_FILE))
d28 1
a28 1
EEG_IMAGE_BFILE := $(basename $(EEG_IMAGE_FILE))
d32 1
a32 1
EEG_DECODE_BFILE := $(basename $(EEG_DECODE_FILE))
d36 1
a36 1
EEG_TRAIN_BFILE := $(basename $(EEG_TRAIN_FILE))
d41 15
a55 15
	rm -f $(NEDC_NFC)/lib/$(EEG_DOWNSAMPLE_BFILE)
	cp -f $(EEG_DOWNSAMPLE) $(NEDC_NFC)/lib/$(EEG_DOWNSAMPLE_BFILE)
	cd $(NEDC_NFC)/lib; chmod u+rwx,g+rwx,o+rx $(EEG_DOWNSAMPLE_BFILE)

	rm -f $(NEDC_NFC)/lib/$(EEG_IMAGE_BFILE)
	cp -f $(EEG_IMAGE) $(NEDC_NFC)/lib/$(EEG_IMAGE_BFILE)
	cd $(NEDC_NFC)/lib; chmod u+rwx,g+rwx,o+rx $(EEG_IMAGE_BFILE)

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

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


1.15
log
@*** empty log message ***
@
text
@d23 2
a24 1
EEG_DOWNSAMPLE_BFILE := $(basename $(EEG_DOWNSAMPLE))
d27 2
a28 1
EEG_IMAGE_BFILE := $(basename $(EEG_IMAGE))
d31 2
a32 1
EEG_DECODE_BFILE := $(basename $(EEG_DECODE))
d35 2
a36 1
EEG_TRAIN_BFILE := $(basename $(EEG_TRAIN))
@


1.14
log
@d
@
text
@d18 1
a18 4
NEDC_NFC=$(realpath $(mkfile_dir)/../../../..)
#export NEDC_NFC;

# $(info [${NEDC_NFC}])
d22 1
a22 1
EEG_DOWNSAMPLE = nedc_edf_downsample.py
d25 9
d40 12
@


1.13
log
@*** empty log message ***
@
text
@d26 1
a26 1
EEG_DOWNSAMPLE_BFILE := $(basename $(EEG_RESNET))
@


1.12
log
@*** empty log message ***
@
text
@d7 2
a8 2
# This Makefile builds all the bash script in this directory and place it
# in ./bin of the root directory
d25 1
a25 1
EEG_DOWNSAMPLE = nedc_edf_downsample.sh
@


1.11
log
@*** empty log message ***
@
text
@d18 2
a19 2
NEDC_NFC=$(realpath $(mkfile_dir)/../..)
export NEDC_NFC;
d25 2
a26 14
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))
d31 3
a33 19
	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)
@


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)
@
