changeset 2953:8450cdb44df7

coyota: Make disk image
author Tormod Volden <debian.tormod@gmail.com>
date Sun, 09 Feb 2014 21:44:21 +0100
parents 9306e2875040
children 43588191b624
files 3rdparty/packages/coyota/makefile
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/3rdparty/packages/coyota/makefile	Sun Feb 09 21:39:25 2014 +0100
+++ b/3rdparty/packages/coyota/makefile	Sun Feb 09 21:44:21 2014 +0100
@@ -3,8 +3,18 @@
 TARGET	= coyota
 OBJS	= coyota.o instrument.o dashboard.o bin_dec32.o
 LFLAGS	+= -lalib -lnos96809l2 -L$(NOSLIB)
+DSK	= $(TARGET).dsk
 
 $(TARGET): $(OBJS)
 
-clean:
+dsk: $(TARGET)
+	$(OS9FORMAT) -q $(DSK)
+	$(MAKDIR) $(DSK),CMDS
+	$(OS9COPY) $(TARGET) $(DSK),CMDS
+	$(OS9ATTR) -e $(DSK),CMDS/$(TARGET)
+	
+dskclean:
+	$(RM) $(DSK)
+
+clean: dskclean
 	$(RM) $(OBJS) $(TARGET)