medit/api/Makefile.am

72 lines
1.8 KiB
Makefile
Raw Normal View History

2010-12-10 03:11:38 -08:00
docparser_files = \
parsedocs.py \
mdp/__init__.py \
mdp/module.py \
mdp/docparser.py \
mdp/xmlwriter.py
2010-12-11 01:06:28 -08:00
gendefs_files = \
2010-12-10 03:11:38 -08:00
gendefs.py \
mpi/__init__.py \
mpi/module.py \
mpi/defswriter.py
2010-12-11 01:06:28 -08:00
genlua_files = \
genlua.py \
mpi/__init__.py \
mpi/module.py \
mpi/luawriter.py
2010-12-23 16:24:52 -08:00
gendocs_files = \
gendocs.py \
2010-12-25 15:16:51 -08:00
gendocbook.py \
2010-12-23 16:24:52 -08:00
mpi/__init__.py \
mpi/module.py \
2010-12-25 15:16:51 -08:00
mpi/docbookwriter.py
2010-12-23 16:24:52 -08:00
2010-12-10 03:11:38 -08:00
EXTRA_DIST = \
$(docparser_files) \
2010-12-11 01:06:28 -08:00
$(gendefs_files) \
$(genlua_files) \
2010-12-23 16:24:52 -08:00
$(gendocs_files) \
2010-12-11 00:51:38 -08:00
sourcefiles.mak \
2010-12-27 01:30:11 -08:00
moo.xml \
gtk.xml
2010-12-10 03:11:38 -08:00
BUILT_SOURCES =
if MOO_DEV_MODE
include sourcefiles.mak
BUILT_SOURCES += moo.xml.stamp
2010-12-11 01:06:28 -08:00
moo.xml.stamp: $(docparser_files) $(source_files)
2010-12-14 22:14:27 -08:00
$(AM_V_GEN)$(PYTHON) $(srcdir)/parsedocs.py \
2010-12-10 03:11:38 -08:00
--source-dir $(top_srcdir)/moo/mooapp \
--source-dir $(top_srcdir)/moo/mooedit \
--source-dir $(top_srcdir)/moo/moofileview \
--source-dir $(top_srcdir)/moo/mooutils \
--source-dir $(top_srcdir)/moo/plugins/usertools \
--source-dir $(top_srcdir)/moo/plugins/support \
--source-file $(top_srcdir)/moo/moolua/medit-lua.cpp \
--source-file $(top_srcdir)/moo/moolua/medit-lua.h \
2010-12-10 03:11:38 -08:00
--skip 'moofontsel.*' \
2010-12-27 01:30:11 -08:00
--output moo.xml.tmp
$(AM_V_at)cmp -s moo.xml.tmp $(srcdir)/moo.xml || mv moo.xml.tmp $(srcdir)/moo.xml
2010-12-14 22:14:27 -08:00
$(AM_V_at)rm -f moo.xml.tmp
$(AM_V_at)echo stamp > moo.xml.stamp
2010-12-10 03:11:38 -08:00
2010-12-27 01:30:11 -08:00
BUILT_SOURCES += gtk.xml.stamp
gtk.xml.stamp: $(docparser_files) $(top_srcdir)/moo/moolua/gtk-api.c $(top_srcdir)/moo/moolua/gtk-api.h
$(AM_V_at)$(MKDIR_P) moolua
$(AM_V_GEN)$(PYTHON) $(srcdir)/parsedocs.py \
--source-file $(top_srcdir)/moo/moolua/gtk-api.c \
--source-file $(top_srcdir)/moo/moolua/gtk-api.h \
--module Gtk \
--output gtk.xml.tmp
$(AM_V_at)cmp -s gtk.xml.tmp $(srcdir)/gtk.xml || mv gtk.xml.tmp $(srcdir)/gtk.xml
$(AM_V_at)rm -f gtk.xml.tmp
$(AM_V_at)echo stamp > gtk.xml.stamp
2010-12-10 03:11:38 -08:00
endif