29 lines
599 B
Makefile
29 lines
599 B
Makefile
dwim: build setup
|
|
|
|
all: dwim run
|
|
|
|
build:
|
|
cd ../../firmware && make clean && make && make l0dables
|
|
|
|
setup:
|
|
cp ../../firmware/firmware.bin .
|
|
-mkdir files
|
|
cp ../../firmware/l0dable/*c0d files
|
|
cp ../../firmware/l0dable/*nik files
|
|
cp ../../firmware/l0dable/*int files
|
|
cp ../../firmware/l0dable/files/* files
|
|
cp ../font/binary/*f0n files
|
|
cp ../image/lcd/*lcd files
|
|
cp ../image/lcd/i42.lcd files/nick.lcd
|
|
cd ../crypto && make clean && make generate-keys
|
|
cp ../crypto/generate-keys .
|
|
@echo
|
|
@echo Now run ./smartflash
|
|
|
|
run:
|
|
./smartflash
|
|
|
|
clean:
|
|
rm -f firmware.bin generate-keys
|
|
rm -rf files
|