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 65
|
## SUBDIRS determines in which directories automake will generate a Makefile
## See also AC_OUTPUT in configure.ac
SUBDIRS = include src doc samples win32 vms misc
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = interfaces PWD.in BUGS.md \
freetds.conf locales.conf \
autogen.sh freetds.spec.in freetds.spec tds.dox \
config.rpath CMakeLists.txt Thanks-1.0 \
AUTHORS.md INSTALL.md NEWS.md README.md TODO.md \
COPYING_LIB.txt COPYING.txt
ETC = $(DESTDIR)$(sysconfdir)
DOCDIR = doc
install-data-local:
$(mkinstalldirs) $(ETC)
if test ! -f $(ETC)/freetds.conf; then \
$(INSTALL) -m 644 $(srcdir)/freetds.conf $(ETC)/freetds.conf; \
fi
if test ! -f $(ETC)/locales.conf; then \
$(INSTALL) -m 644 $(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
|