prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
+includedir = @includedir@
bindir = @bindir@
LIBS=@LIBS@
INSTALLCMD = @install@ -c
$(CC) $(CFLAGS) -c rquota/libnfs-raw-rquota.c -o $@
install: $(LIBNFS_A) $(LIBNFS_SO)
-ifeq ("$(LIBDIR)x","x")
- mkdir -p $(libdir)
- $(INSTALLCMD) -m 755 $(LIBNFS_SO) $(libdir)
- $(INSTALLCMD) -m 755 $(LIBNFS_A) $(libdir)
+ mkdir -p $(DESTDIR)$(libdir)
+ $(INSTALLCMD) -m 755 $(LIBNFS_SO) $(DESTDIR)$(libdir)
+ $(INSTALLCMD) -m 755 $(LIBNFS_A) $(DESTDIR)$(libdir)
@ldconfig@
-else
- mkdir -p $(LIBDIR)
- $(INSTALLCMD) -m 755 $(LIBISCSI_SO) $(LIBDIR)
- $(INSTALLCMD) -m 755 $(LIBNFS_A) $(LIBDIR)
-endif
- mkdir -p $(prefix)/include/nfsc
- $(INSTALLCMD) -m 644 include/libnfs.h $(prefix)/include/nfsc
- $(INSTALLCMD) -m 644 include/libnfs-private.h $(prefix)/include/nfsc
- $(INSTALLCMD) -m 644 mount/libnfs-raw-mount.h $(prefix)/include/nfsc
- $(INSTALLCMD) -m 644 nfs/libnfs-raw-nfs.h $(prefix)/include/nfsc
- $(INSTALLCMD) -m 644 portmap/libnfs-raw-portmap.h $(prefix)/include/nfsc
+ mkdir -p $(DESTDIR)$(includedir)/nfsc
+ $(INSTALLCMD) -m 644 include/libnfs.h $(DESTDIR)$(includedir)/nfsc
+ $(INSTALLCMD) -m 644 include/libnfs-private.h $(DESTDIR)$(includedir)/nfsc
+ $(INSTALLCMD) -m 644 mount/libnfs-raw-mount.h $(DESTDIR)$(includedir)/nfsc
+ $(INSTALLCMD) -m 644 nfs/libnfs-raw-nfs.h $(DESTDIR)$(includedir)/nfsc
+ $(INSTALLCMD) -m 644 portmap/libnfs-raw-portmap.h $(DESTDIR)$(includedir)/nfsc
distclean: clean
rm -f config.h config.log config.status configure Makefile