mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-05 20:55:46 +03:00
Better automake files
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@128 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
30
Makefile.am
30
Makefile.am
@@ -2,10 +2,14 @@ SUBDIRS = libssh include
|
|||||||
|
|
||||||
AM_CPPFLAGS = -I$(srcdir)/include
|
AM_CPPFLAGS = -I$(srcdir)/include
|
||||||
|
|
||||||
LDADD = -lssh -L$(srcdir)/libssh
|
LDADD = $(top_builddir)/libssh/libssh.la
|
||||||
|
|
||||||
|
noinst_PROGRAMS = samplesshd samplessh
|
||||||
|
|
||||||
bin_PROGRAMS = samplesshd samplessh samplesftp
|
noinst_DATA = samplesftp doxygen
|
||||||
|
|
||||||
|
libsshdir = $(includedir)/libssh
|
||||||
|
libssh_HEADERS = config.h
|
||||||
|
|
||||||
samplessh_SOURCES = sample.c
|
samplessh_SOURCES = sample.c
|
||||||
|
|
||||||
@@ -14,6 +18,26 @@ samplesshd_SOURCES = samplesshd.c
|
|||||||
samplesftp: samplessh
|
samplesftp: samplessh
|
||||||
$(LN_S) samplessh samplesftp
|
$(LN_S) samplessh samplesftp
|
||||||
|
|
||||||
nodist_samplesftp_SOURCES = samplesftp.c
|
if HAS_DOXYGEN
|
||||||
|
install-doc: doxygen
|
||||||
|
$(INSTALL) -d $(DESTDIR)$(docdir)/html
|
||||||
|
$(INSTALL) --mode=644 doxygen/html/* $(DESTDIR)$(docdir)/html
|
||||||
|
$(INSTALL) -d $(DESTDIR)$(docdir)/examples
|
||||||
|
$(INSTALL) --mode=644 sample.c samplesshd.c $(DESTDIR)$(docdir)/examples
|
||||||
|
$(INSTALL) -d $(DESTDIR)$(mandir)/man3
|
||||||
|
$(INSTALL) --mode=644 doxygen/man/man3/* $(DESTDIR)$(mandir)/man3
|
||||||
|
|
||||||
|
doxygen:
|
||||||
|
@echo "Running doxygen..."
|
||||||
|
doxygen $(srcdir)/Doxyfile
|
||||||
|
else
|
||||||
|
doxygen:
|
||||||
|
install-doc: doxygen
|
||||||
|
endif
|
||||||
|
|
||||||
|
clean-local:
|
||||||
|
-rm -rf doxygen
|
||||||
|
|
||||||
EXTRA_DIST = Doxyfile
|
EXTRA_DIST = Doxyfile
|
||||||
|
|
||||||
|
CLEANFILES = samplesftp
|
||||||
|
@@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
libtoolize --force --copy
|
|
||||||
aclocal
|
aclocal
|
||||||
|
libtoolize --force --copy
|
||||||
autoheader
|
autoheader
|
||||||
autoconf
|
autoconf
|
||||||
automake --add-missing --copy --gnu
|
automake --add-missing --copy --gnu
|
||||||
|
./configure $@
|
||||||
|
@@ -3,10 +3,12 @@
|
|||||||
|
|
||||||
AC_PREREQ(2.57)
|
AC_PREREQ(2.57)
|
||||||
AC_INIT([libssh], 0.2, [aris@0xbadc0de.be])
|
AC_INIT([libssh], 0.2, [aris@0xbadc0de.be])
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE(1.9)
|
||||||
AC_CONFIG_SRCDIR([sample.c])
|
AC_CONFIG_SRCDIR([sample.c])
|
||||||
AC_CONFIG_HEADER([config.h])
|
AC_CONFIG_HEADER([config.h])
|
||||||
|
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
# LT Version numbers, remember to change them just *before* a release.
|
# LT Version numbers, remember to change them just *before* a release.
|
||||||
# (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)
|
||||||
@@ -65,6 +67,9 @@ AC_PROG_MAKE_SET
|
|||||||
AC_PROG_LIBTOOL
|
AC_PROG_LIBTOOL
|
||||||
AC_C_BIGENDIAN
|
AC_C_BIGENDIAN
|
||||||
|
|
||||||
|
AC_CHECK_PROG([DOXYGEN], [doxygen], [yes], [no])
|
||||||
|
AM_CONDITIONAL([HAS_DOXYGEN], [test x"$DOXYGEN" = xyes])
|
||||||
|
|
||||||
# Checks for libraries.
|
# Checks for libraries.
|
||||||
with_gcrypt=${with_gcrypt:-"no"}
|
with_gcrypt=${with_gcrypt:-"no"}
|
||||||
AC_ARG_WITH([libgcrypt],
|
AC_ARG_WITH([libgcrypt],
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
libsshdir = $(includedir)/libssh
|
libsshdir = $(includedir)/libssh
|
||||||
libssh_HEADERS = config.h crypto.h libssh.h priv.h server.h sftp.h ssh1.h ssh2.h
|
libssh_HEADERS = crypto.h libssh.h priv.h server.h sftp.h ssh1.h ssh2.h
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
../../config.h
|
|
Reference in New Issue
Block a user