Files
gnucash/Makefile.am
T

252 lines
6.9 KiB
Makefile
Raw Normal View History

2000-06-02 09:00:31 +00:00
SUBDIRS = . doc lib src packaging po accounts checks
2000-06-02 09:00:31 +00:00
2002-11-30 08:59:19 +00:00
GNC_CTAGS_FILE = @GNC_CTAGS_FILE@
GNC_ETAGS_FILE = @GNC_ETAGS_FILE@
noinst_DATA = make-gnucash-potfiles
2000-06-02 09:00:31 +00:00
noinst_PROGRAMS = gnc-guile
gnc_guile_SOURCES = util/guile.c
gnc_guile_CFLAGS = ${GUILE_CFLAGS}
gnc_guile_LDADD = ${GUILE_LIBS}
dist_doc_DATA = \
2000-06-02 09:00:31 +00:00
AUTHORS \
COPYING \
ChangeLog \
2017-03-25 17:23:18 -07:00
ChangeLog.2016 \
ChangeLog.2015 \
2015-03-27 14:36:16 +09:00
ChangeLog.2014 \
2014-12-05 09:41:50 +01:00
ChangeLog.2013 \
2013-10-16 19:32:23 +00:00
ChangeLog.2012 \
ChangeLog.2011 \
2011-03-10 20:12:44 +00:00
ChangeLog.2010 \
2010-01-15 20:49:10 +00:00
ChangeLog.2009 \
2009-02-24 00:12:15 +00:00
ChangeLog.2008 \
2008-01-02 20:05:36 +00:00
ChangeLog.2007 \
ChangeLog.2006 \
ChangeLog.2005 \
ChangeLog.2004 \
ChangeLog.2003 \
2015-12-31 22:07:30 +01:00
ChangeLog.2002 \
ChangeLog.2001 \
ChangeLog.2000 \
ChangeLog.1999 \
2005-11-20 17:09:46 +00:00
DOCUMENTERS \
HACKING \
2000-06-02 09:00:31 +00:00
INSTALL \
2005-11-20 17:09:46 +00:00
LICENSE \
2000-06-02 09:00:31 +00:00
NEWS \
README \
README.dependencies
2000-06-02 09:00:31 +00:00
2000-06-05 05:51:39 +00:00
# All the other files that go in the distribution tarfile that aren't
# included some other way...
# Most directories handle their own EXTRA_DIST setting, but for some,
2000-12-21 23:40:02 +00:00
# it's not worth the trouble and for others, there's no Makefile.am
# (i.e. ./intl and ./po -- these handle their own Makefile.in and
# Makefile.in.in files...), so we list their files here.
2000-06-05 05:51:39 +00:00
# Don't list any directories or you'll get *everything*, including the
# CVS dirs.
EXTRA_DIST = \
$(SWIG_DIST_FAIL) \
CMakeLists.txt \
cmake/cmake_uninstall.cmake.in \
cmake/README_CMAKE.txt \
cmake/CMakeLists.txt \
make-gnucash-potfiles.in \
macros/binreloc.m4 \
2005-11-02 03:32:36 +00:00
macros/compiler-flags.m4 \
2013-12-15 17:19:51 +00:00
macros/ax_pkg_swig.m4 \
macros/ax_python_devel.m4 \
macros/ax_swig_python.m4 \
2005-11-02 03:32:36 +00:00
macros/legacy_macros.m4 \
macros/CMakeLists.txt \
po/CMakeLists.txt \
po/glossary/CMakeLists.txt \
po/gnucash.pot \
2006-01-27 21:49:03 +00:00
po/POTFILES.in \
2006-02-01 22:38:41 +00:00
po/POTFILES.skip \
po/POTFILES.ignore \
2001-08-19 22:47:15 +00:00
po/README \
po/glossary/bg.po \
po/glossary/ca.po \
2001-10-28 00:44:26 +00:00
po/glossary/da.po \
2001-08-19 22:47:15 +00:00
po/glossary/de.po \
po/glossary/el.po \
2001-10-28 00:44:26 +00:00
po/glossary/es.po \
po/glossary/es_NI-policy.txt \
2006-04-18 19:27:37 +00:00
po/glossary/fr.po \
2001-08-19 22:47:15 +00:00
po/glossary/gnc-glossary.txt \
po/glossary/he.po \
2007-08-04 10:10:05 +00:00
po/glossary/hu.po \
po/glossary/it.po \
2005-11-22 19:56:05 +00:00
po/glossary/nb.po \
po/glossary/nl.po \
po/glossary/pl.po \
po/glossary/pt.po \
po/glossary/pt_BR.po \
po/glossary/ru.po \
po/glossary/rw.po \
po/glossary/sk.po \
po/glossary/sv.po \
po/glossary/txt-to-pot.sh \
po/glossary/vi.po \
po/glossary/zh_CN.po \
po/glossary/zh_TW.po \
2001-10-28 00:44:26 +00:00
intltool-extract.in \
intltool-merge.in \
2006-06-24 18:34:35 +00:00
intltool-update.in \
test-templates/CMakeLists.txt \
test-templates/Makefile.am \
util/gnc-vcs-info \
util/CMakeLists.txt
2001-09-06 09:05:38 +00:00
2000-06-02 09:00:31 +00:00
## We borrow guile's convention and use @-...-@ as the substitution
## brackets here, instead of the usual @...@. This prevents autoconf
## from substituting the values directly into the left-hand sides of
## the sed substitutions.
make-gnucash-potfiles: make-gnucash-potfiles.in Makefile
rm -f $@.tmp
2002-02-28 08:31:32 +00:00
sed < $< > $@.tmp \
-e 's:@-SRCDIR-@:${srcdir}:g' \
-e 's:@-PERL-@:${PERL}:g'
chmod +x $@.tmp
mv $@.tmp $@
DISTCLEANFILES = \
2002-02-28 08:31:32 +00:00
intltool-extract intltool-update intltool-merge\
cscope.files cscope.out etags.files \
make-gnucash-potfiles po/.intltool-merge-cache
2000-06-02 09:00:31 +00:00
2000-12-11 21:26:58 +00:00
cscope.files:
find src lib -name '*.[ch]' > cscope.files
if GNUCASH_SEPARATE_BUILDDIR
find ${srcdir}/src ${srcdir}/lib -name '*.[ch]' >> cscope.files
endif
2000-06-02 09:00:31 +00:00
${srcdir}/cscope.out: cscope.files
cscope -b -f ${srcdir}/cscope.out
2000-12-11 21:26:58 +00:00
2002-11-30 08:59:19 +00:00
2006-01-03 22:22:08 +00:00
# make sure etags.files is up to date.
# and use the contents of etags.files to re-make TAGS if needed.
2002-11-30 08:59:19 +00:00
etags:
if GNC_ETAGS_FILE
2002-11-30 08:59:19 +00:00
${MAKE} -f Makefile.TAGS etags.files
2005-11-02 03:32:36 +00:00
${MAKE} -f Makefile.TAGS TAGS
2002-11-30 08:59:19 +00:00
else
2004-12-23 18:27:33 +00:00
@echo "You must ./configure with --enable-etags to use etags."
2002-11-30 08:59:19 +00:00
endif
2006-01-03 22:22:08 +00:00
# make sure etags.files is up to date.
# and use the contents of etags.files to re-make tags if needed.
2002-11-30 08:59:19 +00:00
ctags:
if GNC_CTAGS_FILE
${MAKE} -f Makefile.TAGS etags.files
2005-11-02 03:32:36 +00:00
${MAKE} -f Makefile.TAGS tags
else
2002-11-30 08:59:19 +00:00
@echo "You must ./configure with --enable-ctags to use ctags."
endif
2002-11-30 08:59:19 +00:00
.PHONY: etags ctags
ACLOCAL_AMFLAGS = -I macros
.PHONY: doc
doc:
$(MAKE) -C src/doc doc
2003-01-06 07:15:30 +00:00
2003-01-21 04:40:19 +00:00
distcleancheck_listfiles = \
find -type f -exec sh -c 'test -f ${srcdir}/{} || echo {}' ';'
2008-01-08 02:10:59 +00:00
distuninstallcheck_listfiles = \
find . -type f -print | grep -v ./share/icons/hicolor/icon-theme.cache | grep -v ./share/info/dir
2003-01-21 04:40:19 +00:00
#dist-hook: po/POTFILES.in
# Make "make dist" fail if we have the wrong version of swig
if SWIG_DIST_FAIL
SWIG_DIST_FAIL = swig-dist-fail
swig-dist-fail:
@echo "You cannot build the dist with your version of swig"
@exit 1
endif
distcheck-hook:
@e=''; \
for X in `grep -v \# ${distdir}/po/POTFILES.in | sed 's/\[type:.*\]//'` ; do \
if [ ! -f ${distdir}/$$X ] ; then \
echo $$X " is in POTFILES.in but not in the dist."; \
e='yes'; \
fi; \
done; \
for X in `grep -v '\(^\#\|.scm\$\)' ${distdir}/po/POTFILES.skip` ; do \
if [ -f ${distdir}/$$X ] ; then \
echo $$X " is in POTFILES.skip but also in the dist.";\
e='yes'; \
fi; \
done; \
if test "$$e" = "yes" ; then exit 1; fi;
2003-01-21 04:40:19 +00:00
distclean-local:
2003-01-06 07:15:30 +00:00
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status --recheck
.PHONY: pot
pot: Makefile po/POTFILES.in
rm -f po/$(PACKAGE).pot
${MAKE} -C po $(PACKAGE).pot
$(srcdir)/po/POTFILES.in: make-gnucash-potfiles .potfiles
2008-01-16 16:35:52 +00:00
if test -w $(srcdir)/po/POTFILES.in ; then ./make-gnucash-potfiles > $(srcdir)/po/POTFILES.in ; fi
# Creation rules so that po/gnucash.pot can always be created for
# make dist.
po/gnucash.pot: po/POTFILES.in
${MAKE} -C po gnucash.pot
.potfiles:
SVN = svn
if BUILDING_FROM_VCS
# This rule will generate a ChangeLog of gnucash/trunk commits, plus
# all additional branches that are added in
# ./macros/svn2cl.xsl. (FIXME: Is the dependency on NEWS really a good
# idea? Before a release, NEWS will get updated because of the version
# change, so this should fit just fine.)
ChangeLog: NEWS
2013-05-17 10:10:37 +00:00
cd $(abs_srcdir) ; \
2015-03-31 07:12:24 +02:00
if test x$(VCS_TYPE) = xsvn ; then \
2015-03-27 14:36:16 +09:00
$(SVN) log -v --xml -r HEAD:'{2015-01-01}' http://svn.gnucash.org/repo/gnucash | \
2013-05-17 10:10:37 +00:00
$(XSLTPROC) --stringparam strip-prefix "gnucash/trunk" \
--stringparam include-rev "yes" $(abs_srcdir)/macros/svn2cl.xsl - > $(abs_builddir)/$@ ; \
else \
2015-03-31 07:12:24 +02:00
if test x$(VCS_TYPE) = xgit ; then \
2017-03-25 17:23:18 -07:00
"$(GIT_CMD)" log --format="%ad %aN %n%n%x09* %s%d%n" --date=short --since=2017-01-01 > $(abs_builddir)/$@ ; \
2013-05-17 10:10:37 +00:00
else \
touch $(abs_builddir)/$@ ; \
echo "Note: not in svn or git. ChangeLog not regenerated." ; \
fi ; \
fi ; \
cd $(abs_builddir)
endif
ASTYLE = /usr/bin/astyle
.PHONY: indent
indent:
$(ASTYLE) --indent=spaces=4 --brackets=break --suffix=none `find ${srcdir}/src -name '*.[hc]'`
# Use the following line if you've got astyle-1.24, but don't use
# --pad=oper with astyle 1.22 as it will reformat e.g. "return +1;" in
# a very ugly way.
# $(ASTYLE) --indent=spaces=4 --brackets=break --pad-oper -pad-header --suffix=none `find ${srcdir}/src -name '*.[hc]'`
@echo "### GnuCash development hint: The above command might have re-indented much more files than what you intended. Please commit only those which you really want to have changed, and revert the changes in the others so that other devevelopers do not have unnecessary merge conflicts. Thanks! ###"
2013-12-15 17:19:51 +00:00