X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hexed%2FMakefile;fp=hexed%2FMakefile;h=0a8bc4f0865dcc96f09bb04727ffaeb3dd3a0e5d;hb=74d5977b2bc31ff843e5bf389fdc87ceaefcc53d;hp=cebf0249e90605c40276c146747d4d5c98a9bd49;hpb=d90ff128e4d94408645f3b024aa8b8e2107cf543;p=megadrive.git diff --git a/hexed/Makefile b/hexed/Makefile index cebf024..0a8bc4f 100644 --- a/hexed/Makefile +++ b/hexed/Makefile @@ -19,3 +19,18 @@ a.out : $(OBJS) clean: $(RM) $(TARGET) $(OBJS) $(TARGET).map a.out + +# ----------- release ----------- +ifneq ($(findstring rel,$(MAKECMDGOALS)),) +ifeq ($(VER),) +$(error need VER) +endif +endif + +rel: hexed.bin readme.txt src + zip -9 -r hexed_r$(VER).zip $^ + rm -rf src + +src: hexed.s font.s sega_gcc.s md.ld Makefile + mkdir src + cp $^ src/