crashtest-r0ket/tools/smartflash/Makefile

36 lines
714 B
Makefile
Raw Normal View History

2012-01-26 21:45:17 +00:00
default: build setup
2012-01-26 19:07:21 +00:00
2012-01-26 21:45:17 +00:00
all: build setup run
2012-01-26 19:07:21 +00:00
2012-01-26 21:45:17 +00:00
redo: rebuild setup run
build: cleanbuild rebuild
cleanbuild:
cd ../../firmware && make clean
rebuild:
cd ../../firmware && make && make l0dables
2012-01-26 19:07:21 +00:00
setup:
2011-12-25 17:52:19 +00:00
cp ../../firmware/firmware.bin .
mkdir -p files
2011-12-29 03:10:56 +00:00
cp ../../firmware/l0dable/*c0d files
2011-12-25 17:52:19 +00:00
cp ../../firmware/l0dable/*nik files
cp ../../firmware/l0dable/*int files
cp ../../firmware/l0dable/files/* files
2011-12-25 18:31:18 +00:00
cp ../font/binary/*f0n files
cp ../image/lcd/*lcd files
cp ../image/lcd/i42.lcd files/nick.lcd
2011-12-25 17:52:19 +00:00
cd ../crypto && make clean && make generate-keys
cp ../crypto/generate-keys .
@echo
2012-01-26 21:45:17 +00:00
@echo "Now run ./smartflash (as root)"
2011-12-25 17:52:19 +00:00
2012-01-26 19:07:21 +00:00
run:
2012-01-26 21:45:17 +00:00
sudo ./smartflash
2012-01-26 19:07:21 +00:00
2011-12-25 17:52:19 +00:00
clean:
rm -f firmware.bin generate-keys
2011-12-29 03:10:56 +00:00
rm -rf files