mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-22 17:06:36 -06:00
157676f39b
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12251 57a11ea4-9604-0410-9ed3-97b8803252fd
177 lines
3.9 KiB
Makefile
177 lines
3.9 KiB
Makefile
|
|
SUBDIRS = . doc lib src intl-scm po rpm accounts
|
|
|
|
docdir = ${GNC_DOC_INSTALL_DIR}
|
|
|
|
GNC_CTAGS_FILE = @GNC_CTAGS_FILE@
|
|
GNC_ETAGS_FILE = @GNC_ETAGS_FILE@
|
|
|
|
noinst_DATA = make-gnucash-patch make-gnucash-potfiles .goffice-links
|
|
|
|
doc_DATA = \
|
|
AUTHORS \
|
|
COPYING \
|
|
ChangeLog \
|
|
DOCUMENTERS \
|
|
HACKING \
|
|
INSTALL \
|
|
LICENSE \
|
|
NEWS \
|
|
README \
|
|
README.patches
|
|
|
|
m4datadir = $(datadir)/aclocal
|
|
m4data_DATA = gnucash.m4
|
|
|
|
# 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,
|
|
# 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.
|
|
|
|
# Don't list any directories or you'll get *everything*, including the
|
|
# CVS dirs.
|
|
|
|
EXTRA_DIST = ChangeLog.1 \
|
|
HACKING \
|
|
README.patches \
|
|
gnucash.lsm \
|
|
gnucash.m4 \
|
|
gnucash-config.in \
|
|
make-gnucash-patch.in \
|
|
make-gnucash-potfiles.in \
|
|
macros/aqbanking.m4 \
|
|
macros/as-scrub-include.m4 \
|
|
macros/autogen.sh \
|
|
macros/compiler-flags.m4 \
|
|
macros/g-wrap.m4 \
|
|
macros/gnome-guile-checks.m4 \
|
|
macros/legacy_macros.m4 \
|
|
po/README \
|
|
po/glossary/da.po \
|
|
po/glossary/de.po \
|
|
po/glossary/el.po \
|
|
po/glossary/es.po \
|
|
po/glossary/es_NI-policy.txt \
|
|
po/glossary/gnc-glossary.txt \
|
|
po/glossary/it.po \
|
|
po/glossary/nl.po \
|
|
po/glossary/nb.po \
|
|
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 \
|
|
po/glossary/txt-to-pot.sh \
|
|
po/glossary/vi.po \
|
|
po/glossary/zh_TW.po \
|
|
intltool-extract.in \
|
|
intltool-merge.in \
|
|
intltool-update.in
|
|
|
|
bin_SCRIPTS = gnucash-config
|
|
|
|
CLEANFILES = gnucash-config
|
|
|
|
## 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-patch: make-gnucash-patch.in Makefile
|
|
rm -f $@.tmp
|
|
sed < $< > $@.tmp \
|
|
-e 's:@-PERL-@:${PERL}:g'
|
|
chmod +x $@.tmp
|
|
mv $@.tmp $@
|
|
|
|
make-gnucash-potfiles: make-gnucash-potfiles.in Makefile
|
|
rm -f $@.tmp
|
|
sed < $< > $@.tmp \
|
|
-e 's:@-PERL-@:${PERL}:g'
|
|
chmod +x $@.tmp
|
|
mv $@.tmp $@
|
|
./make-gnucash-potfiles > ./po/POTFILES.in
|
|
|
|
.goffice-links:
|
|
rm -f goffice
|
|
if !HAVE_GOFFICE
|
|
ln -sf . goffice
|
|
endif
|
|
touch .goffice-links
|
|
|
|
DISTCLEANFILES = \
|
|
intltool-extract intltool-update intltool-merge\
|
|
cscope.files cscope.out etags.files make-gnucash-patch \
|
|
make-gnucash-potfiles po/.intltool-merge-cache \
|
|
goffice .goffice-links po/POTFILES.in
|
|
|
|
cscope.files:
|
|
find . -name '*.[ch]' > cscope.files
|
|
|
|
cscope.out: cscope.files
|
|
cscope -b
|
|
|
|
if GNC_ETAGS_FILE
|
|
|
|
# make sure etags.files is up to date.
|
|
# and use the contents of etags.files to re-make TAGS if needed.
|
|
etags:
|
|
${MAKE} -f Makefile.TAGS etags.files
|
|
${MAKE} -f Makefile.TAGS TAGS
|
|
|
|
else
|
|
|
|
etags:
|
|
@echo "You must ./configure with --enable-etags to use etags."
|
|
|
|
endif
|
|
|
|
if GNC_CTAGS_FILE
|
|
|
|
# make sure etags.files is up to date.
|
|
# and use the contents of etags.files to re-make TAGS if needed.
|
|
ctags:
|
|
${MAKE} -f Makefile.TAGS etags.files
|
|
${MAKE} -f Makefile.TAGS tags
|
|
|
|
else
|
|
|
|
ctags:
|
|
@echo "You must ./configure with --enable-ctags to use ctags."
|
|
|
|
endif
|
|
|
|
.PHONY: etags ctags
|
|
|
|
ACLOCAL_AMFLAGS = -I macros -I m4
|
|
|
|
.PHONY: doc
|
|
doc:
|
|
$(MAKE) -C src/doc doc
|
|
|
|
distcleancheck_listfiles = \
|
|
find -type f -exec sh -c 'test -f ${srcdir}/{} || echo {}' ';'
|
|
|
|
distcheck-hook:
|
|
|
|
distclean-local:
|
|
|
|
libtool: $(LIBTOOL_DEPS)
|
|
$(SHELL) ./config.status --recheck
|
|
|
|
pot: Makefile
|
|
rm -f intl-scm/guile-strings.c
|
|
make -C intl-scm
|
|
rm -f po/$(PACKAGE).pot
|
|
make -C po $(PACKAGE).pot
|
|
|
|
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 - > $@
|