SHELL := /bin/bash | |
OUTPUT = mcc_recog_train_data.h mcc_recog_test_data.h mcc_recog_train_data.c mcc_recog_test_data.c | |
all: $(HEADER) $(SOURCE) | |
HEADER_OUTPUT_PATH = ../../../protocol/interface/general | |
SOURCE_OUTPUT_PATH = ../../../protocol/as_multimode/mrs/search/src | |
patch: $(OUTPUT) $(HEADER_OUTPUT_PATH) $(SOURCE_OUTPUT_PATH) | |
cp -f $(filter %.h, $(OUTPUT)) $(HEADER_OUTPUT_PATH) | |
cp -f $(filter %.c, $(OUTPUT)) $(SOURCE_OUTPUT_PATH) | |
clean: | |
rm -f $(OUTPUT) | |
$(HEADER_OUTPUT_PATH): | |
mkdir -p $(HEADER_OUTPUT_PATH) | |
$(SOURCE_OUTPUT_PATH): | |
mkdir -p $(SOURCE_OUTPUT_PATH) | |
$(OUTPUT): | |
virtualenv env01 | |
sed -i "1s,.*,#\!/usr/bin/env python," env01/bin/pip | |
source env01/bin/activate; pip install numpy-1.16.6.zip; python gen_mcc_recog_data_c.py 0 0 codegen 0 $@> aither.log; deactivate |