Add DESTDIR support during 'make install' (Adam Gobiowski)
Этот коммит содержится в:
родитель
371f5de682
Коммит
143c6bf97f
@ -21,14 +21,14 @@ all:
|
|||||||
$(CC) -o ssh2_sample.o ssh2_sample.c $(CFLAGS)
|
$(CC) -o ssh2_sample.o ssh2_sample.c $(CFLAGS)
|
||||||
$(CC) -o ssh2_sample ssh2_sample.o $(LIBS)
|
$(CC) -o ssh2_sample ssh2_sample.o $(LIBS)
|
||||||
install:
|
install:
|
||||||
$(top_srcdir)/mkinstalldirs $(incldir)
|
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(incldir)
|
||||||
$(top_srcdir)/mkinstalldirs $(libdir)
|
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir)
|
||||||
@for dir in ${subdirs}; do \
|
@for dir in ${subdirs}; do \
|
||||||
(cd $$dir && $(MAKE) install) \
|
(cd $$dir && $(MAKE) install) \
|
||||||
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
|
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
|
||||||
done && test -z "$$fail"
|
done && test -z "$$fail"
|
||||||
$(INSTALL) -m 644 include/libssh2.h $(incldir)/
|
$(INSTALL) -m 644 include/libssh2.h $(DESTDIR)$(incldir)/
|
||||||
$(INSTALL) -m 644 include/libssh2_sftp.h $(incldir)/
|
$(INSTALL) -m 644 include/libssh2_sftp.h $(DESTDIR)$(incldir)/
|
||||||
clean:
|
clean:
|
||||||
@for dir in ${subdirs}; do \
|
@for dir in ${subdirs}; do \
|
||||||
(cd $$dir && $(MAKE) clean) \
|
(cd $$dir && $(MAKE) clean) \
|
||||||
|
5
README
5
README
@ -1,6 +1,11 @@
|
|||||||
libssh2 - SSH2 library
|
libssh2 - SSH2 library
|
||||||
======================
|
======================
|
||||||
|
|
||||||
|
Version 0.5
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Added DESTDIR support to makefiles (Adam Go│ъbiowski -- I hope that character set translates right)
|
||||||
|
|
||||||
Version 0.4
|
Version 0.4
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ libssh2.a: $(OBJECTS)
|
|||||||
ar q libssh2.a $(OBJECTS)
|
ar q libssh2.a $(OBJECTS)
|
||||||
@RANLIB@ libssh2.a
|
@RANLIB@ libssh2.a
|
||||||
install: all
|
install: all
|
||||||
$(INSTALL) libssh2.@SHLIB_SUFFIX_NAME@ $(libdir)
|
$(INSTALL) libssh2.@SHLIB_SUFFIX_NAME@ $(DESTDIR)$(libdir)
|
||||||
clean:
|
clean:
|
||||||
rm -f *~ libssh2.a libssh2.@SHLIB_SUFFIX_NAME@ *.o
|
rm -f *~ libssh2.a libssh2.@SHLIB_SUFFIX_NAME@ *.o
|
||||||
|
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user