From e99c7a3bf08adf63226173c440e7511f80ba2e62 Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Sat, 25 Sep 2021 10:30:42 +0200 Subject: [PATCH] Test: Fix dist Also do proper clean. --- test/Makefile.am | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/Makefile.am b/test/Makefile.am index f804f39..b46bf99 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -2,6 +2,8 @@ # noinst_PROGRAMS = $(GTESTS) +CLEANFILES = file.c img_save-*.* + GTEST_LIBS = -lgtest -lstdc++ GTESTS = test_file @@ -21,9 +23,11 @@ noinst_PROGRAMS = $(GTESTS) LIBS = -L$(top_builddir)/src/lib -lImlib2 LIBS += $(GTEST_LIBS) -vpath %.c $(top_srcdir)/src/lib +%.c: $(top_srcdir)/src/lib/%.c + ln -s $< $@ -test_file_SOURCES = test_file.cpp file.c +test_file_SOURCES = test_file.cpp +nodist_test_file_SOURCES = file.c test_file_LDADD = $(LIBS) test_load_SOURCES = test_load.cpp