forked from FreeTDS/freetds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
65 lines (50 loc) · 1.97 KB
/
Makefile.am
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# version $Id: Makefile.am,v 1.50 2012-01-16 00:27:04 jklowden Exp $
## SUBDIRS determines in which directories automake will generate a Makefile
## See also AC_OUTPUT in configure.ac
SUBDIRS = include src doc samples win32 vms
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = interfaces PWD.in BUGS \
freetds.conf locales.conf \
autogen.sh freetds.spec.in freetds.spec tds.dox \
config.rpath CMakeLists.txt
ETC = $(DESTDIR)$(sysconfdir)
DOCDIR = doc
install-data-local:
$(mkinstalldirs) $(ETC)
if test ! -f $(ETC)/freetds.conf; then \
$(INSTALL) $(srcdir)/freetds.conf $(ETC)/freetds.conf; \
fi
if test ! -f $(ETC)/locales.conf; then \
$(INSTALL) $(srcdir)/locales.conf $(ETC)/locales.conf; \
fi
clean-local:
find . \( -name \*.test_output -o -name \*.bb -o -name \*.bbg -o -name \*.da -o -name \*.gc\* \) -exec rm -f {} \;
# enable some cheat so make distcheck work (see below)
DISTCHECK_CONFIGURE_FLAGS = \
--enable-distcheck-build --enable-extra-checks
# do not uninstall configuration files (they may have been changed)
if DISTCHECK_BUILD
uninstall-local:
rm -f $(ETC)/freetds.conf $(ETC)/locales.conf $(ETC)/pool.conf PWD
endif
test:
@echo "The 'make test' option has been replaced with 'make check'";
all:
if DISTCHECK_BUILD
# if we are inside a make distcheck copy our real password file
if test ! -f PWD -a -f $(srcdir)/../PWD; then cp $(srcdir)/../PWD PWD; fi
endif
# this prevent the store of passwords in the source repository
if test ! -f PWD; then cp $(srcdir)/PWD.in PWD; fi
snapshot:
$(MAKE) dist distdir=$(PACKAGE)-`date +"%Y%m%d"`
## The doxygen configuration file understands environment variables.
doxy: $(SUBDIRS)
if HAVE_DOXYGEN
$(MKDIR_P) $(DOCDIR)/reference
rm -rf $(DOCDIR)/reference/*
SRCDIR=$(top_srcdir) VERSION=$(VERSION) $(DOXYGEN) $(top_srcdir)/tds.dox
if test -d $(DOCDIR)/reference/html ; then mv $(DOCDIR)/reference/html/* $(DOCDIR)/reference; rmdir $(DOCDIR)/reference/html; fi
else
echo 'Doxygen not installed; reference manual not built.'
endif