From d3a044db8e476744007da3246fd5e4a86efeff5a Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sun, 21 Feb 2016 12:57:30 +0100 Subject: [PATCH] Fixing make dist after merge of make cleanups. --- Makefile.am | 46 +++++++++++++++++++++++++++++++++++++++++++++ test/history-test.c | 2 ++ 2 files changed, 48 insertions(+) diff --git a/Makefile.am b/Makefile.am index 61a71247..084dbca4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -137,6 +137,16 @@ update-manpage: $(top_srcdir)/doc/rofi-manpage.markdown ## check_PROGRAMS=rofi_test textbox_test helper_test +rofi_test_CFLAGS=\ + $(AM_CFLAGS)\ + $(glib_CFLAGS)\ + -I$(top_srcdir)/include/\ + -I$(top_srcdir)/config/\ + -I$(top_builddir)/ + +rofi_test_LDADD=\ + $(glib_LIBS) + rofi_test_SOURCES=\ source/history.c\ @@ -148,6 +158,24 @@ rofi_test_SOURCES=\ include/history.h\ test/history-test.c +textbox_test_CFLAGS=\ + $(AM_CFLAGS)\ + $(glib_CFLAGS)\ + $(pango_CFLAGS)\ + $(x11_CFLAGS)\ + $(xinerama_CFLAGS)\ + $(cairo_CFLAGS)\ + -I$(top_srcdir)/include/\ + -I$(top_srcdir)/config/\ + -I$(top_builddir)/ + +textbox_test_LDADD=\ + $(glib_LIBS)\ + $(pango_LIBS)\ + $(x11_LIBS)\ + $(xinerama_LIBS)\ + $(cairo_LIBS) + textbox_test_SOURCES=\ source/widget.c\ source/textbox.c\ @@ -180,6 +208,24 @@ helper_test_SOURCES=\ source/xrmoptions.c\ test/helper-test.c +helper_test_CFLAGS=\ + $(AM_CFLAGS)\ + $(glib_CFLAGS)\ + $(pango_CFLAGS)\ + $(x11_CFLAGS)\ + $(xinerama_CFLAGS)\ + $(cairo_CFLAGS)\ + -I$(top_srcdir)/include/\ + -I$(top_srcdir)/config/\ + -I$(top_builddir)/ + +helper_test_LDADD=\ + $(glib_LIBS)\ + $(pango_LIBS)\ + $(x11_LIBS)\ + $(xinerama_LIBS)\ + $(cairo_LIBS) + TESTS=\ rofi_test\ helper_test diff --git a/test/history-test.c b/test/history-test.c index e095c8f7..b1480ec0 100644 --- a/test/history-test.c +++ b/test/history-test.c @@ -81,6 +81,8 @@ static void history_test ( void ) TASSERT ( length == 25 ); g_strfreev ( retv ); + + unlink ( file ); } int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv )