mtd/util Makefile,1.41,1.42

David Woodhouse dwmw2 at infradead.org
Wed May 5 13:13:35 EDT 2004


Update of /home/cvs/mtd/util
In directory phoenix.infradead.org:/tmp/cvs-serv5784

Modified Files:
	Makefile 
Log Message:
install include files too

Index: Makefile
===================================================================
RCS file: /home/cvs/mtd/util/Makefile,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- Makefile	5 May 2004 17:00:44 -0000	1.41
+++ Makefile	5 May 2004 17:13:32 -0000	1.42
@@ -2,10 +2,10 @@
 # -*- sh -*-
 
 # $Id$
-PREFIX=/usr
+
 SBINDIR=/usr/sbin
 MANDIR=/usr/man
-
+INCLUDEDIR=/usr/include
 #CROSS=arm-linux-
 CC := $(CROSS)gcc
 CFLAGS := -I../include -O2 -Wall
@@ -44,7 +44,9 @@
 	$(CC) $(LDFLAGS) -o $@ $^
 
 install: ${TARGETS}
-	mkdir -p ${DESTDIR}/${PREFIX}
-	for a in ${TARGETS}; do install -m0755 -oroot -groot -s -D $$a ${DESTDIR}/${SBINDIR}/$$a; done
+	mkdir -p ${DESTDIR}/${SBINDIR}/mtd
+	install -m0755 -oroot -groot ../include/mtd/*.h ${PREFIX}/${SBINDIR}/
 	mkdir -p ${DESTDIR}/${MANDIR}/man1
 	gzip -c mkfs.jffs2.1 > ${DESTDIR}/${MANDIR}/man1/mkfs.jffs2.1.gz
+	mkdir -p ${DESTDIR}/${INCLUDEDIR}/mtd
+	install -m0644 -oroot -groot ../include/mtd/*.h ${DESTDIR}/${INCLUDEDIR}/mtd/




More information about the linux-mtd-cvs mailing list