2000-06-02 09:00:31 +00:00
|
|
|
|
2007-03-13 03:43:24 +00:00
|
|
|
SUBDIRS = . doc lib src intl-scm packaging po accounts checks
|
2000-06-02 09:00:31 +00:00
|
|
|
|
|
|
|
|
docdir = ${GNC_DOC_INSTALL_DIR}
|
|
|
|
|
|
2002-11-30 08:59:19 +00:00
|
|
|
GNC_CTAGS_FILE = @GNC_CTAGS_FILE@
|
|
|
|
|
GNC_ETAGS_FILE = @GNC_ETAGS_FILE@
|
|
|
|
|
|
2008-03-08 17:17:47 +00:00
|
|
|
noinst_DATA = make-gnucash-potfiles
|
2000-06-02 09:00:31 +00:00
|
|
|
|
2006-01-29 11:12:08 +00:00
|
|
|
dist_doc_DATA = \
|
2000-06-02 09:00:31 +00:00
|
|
|
AUTHORS \
|
|
|
|
|
COPYING \
|
|
|
|
|
ChangeLog \
|
2008-01-02 20:05:36 +00:00
|
|
|
ChangeLog.2007 \
|
2007-02-01 14:25:42 +00:00
|
|
|
ChangeLog.2006 \
|
2006-01-29 11:12:08 +00:00
|
|
|
ChangeLog.2005 \
|
|
|
|
|
ChangeLog.2004 \
|
|
|
|
|
ChangeLog.2003 \
|
2005-11-20 17:09:46 +00:00
|
|
|
DOCUMENTERS \
|
2000-08-22 23:43:56 +00:00
|
|
|
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 \
|
2001-05-01 20:58:00 +00:00
|
|
|
README \
|
2006-02-10 15:04:12 +00:00
|
|
|
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.
|
|
|
|
|
|
2006-01-29 11:12:08 +00:00
|
|
|
EXTRA_DIST = \
|
2000-06-05 05:51:39 +00:00
|
|
|
gnucash.lsm \
|
2001-08-17 08:28:31 +00:00
|
|
|
make-gnucash-potfiles.in \
|
2005-11-02 03:32:36 +00:00
|
|
|
macros/aqbanking.m4 \
|
|
|
|
|
macros/as-scrub-include.m4 \
|
2006-09-18 20:43:50 +00:00
|
|
|
macros/binreloc.m4 \
|
2005-11-02 03:32:36 +00:00
|
|
|
macros/compiler-flags.m4 \
|
2006-10-15 19:02:05 +00:00
|
|
|
macros/ac_pkg_swig.m4 \
|
2005-11-02 03:32:36 +00:00
|
|
|
macros/gnome-guile-checks.m4 \
|
|
|
|
|
macros/legacy_macros.m4 \
|
2006-03-07 20:50:11 +00:00
|
|
|
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 \
|
2007-05-16 03:38:06 +00:00
|
|
|
po/POTFILES.ignore \
|
2001-08-19 22:47:15 +00:00
|
|
|
po/README \
|
2001-10-28 00:44:26 +00:00
|
|
|
po/glossary/da.po \
|
2001-08-19 22:47:15 +00:00
|
|
|
po/glossary/de.po \
|
2005-11-11 20:09:25 +00:00
|
|
|
po/glossary/el.po \
|
2001-10-28 00:44:26 +00:00
|
|
|
po/glossary/es.po \
|
2001-12-03 07:55:56 +00:00
|
|
|
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 \
|
2007-08-04 10:10:05 +00:00
|
|
|
po/glossary/hu.po \
|
2005-11-11 20:09:25 +00:00
|
|
|
po/glossary/it.po \
|
|
|
|
|
po/glossary/nl.po \
|
2005-11-22 19:56:05 +00:00
|
|
|
po/glossary/nb.po \
|
2005-11-11 20:09:25 +00:00
|
|
|
po/glossary/pl.po \
|
|
|
|
|
po/glossary/pt.po \
|
|
|
|
|
po/glossary/pt_BR.po \
|
|
|
|
|
po/glossary/rw.po \
|
|
|
|
|
po/glossary/sk.po \
|
|
|
|
|
po/glossary/sv.po \
|
2001-09-17 09:59:23 +00:00
|
|
|
po/glossary/txt-to-pot.sh \
|
2005-11-11 20:09:25 +00:00
|
|
|
po/glossary/vi.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 \
|
|
|
|
|
util/gnc-svnversion
|
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.
|
2004-06-24 22:11:26 +00:00
|
|
|
make-gnucash-potfiles: make-gnucash-potfiles.in Makefile
|
2001-08-17 08:28:31 +00:00
|
|
|
rm -f $@.tmp
|
2002-02-28 08:31:32 +00:00
|
|
|
sed < $< > $@.tmp \
|
2006-02-02 18:47:34 +00:00
|
|
|
-e 's:@-SRCDIR-@:${srcdir}:g' \
|
2001-08-17 08:28:31 +00:00
|
|
|
-e 's:@-PERL-@:${PERL}:g'
|
|
|
|
|
chmod +x $@.tmp
|
|
|
|
|
mv $@.tmp $@
|
2005-12-04 21:27:17 +00:00
|
|
|
|
2001-10-03 07:08:31 +00:00
|
|
|
DISTCLEANFILES = \
|
2002-02-28 08:31:32 +00:00
|
|
|
intltool-extract intltool-update intltool-merge\
|
2008-03-08 17:17:47 +00:00
|
|
|
cscope.files cscope.out etags.files \
|
2008-01-15 20:40:19 +00:00
|
|
|
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:
|
2006-05-14 23:34:44 +00:00
|
|
|
find src lib -name '*.[ch]' > cscope.files
|
2008-01-05 18:30:43 +00:00
|
|
|
if GNUCASH_SEPARATE_BUILDDIR
|
|
|
|
|
find ${srcdir}/src ${srcdir}/lib -name '*.[ch]' >> cscope.files
|
|
|
|
|
endif
|
2000-06-02 09:00:31 +00:00
|
|
|
|
2008-01-05 18:30:43 +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:
|
2006-01-06 21:31:22 +00:00
|
|
|
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
|
|
|
|
|
|
2001-02-25 00:42:44 +00:00
|
|
|
|
2006-01-03 22:22:08 +00:00
|
|
|
# make sure etags.files is up to date.
|
2006-01-06 21:31:22 +00:00
|
|
|
# and use the contents of etags.files to re-make tags if needed.
|
2002-11-30 08:59:19 +00:00
|
|
|
ctags:
|
2006-01-06 21:31:22 +00:00
|
|
|
if GNC_CTAGS_FILE
|
2001-12-04 22:41:38 +00:00
|
|
|
${MAKE} -f Makefile.TAGS etags.files
|
2005-11-02 03:32:36 +00:00
|
|
|
${MAKE} -f Makefile.TAGS tags
|
2001-05-15 15:52:59 +00:00
|
|
|
else
|
2002-11-30 08:59:19 +00:00
|
|
|
@echo "You must ./configure with --enable-ctags to use ctags."
|
2001-02-25 00:42:44 +00:00
|
|
|
endif
|
2001-05-15 15:52:59 +00:00
|
|
|
|
2002-11-30 08:59:19 +00:00
|
|
|
.PHONY: etags ctags
|
2002-05-15 04:48:36 +00:00
|
|
|
|
2007-12-09 01:26:03 +00:00
|
|
|
ACLOCAL_AMFLAGS = -I macros
|
2002-11-27 22:49:10 +00:00
|
|
|
|
|
|
|
|
.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
|
|
|
|
2008-01-15 20:40:19 +00:00
|
|
|
#dist-hook: po/POTFILES.in
|
2006-01-08 22:29:47 +00:00
|
|
|
|
2006-02-01 20:30:14 +00:00
|
|
|
distcheck-hook:
|
|
|
|
|
@e=''; \
|
|
|
|
|
for X in `grep -v \# ${distdir}/po/POTFILES.in` ; do \
|
|
|
|
|
if [ ! -f ${distdir}/$$X ] ; then \
|
|
|
|
|
echo $$X " is in POTFILES.in but not in the dist."; \
|
|
|
|
|
e='yes'; \
|
|
|
|
|
fi; \
|
|
|
|
|
done; \
|
2006-02-02 00:07:58 +00:00
|
|
|
for X in `grep -v \# ${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; \
|
2006-02-01 20:30:14 +00:00
|
|
|
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
|
2005-12-02 21:11:49 +00:00
|
|
|
|
2006-01-06 02:49:27 +00:00
|
|
|
.PHONY: pot
|
|
|
|
|
pot: Makefile po/POTFILES.in
|
2005-12-03 17:00:28 +00:00
|
|
|
rm -f intl-scm/guile-strings.c
|
2006-01-06 02:49:27 +00:00
|
|
|
${MAKE} -C intl-scm
|
2005-12-03 17:00:28 +00:00
|
|
|
rm -f po/$(PACKAGE).pot
|
2006-01-06 02:49:27 +00:00
|
|
|
${MAKE} -C po $(PACKAGE).pot
|
|
|
|
|
|
|
|
|
|
|
2008-01-15 20:40:19 +00:00
|
|
|
$(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
|
2006-01-06 02:49:27 +00:00
|
|
|
|
2006-03-09 09:39:49 +00:00
|
|
|
# Creation rules so that po/gnucash.pot can always be created for
|
|
|
|
|
# make dist.
|
|
|
|
|
po/gnucash.pot: po/POTFILES.in intl-scm/guile-strings.c
|
|
|
|
|
${MAKE} -C po gnucash.pot
|
|
|
|
|
intl-scm/guile-strings.c:
|
|
|
|
|
${MAKE} -C intl-scm guile-strings.c
|
|
|
|
|
|
2006-01-06 02:49:27 +00:00
|
|
|
.potfiles:
|
2005-12-03 17:00:28 +00:00
|
|
|
|
|
|
|
|
SVN = svn
|
|
|
|
|
XSLTPROC = xsltproc
|
2007-04-30 09:42:56 +00:00
|
|
|
|
2007-05-22 20:00:49 +00:00
|
|
|
if BUILDING_FROM_SVN
|
2007-04-30 09:42:56 +00:00
|
|
|
# This rule will generate a ChangeLog of gnucash/trunk commits, plus
|
|
|
|
|
# all additional branches that are added in
|
2007-04-30 09:50:35 +00:00
|
|
|
# ./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
|
2008-01-02 20:05:36 +00:00
|
|
|
$(SVN) log -v --xml -r HEAD:16778 http://svn.gnucash.org/repo/gnucash | \
|
2007-04-30 09:42:56 +00:00
|
|
|
$(XSLTPROC) --stringparam strip-prefix "gnucash/trunk" \
|
2005-12-03 17:00:28 +00:00
|
|
|
--stringparam include-rev "yes" $(srcdir)/macros/svn2cl.xsl - > $@
|
2007-05-22 20:00:49 +00:00
|
|
|
endif
|