diff target-utils/calversion/Makefile @ 444:e75d866e3826

target-utils/calversion/Makefile: install added
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 29 Dec 2018 05:40:06 +0000
parents 1dcc9e4b71fd
children 58d3a0634272
line wrap: on
line diff
--- a/target-utils/calversion/Makefile	Wed Dec 26 07:22:44 2018 +0000
+++ b/target-utils/calversion/Makefile	Sat Dec 29 05:40:06 2018 +0000
@@ -4,6 +4,8 @@
 LD=	arm-elf-ld
 OBJCOPY=arm-elf-objcopy
 
+INSTDIR=/opt/freecalypso/target-bin
+
 PROG=	calversion
 OBJS=	crt0.o cmdtab.o dsp_bringup.o main.o mygetchar.o
 LIBS=	../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a \
@@ -23,6 +25,10 @@
 ${PROG}.srec:	${PROG}.elf
 	${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@
 
+install:
+	mkdir -p ${INSTDIR}
+	install -c -m 644 ${PROG}.srec ${INSTDIR}
+
 clean:
 	rm -f *.o *errs *core *.elf *.bin *.srec crt0.S