fixed makefiles for debian packaging

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@83 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Aris Adamantiadis
2006-11-16 20:58:01 +00:00
parent a5774a32e8
commit 3d346fdebc
3 changed files with 13 additions and 13 deletions

View File

@@ -22,7 +22,7 @@ LN = @LN_S@
LIBTOOL = @LIBTOOL@ LIBTOOL = @LIBTOOL@
OBJECTS = sample.o samplesshd.o OBJECTS = sample.o samplesshd.o
APPS = samplessh samplesftp samplesshd APPS = samplessh samplesftp samplesshd
VERSION = 0.12-dev VERSION = 0.2-dev
DISTLIB = libssh-$(VERSION) DISTLIB = libssh-$(VERSION)
CONFIG = include/libssh/config.h CONFIG = include/libssh/config.h
@@ -75,14 +75,14 @@ install: all
(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"
$(top_srcdir)/mkinstalldirs $(incldir)/libssh $(top_srcdir)/mkinstalldirs $(DESTDIR)$(incldir)/libssh
$(INSTALL) include/libssh/libssh.h $(incldir)/libssh/ $(INSTALL) include/libssh/libssh.h $(DESTDIR)$(incldir)/libssh/
$(INSTALL) include/libssh/config.h $(incldir)/libssh/ $(INSTALL) include/libssh/config.h $(DESTDIR)$(incldir)/libssh/
$(INSTALL) include/libssh/sftp.h $(incldir)/libssh/ $(INSTALL) include/libssh/sftp.h $(DESTDIR)$(incldir)/libssh/
$(INSTALL) include/libssh/crypto.h $(incldir)/libssh/ $(INSTALL) include/libssh/crypto.h $(DESTDIR)$(incldir)/libssh/
$(INSTALL) include/libssh/server.h $(incldir)/libssh/ $(INSTALL) include/libssh/server.h $(DESTDIR)$(incldir)/libssh/
$(INSTALL) include/libssh/ssh2.h $(incldir)/libssh/ $(INSTALL) include/libssh/ssh2.h $(DESTDIR)$(incldir)/libssh/
$(INSTALL) include/libssh/ssh1.h $(incldir)/libssh/ $(INSTALL) include/libssh/ssh1.h $(DESTDIR)$(incldir)/libssh/
.PHONY: clean .PHONY: clean
clean: clean:

View File

@@ -10,7 +10,7 @@ AC_CONFIG_HEADER([config.h])
# (Interfaces removed: CURRENT++, AGE=0, REVISION=0) # (Interfaces removed: CURRENT++, AGE=0, REVISION=0)
# (Interfaces added: CURRENT++, AGE++, REVISION=0) # (Interfaces added: CURRENT++, AGE++, REVISION=0)
# (No interfaces changed: REVISION++) # (No interfaces changed: REVISION++)
LIBSSH_CURRENT=1 LIBSSH_CURRENT=2
LIBSSH_AGE=0 LIBSSH_AGE=0
LIBSSH_REVISION=0 LIBSSH_REVISION=0
AC_SUBST(LIBSSH_CURRENT) AC_SUBST(LIBSSH_CURRENT)

View File

@@ -42,9 +42,9 @@ libssh.so: libssh.la
libssh.a: libssh.la libssh.a: libssh.la
install: all install: all
$(top_srcdir)/mkinstalldirs $(incldir) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(incldir)
$(top_srcdir)/mkinstalldirs $(libdir) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir)
$(LIBTOOL) --mode=install $(INSTALL) libssh.la $(libdir) $(LIBTOOL) --mode=install $(INSTALL) libssh.la $(DESTDIR)$(libdir)
clean: clean:
$(LIBTOOL) --mode=clean rm -f *~ libssh.la *.lo *.o $(LIBTOOL) --mode=clean rm -f *~ libssh.la *.lo *.o
distclean: clean distclean: clean