diff ffstools/tiffs-rd/Makefile @ 242:924a80747176

ffstools/tiffs-rd/Makefile: install target added
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 27 Jan 2014 03:05:56 +0000
parents acedd4c88d2e
children 10afa4d39a7b
line wrap: on
line diff
--- a/ffstools/tiffs-rd/Makefile	Mon Jan 27 02:59:45 2014 +0000
+++ b/ffstools/tiffs-rd/Makefile	Mon Jan 27 03:05:56 2014 +0000
@@ -3,13 +3,18 @@
 PROG=	tiffs
 OBJS=	basics.o cat.o globals.o inode.o ls.o main.o object.o tree.o
 HDRS=	globals.h pathname.h struct.h types.h
+INSTBIN=/usr/local/bin
 
 all:	${PROG}
 
-${PROG}: ${OBJS}
+${PROG}:	${OBJS}
 	${CC} -o $@ ${OBJS}
 
-${OBJS}: ${HDRS}
+${OBJS}:	${HDRS}
+
+install:	${PROG}
+	mkdir -p ${INSTBIN}
+	install -c ${PROG} ${INSTBIN}
 
 clean:
 	rm -f ${PROG} *.o *.out *errs