2000-06-02 04:00:31 -05:00
|
|
|
|
2006-02-26 15:05:21 -06:00
|
|
|
SUBDIRS = . doc lib src intl-scm packaging po accounts
|
2000-06-02 04:00:31 -05:00
|
|
|
|
|
|
|
docdir = ${GNC_DOC_INSTALL_DIR}
|
|
|
|
|
2002-11-30 02:59:19 -06:00
|
|
|
GNC_CTAGS_FILE = @GNC_CTAGS_FILE@
|
|
|
|
GNC_ETAGS_FILE = @GNC_ETAGS_FILE@
|
|
|
|
|
2006-03-10 17:32:53 -06:00
|
|
|
noinst_DATA = make-gnucash-patch make-gnucash-potfiles lib/.links
|
2000-06-02 04:00:31 -05:00
|
|
|
|
2006-01-29 05:12:08 -06:00
|
|
|
dist_doc_DATA = \
|
2000-06-02 04:00:31 -05:00
|
|
|
AUTHORS \
|
|
|
|
COPYING \
|
|
|
|
ChangeLog \
|
2006-01-29 05:12:08 -06:00
|
|
|
ChangeLog.2005 \
|
|
|
|
ChangeLog.2004 \
|
|
|
|
ChangeLog.2003 \
|
2005-11-20 11:09:46 -06:00
|
|
|
DOCUMENTERS \
|
2000-08-22 18:43:56 -05:00
|
|
|
HACKING \
|
2000-06-02 04:00:31 -05:00
|
|
|
INSTALL \
|
2005-11-20 11:09:46 -06:00
|
|
|
LICENSE \
|
2000-06-02 04:00:31 -05:00
|
|
|
NEWS \
|
2001-05-01 15:58:00 -05:00
|
|
|
README \
|
2006-02-10 09:04:12 -06:00
|
|
|
README.patches \
|
|
|
|
README.dependencies
|
2000-06-02 04:00:31 -05:00
|
|
|
|
2001-09-07 16:51:13 -05:00
|
|
|
m4datadir = $(datadir)/aclocal
|
|
|
|
m4data_DATA = gnucash.m4
|
|
|
|
|
2000-06-05 00:51:39 -05: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 17:40:02 -06: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 00:51:39 -05:00
|
|
|
|
|
|
|
# Don't list any directories or you'll get *everything*, including the
|
|
|
|
# CVS dirs.
|
|
|
|
|
2006-01-29 05:12:08 -06:00
|
|
|
EXTRA_DIST = \
|
2000-06-05 00:51:39 -05:00
|
|
|
gnucash.lsm \
|
2001-09-23 16:02:01 -05:00
|
|
|
gnucash.m4 \
|
2001-09-06 04:05:38 -05:00
|
|
|
gnucash-config.in \
|
2000-06-05 00:51:39 -05:00
|
|
|
make-gnucash-patch.in \
|
2001-08-17 03:28:31 -05:00
|
|
|
make-gnucash-potfiles.in \
|
2005-11-01 21:32:36 -06:00
|
|
|
macros/aqbanking.m4 \
|
|
|
|
macros/as-scrub-include.m4 \
|
2006-09-18 15:43:50 -05:00
|
|
|
macros/binreloc.m4 \
|
2005-11-01 21:32:36 -06:00
|
|
|
macros/compiler-flags.m4 \
|
2005-12-22 15:00:43 -06:00
|
|
|
macros/g-wrap.m4 \
|
2005-11-01 21:32:36 -06:00
|
|
|
macros/gnome-guile-checks.m4 \
|
|
|
|
macros/legacy_macros.m4 \
|
2006-03-07 14:50:11 -06:00
|
|
|
po/gnucash.pot \
|
2006-01-27 15:49:03 -06:00
|
|
|
po/POTFILES.in \
|
2006-02-01 16:38:41 -06:00
|
|
|
po/POTFILES.skip \
|
2001-08-19 17:47:15 -05:00
|
|
|
po/README \
|
2001-10-27 19:44:26 -05:00
|
|
|
po/glossary/da.po \
|
2001-08-19 17:47:15 -05:00
|
|
|
po/glossary/de.po \
|
2005-11-11 14:09:25 -06:00
|
|
|
po/glossary/el.po \
|
2001-10-27 19:44:26 -05:00
|
|
|
po/glossary/es.po \
|
2001-12-03 01:55:56 -06:00
|
|
|
po/glossary/es_NI-policy.txt \
|
2006-04-18 14:27:37 -05:00
|
|
|
po/glossary/fr.po \
|
2001-08-19 17:47:15 -05:00
|
|
|
po/glossary/gnc-glossary.txt \
|
2005-11-11 14:09:25 -06:00
|
|
|
po/glossary/it.po \
|
|
|
|
po/glossary/nl.po \
|
2005-11-22 13:56:05 -06:00
|
|
|
po/glossary/nb.po \
|
2005-11-11 14:09:25 -06: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 04:59:23 -05:00
|
|
|
po/glossary/txt-to-pot.sh \
|
2005-11-11 14:09:25 -06:00
|
|
|
po/glossary/vi.po \
|
|
|
|
po/glossary/zh_TW.po \
|
2001-10-27 19:44:26 -05:00
|
|
|
intltool-extract.in \
|
|
|
|
intltool-merge.in \
|
2006-06-24 13:34:35 -05:00
|
|
|
intltool-update.in \
|
|
|
|
util/gnc-svnversion
|
2001-09-06 04:05:38 -05:00
|
|
|
|
|
|
|
bin_SCRIPTS = gnucash-config
|
|
|
|
|
2001-10-03 02:08:31 -05:00
|
|
|
CLEANFILES = gnucash-config
|
2001-09-06 04:05:38 -05:00
|
|
|
|
2000-06-02 04:00:31 -05: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 17:11:26 -05:00
|
|
|
make-gnucash-patch: make-gnucash-patch.in Makefile
|
2000-06-02 04:00:31 -05:00
|
|
|
rm -f $@.tmp
|
2002-02-28 02:31:32 -06:00
|
|
|
sed < $< > $@.tmp \
|
2000-06-02 04:00:31 -05:00
|
|
|
-e 's:@-PERL-@:${PERL}:g'
|
|
|
|
chmod +x $@.tmp
|
|
|
|
mv $@.tmp $@
|
|
|
|
|
2004-06-24 17:11:26 -05:00
|
|
|
make-gnucash-potfiles: make-gnucash-potfiles.in Makefile
|
2001-08-17 03:28:31 -05:00
|
|
|
rm -f $@.tmp
|
2002-02-28 02:31:32 -06:00
|
|
|
sed < $< > $@.tmp \
|
2006-02-02 12:47:34 -06:00
|
|
|
-e 's:@-SRCDIR-@:${srcdir}:g' \
|
2001-08-17 03:28:31 -05:00
|
|
|
-e 's:@-PERL-@:${PERL}:g'
|
|
|
|
chmod +x $@.tmp
|
|
|
|
mv $@.tmp $@
|
2005-12-04 15:27:17 -06:00
|
|
|
|
2006-03-10 17:32:53 -06:00
|
|
|
lib/.links:
|
2006-01-06 15:31:22 -06:00
|
|
|
rm -f goffice gsf
|
2005-12-04 15:27:17 -06:00
|
|
|
if !HAVE_GOFFICE
|
2006-03-09 08:28:54 -06:00
|
|
|
$(LN_S) -f . goffice
|
2005-12-04 15:27:17 -06:00
|
|
|
endif
|
2006-01-06 15:31:22 -06:00
|
|
|
if !HAVE_LIBGSF
|
2006-03-09 08:28:54 -06:00
|
|
|
$(LN_S) -f $(srcdir)/lib/libgsf-1.12.3/gsf gsf
|
2006-01-06 15:31:22 -06:00
|
|
|
endif
|
2006-03-10 17:32:53 -06:00
|
|
|
touch lib/.links
|
2005-12-04 15:27:17 -06:00
|
|
|
|
2001-10-03 02:08:31 -05:00
|
|
|
DISTCLEANFILES = \
|
2002-02-28 02:31:32 -06:00
|
|
|
intltool-extract intltool-update intltool-merge\
|
2003-01-15 18:48:17 -06:00
|
|
|
cscope.files cscope.out etags.files make-gnucash-patch \
|
2005-12-04 15:27:17 -06:00
|
|
|
make-gnucash-potfiles po/.intltool-merge-cache \
|
2006-03-10 17:32:53 -06:00
|
|
|
goffice gsf lib/.links po/POTFILES.in
|
2000-06-02 04:00:31 -05:00
|
|
|
|
2000-12-11 15:26:58 -06:00
|
|
|
cscope.files:
|
2006-05-14 18:34:44 -05:00
|
|
|
find src lib -name '*.[ch]' > cscope.files
|
2000-06-02 04:00:31 -05:00
|
|
|
|
2000-12-11 15:26:58 -06:00
|
|
|
cscope.out: cscope.files
|
|
|
|
cscope -b
|
|
|
|
|
2002-11-30 02:59:19 -06:00
|
|
|
|
2006-01-03 16:22:08 -06: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 02:59:19 -06:00
|
|
|
etags:
|
2006-01-06 15:31:22 -06:00
|
|
|
if GNC_ETAGS_FILE
|
2002-11-30 02:59:19 -06:00
|
|
|
${MAKE} -f Makefile.TAGS etags.files
|
2005-11-01 21:32:36 -06:00
|
|
|
${MAKE} -f Makefile.TAGS TAGS
|
2002-11-30 02:59:19 -06:00
|
|
|
else
|
2004-12-23 12:27:33 -06:00
|
|
|
@echo "You must ./configure with --enable-etags to use etags."
|
2002-11-30 02:59:19 -06:00
|
|
|
endif
|
|
|
|
|
2001-02-24 18:42:44 -06:00
|
|
|
|
2006-01-03 16:22:08 -06:00
|
|
|
# make sure etags.files is up to date.
|
2006-01-06 15:31:22 -06:00
|
|
|
# and use the contents of etags.files to re-make tags if needed.
|
2002-11-30 02:59:19 -06:00
|
|
|
ctags:
|
2006-01-06 15:31:22 -06:00
|
|
|
if GNC_CTAGS_FILE
|
2001-12-04 16:41:38 -06:00
|
|
|
${MAKE} -f Makefile.TAGS etags.files
|
2005-11-01 21:32:36 -06:00
|
|
|
${MAKE} -f Makefile.TAGS tags
|
2001-05-15 10:52:59 -05:00
|
|
|
else
|
2002-11-30 02:59:19 -06:00
|
|
|
@echo "You must ./configure with --enable-ctags to use ctags."
|
2001-02-24 18:42:44 -06:00
|
|
|
endif
|
2001-05-15 10:52:59 -05:00
|
|
|
|
2002-11-30 02:59:19 -06:00
|
|
|
.PHONY: etags ctags
|
2002-05-14 23:48:36 -05:00
|
|
|
|
2005-11-01 21:32:36 -06:00
|
|
|
ACLOCAL_AMFLAGS = -I macros -I m4
|
2002-11-27 16:49:10 -06:00
|
|
|
|
|
|
|
.PHONY: doc
|
|
|
|
doc:
|
|
|
|
$(MAKE) -C src/doc doc
|
2003-01-06 01:15:30 -06:00
|
|
|
|
2003-01-20 22:40:19 -06:00
|
|
|
distcleancheck_listfiles = \
|
|
|
|
find -type f -exec sh -c 'test -f ${srcdir}/{} || echo {}' ';'
|
|
|
|
|
2006-01-08 16:29:47 -06:00
|
|
|
dist-hook: po/POTFILES.in
|
|
|
|
|
2006-02-01 14:30:14 -06: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-01 18:07:58 -06: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 14:30:14 -06:00
|
|
|
if test "$$e" = "yes" ; then exit 1; fi;
|
2003-01-20 22:40:19 -06:00
|
|
|
|
|
|
|
distclean-local:
|
|
|
|
|
2003-01-06 01:15:30 -06:00
|
|
|
libtool: $(LIBTOOL_DEPS)
|
|
|
|
$(SHELL) ./config.status --recheck
|
2005-12-02 15:11:49 -06:00
|
|
|
|
2006-01-05 20:49:27 -06:00
|
|
|
.PHONY: pot
|
|
|
|
pot: Makefile po/POTFILES.in
|
2005-12-03 11:00:28 -06:00
|
|
|
rm -f intl-scm/guile-strings.c
|
2006-01-05 20:49:27 -06:00
|
|
|
${MAKE} -C intl-scm
|
2005-12-03 11:00:28 -06:00
|
|
|
rm -f po/$(PACKAGE).pot
|
2006-01-05 20:49:27 -06:00
|
|
|
${MAKE} -C po $(PACKAGE).pot
|
|
|
|
|
|
|
|
|
|
|
|
BUILT_SOURCES = po/POTFILES.in
|
|
|
|
|
|
|
|
po/POTFILES.in: make-gnucash-potfiles .potfiles
|
|
|
|
./make-gnucash-potfiles > ./po/POTFILES.in
|
|
|
|
|
2006-03-09 03:39:49 -06: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-05 20:49:27 -06:00
|
|
|
.potfiles:
|
2005-12-03 11:00:28 -06:00
|
|
|
|
|
|
|
SVN = svn
|
|
|
|
XSLTPROC = xsltproc
|
|
|
|
ChangeLog.svn:
|
|
|
|
$(SVN) log -v --xml -r HEAD:11782 http://svn.gnucash.org/repo/gnucash | \
|
|
|
|
$(XSLTPROC) --stringparam strip-prefix "gnucash" \
|
|
|
|
--stringparam include-rev "yes" $(srcdir)/macros/svn2cl.xsl - > $@
|