Stefan Schuermans
sort movies
Stefan Schuermans commited 5e9fa25 at 2019-06-21 22:24:26
# Chaosknoten - animated logo board
# Copyright (C) 2019 Stefan Schuermans <stefan@blinkenarea.org>
# Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html
# a BlinkenArea project - http://www.blinkenarea.org/
NAME := Chaosknoten
INC := tn2313def
LFUSE := 0x64
HFUSE := 0xDF
EFUSE := 0xFF
LOCK := 0xFC
PROGRAMMER := avrisp2
CONNECTION := usb
DEVICE := t2313
AVRA := avra
AVRDUDE := avrdude
AVRDUDE_CALL := $(AVRDUDE) -c $(PROGRAMMER) -P $(CONNECTION) -p $(DEVICE)
MOVIE_FUNC_TMPL := movie_func.tmpl
MOVIES := $(wildcard movies/*.bbm)
MOVIES_INC := $(MOVIES:.bbm=.inc)
MOVIE_FUNCS_INC := movie_funcs.inc
MOVIE_TAB_INC := movie_tab.inc
MOVIES_ALL_INC := $(MOVIES_INC) $(MOVIE_FUNCS_INC) $(MOVIE_TAB_INC)
SUFFIXES :=
.PHONY: all prog prog_fuses prog_auto clean
.SUFFIXES:
.SECONDARY:
all: $(NAME).hex
movies/%.inc: movies/%.bbm
./bbm2Chaosknoten.py -i $< -f $@
movie_funcs.inc: $(MOVIE_FUNC_TMPL) $(MOVIES_INC) Makefile
for N in $(sort $(notdir $(MOVIES_INC:.inc=))); do \
sed "s/NAME/$$N/g" $(MOVIE_FUNC_TMPL); \
done >$@
movie_tab.inc: $(MOVIES_INC) Makefile
for N in $(sort $(notdir $(MOVIES_INC:.inc=))); do \
echo " .dw ANIM_MOVIE_$$N"; \
echo " .dw $${N##*x}"; \
done >$@
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX