Refix bug causing plover_get_program_directory() to fail when executable is in a root directory
1 AM_CFLAGS=-g $(PLOVER_GTK_CFLAGS)
2 INCLUDES=-I$(top_srcdir)
3 LDADD=../../plover-gtk/libplover-gtk.la ../../plover/libplover.la \
10 TESTS = $(txt_tests) $(gui_tests:=.xvfb)
11 TESTS_ENVIRONMENT = gtk_srcdir="$(top_srcdir)/plover-gtk"
12 TEST_EXTENSIONS += .xvfb
13 XVFB_LOG_COMPILER = $(top_srcdir)/tests/xvfb-run
14 XVFB_LOG_FLAGS = --auto-servernum --auth-file .Xauthority
16 check_PROGRAMS = $(txt_tests) $(gui_tests)
18 txt_tests = test-packagefilestore test-packagestore test-stockicons
19 gui_tests = test-transactionhelper
21 test_packagefilestore_SOURCES = test-packagefilestore.c treemodel.c treemodel.h
22 test_packagestore_SOURCES = test-packagestore.c treemodel.c treemodel.h
23 test_stockicons_DEPENDENCIES = \
24 icons/hicolor/scalable/mimetypes/application-x-redhat-package-manager.svg
27 $(AM_V_GEN)echo '#!/bin/sh' > $@
28 $(AM_V_GEN)echo '$(LOG_COMPILER) $(LOG_FLAGS) ./$*' >> $@
29 $(AM_V_GEN)chmod +x $@
31 icons/hicolor/scalable/mimetypes/application-x-redhat-package-manager.svg: \
32 $(top_srcdir)/plover-open/mimetypes-application-x-rpm.svg
33 $(PLOVER_V_SKIP)mkdir -p icons/hicolor/scalable/mimetypes \
34 icons/hicolor/24x24/mimetypes icons/hicolor/48x48/mimetypes
36 $(AM_V_GEN)rsvg -w 24 -h 24 -f png $< \
37 icons/hicolor/24x24/mimetypes/application-x-redhat-package-manager.png
38 $(AM_V_GEN)rsvg -w 48 -h 48 -f png $< \
39 icons/hicolor/48x48/mimetypes/application-x-redhat-package-manager.png
43 @VALGRIND_CHECK_RULES@
44 VALGRIND_SUPPRESSIONS_FILES = ../glib.supp
47 rm -rf icons razor-test-dir-* $(gui_tests:=.xvfb) .Xauthority