-# makefile for uiq3_patcher_0_2.tar.gz\r
+# makefile for uiq3_patcher_0_2.tar.gz setup, modified\r
export CROSS = arm-none-symbianelf-\r
APPNAME = PicoDrive\r
VER_MAJ = 1\r
@echo ">>>" $@\r
$(AS) $(ASFLAGS) $< -o $@\r
\r
-# App.o can't be optimized\r
-#App.o : App.cpp\r
-# $(CC) $(CXXFLAGS) -O0 -c $< -o $@\r
+\r
+readme.txt: ../../tools/textfilter ../base_readme.txt\r
+ ../../tools/textfilter ../base_readme.txt $@ UIQ\r
+\r
+# ----------- release -----------\r
+ifneq ($(findstring rel,$(MAKECMDGOALS)),)\r
+ifeq ($(VER),)\r
+$(error need VER)\r
+endif\r
+endif\r
+\r
+rel: picodrive.sis readme.txt\r
+ zip -9 -j ../../PicoDrive_uiq3_$(VER).zip $^\r
+ mkdir bin_to_cso_mp3\r
+ cp ../../tools/bin_to_cso_mp3/* bin_to_cso_mp3/\r
+ zip -9 -r ../../PicoDrive_uiq3_$(VER).zip bin_to_cso_mp3\r
+ rm -rf bin_to_cso_mp3\r