changeset 32:fb9c03515832

sw/sniff-rx/Makefile: add install
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 29 Aug 2023 21:44:22 +0000
parents ab37fcb71744
children 28ffdfa193f3
files sw/sniff-rx/Makefile
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sw/sniff-rx/Makefile	Tue Aug 29 21:22:37 2023 +0000
+++ b/sw/sniff-rx/Makefile	Tue Aug 29 21:44:22 2023 +0000
@@ -4,10 +4,18 @@
 OBJS=	byteproc.o datetime.o initflush.o main.o mainloop.o
 LIBS=	../libserial/libserial.a
 
+INSTALL_PREFIX=	/opt/freecalypso
+
+INSTBIN=${INSTALL_PREFIX}/bin
+
 all:	${PROG}
 
 ${PROG}:	${OBJS} ${LIBS}
 	${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS}
 
+install:
+	mkdir -p ${INSTBIN}
+	install -c ${PROG} ${INSTBIN}
+
 clean:
 	rm -f *.o ${PROG}