If target_firmware/magpie_fw_dev/build/utility/bin is not created
before compiling bin2hex build will fail.
Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
DIRS = bin2hex
+TARGET_DIR = ./bin
all:
+ @mkdir -p $(TARGET_DIR)
@for i in $(DIRS) ; do $(MAKE) -C $$i || exit $? ; done
clean :
@for i in $(DIRS) ; do $(MAKE) -C $$i clean; done
+ @rm -r $(TARGET_DIR)
TARGET = ../bin/bin2hex # for Linux environment
-
+TARGET_DIR = ../bin
E=echo
all: $(TARGET)
$(TARGET):
+ @mkdir -p $(TARGET_DIR)
gcc -o $(TARGET) bin2hex.c
@$(E) " CC " $@