AROS: Add an install target to the makefile
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 8 Jun 2013 20:06:17 +0000 (13:06 -0700)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 8 Jun 2013 20:06:17 +0000 (13:06 -0700)
Copy libnfs.a to GCC:lib and the header files to
INCLUDE:nfsc

aros/Makefile.AROS

index 6d39137f5cbaa24a1616e939c0ec44f9fbe7a78a..9c97dc0d1f180469f4ff46cf1b667ae6eb007e4c 100755 (executable)
@@ -21,6 +21,18 @@ lib/libnfs.a: $(OBJS)
        echo $(CC) $(CFLAGS) -c -o $@ $<
        $(CC) $(CFLAGS) -c -o $@ $<
 
+install: all
+       cp lib/libnfs.a GCC:lib
+       mkdir -p INCLUDE:nfsc
+       cp include/nfsc/libnfs.h INCLUDE:nfsc
+       cp include/nfsc/libnfs-raw.h INCLUDE:nfsc
+       cp include/nfsc/libnfs-zdr.h INCLUDE:nfsc
+       cp mount/libnfs-raw-mount.h INCLUDE:nfsc
+       cp nlm/libnfs-raw-nlm.h INCLUDE:nfsc
+       cp nfs/libnfs-raw-nfs.h INCLUDE:nfsc
+       cp portmap/libnfs-raw-portmap.h INCLUDE:nfsc
+       cp rquota/libnfs-raw-rquota.h INCLUDE:nfsc
+
 examples/nfsclient-listservers: examples/nfsclient-listservers.c lib/libnfs.a
        $(CC) $(CFLAGS) -o $@ $< lib/libnfs.a