aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: b3c3502d72e7a3280575b8cb7a5dc3ab329b8b84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
SUBDIRS = libssh include

AM_CPPFLAGS = -I$(srcdir)/include

LDADD = $(top_builddir)/libssh/libssh.la

noinst_PROGRAMS = samplesshd samplessh 

noinst_DATA = samplesftp doxygen

samplessh_SOURCES = sample.c

samplesshd_SOURCES = samplesshd.c

samplesftp: samplessh
	$(LN_S) -f samplessh samplesftp

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: clean-local
	@echo "Running doxygen..."
	doxygen $(srcdir)/Doxyfile
doxygen-dev: clean-local
	@echo "Running internal doxygen"
	doxygen $(srcdir)/Doxyfile.internal
else
doxygen:
doxygen-dev:
install-doc: doxygen
endif

clean-local:
	-rm -rf doxygen

EXTRA_DIST = Doxyfile Doxyfile.internal

CLEANFILES = samplesftp