diff sw/sniff-rx/Makefile @ 32:fb9c03515832

sw/sniff-rx/Makefile: add install
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 29 Aug 2023 21:44:22 +0000
parents b112c2df6c43
children 7c9bf72d460f
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}