medit/moo/medit-app/Makefile.incl

97 lines
2.8 KiB
Makefile
Raw Normal View History

2011-01-02 01:41:49 -08:00
EXTRA_DIST += medit-app/data
dist-hook: delete-junk-from-data
delete-junk-from-data:
rm -rf `find $(distdir)/medit-app/data -name '*~'`
EXTRA_DIST += \
medit-app/run-tests.sh \
medit-app/print-functions.py \
medit-app/run-tests-installed.sh \
medit-app/run-tests-uninstalled.sh
2011-01-02 01:41:49 -08:00
2011-04-16 12:31:54 -07:00
EXTRA_DIST += medit-app/medit.rc.in
EXTRA_DIST += medit-app/medit.desktop.in
if MOO_BUILD_APP
bin_PROGRAMS += medit
TESTS = medit-app/run-tests-uninstalled.sh
TESTS_ENVIRONMENT = EXEEXT=$(EXEEXT) top_srcdir=$(top_srcdir) bindir=$(bindir) PYTHON=$(MOO_PYTHON) print_functions=$(srcdir)/medit-app/print-functions.py
2011-01-04 00:12:34 -08:00
if !MOO_ENABLE_COVERAGE
TESTS_ENVIRONMENT += IGNORE_COVERAGE=1
endif
installcheck-local: run-tests-installed
run-tests-installed:
$(TESTS_ENVIRONMENT) srcdir=$(srcdir) $(srcdir)/medit-app/run-tests-installed.sh
@echo 'PASS: medit-app/run-tests-installed.sh'
2011-01-04 00:12:34 -08:00
@echo '==========='
@echo 'test passed'
@echo '==========='
if MOO_OS_UNIX
2010-09-27 01:25:15 -07:00
AM_CFLAGS += -DMOO_UNIT_TEST_DATA_DIR=\"${MOO_TOP_SRCDIR}/moo/medit-app/data\"
endif
2010-08-30 22:19:58 -07:00
medit_SOURCES = \
medit-app/mem-debug.h \
medit-app/run-tests.h \
medit-app/parse.h \
2016-10-03 00:15:41 -07:00
medit-app/main.cpp \
$(moo_sources) \
$(plugins_sources)
2010-08-30 22:19:58 -07:00
nodist_EXTRA_medit_SOURCES = \
2010-08-30 22:19:58 -07:00
dummy.cpp
medit_LDADD = $(MOO_LIBS) $(moo_libadd)
nodist_medit_SOURCES = \
$(built_moo_sources) \
$(built_plugins_sources)
2010-08-30 22:19:58 -07:00
medit_LDFLAGS =
if MOO_OS_WIN32
medit_LDFLAGS += -mwindows
endif
if MOO_OS_WIN32
CLEANFILES += medit-app/medit.rc medit-app/medit.res
medit-app/medit.rc: medit-app/medit.rc.in $(top_builddir)/config.status
2010-09-30 23:12:35 -07:00
$(AM_V_at)$(MKDIR_P) medit-app
$(AM_V_GEN)cd $(top_builddir) && ./config.status --silent --file=moo/medit-app/medit.rc
medit-app/medit.res: medit-app/medit.rc
2010-09-30 23:12:35 -07:00
$(AM_V_GEN)$(WINDRES) -i medit-app/medit.rc --input-format=rc -o medit-app/medit.res -O coff
medit_LDADD += medit-app/medit.res
endif
if MOO_OS_UNIX
desktopdir = $(datadir)/applications
desktop_DATA = medit-app/medit.desktop
2010-10-01 00:52:14 -07:00
medit-app/medit.desktop: medit-app/medit.desktop.in @MOO_INTLTOOL_INI_DEPS@
2010-09-30 23:12:35 -07:00
$(AM_V_at)$(MKDIR_P) medit-app
2010-10-01 00:52:14 -07:00
@MOO_INTLTOOL_INI_CMD@
CLEANFILES += medit-app/medit.desktop
endif MOO_OS_UNIX
2010-08-31 00:19:05 -07:00
2010-09-21 22:35:05 -07:00
iconthemedir = $(datadir)/icons/hicolor/48x48/apps
icontheme_DATA = mooutils/pixmaps/medit.png
if MOO_ENABLE_INSTALL_HOOKS
update_icon_cache = gtk-update-icon-cache -f -t $(DESTDIR)$(datadir)/icons/hicolor
install-data-hook: install-data-hook-gtk-icon-cache
install-data-hook-gtk-icon-cache:
@if echo "Updating icon cache" && $(update_icon_cache); then \
echo "Done."; \
else \
echo "*** GTK icon cache not updated. After install, run this:";\
echo $(update_icon_cache); \
fi
uninstall-hook: uninstall-data-hook-gtk-icon-cache
uninstall-data-hook-gtk-icon-cache:
@if echo "Updating icon cache" && $(update_icon_cache); then echo "Done."; else echo "Failed."; fi
endif
2011-04-16 12:31:54 -07:00
endif MOO_BUILD_APP