1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

autotools: make VPATH builds work

Fixes #862
This commit is contained in:
Dmitry Podgorny 2018-10-31 12:37:42 +02:00
parent 9ed4b0d6f2
commit 9588fd7cc0

View File

@ -181,9 +181,9 @@ endif
otr_unittest_sources = \
tests/unittests/otr/stub_otr.c
themes_sources = themes/*
themes_sources = $(top_srcdir)/themes/*
icons_sources = icons/*
icons_sources = $(top_srcdir)/icons/*
script_sources = bootstrap.sh configure-debug
@ -204,6 +204,8 @@ core_sources += $(otr4_sources)
endif
endif
AM_CFLAGS = @AM_CFLAGS@ -I$(srcdir)/src
bin_PROGRAMS = profanity
profanity_SOURCES = $(core_sources) $(main_source)
if THEMES_INSTALL
@ -241,7 +243,7 @@ tests_unittests_unittests_LDADD = -lcmocka
#TESTS += tests/functionaltests/functionaltests
#check_PROGRAMS += tests/functionaltests/functionaltests
#tests_functionaltests_functionaltests_SOURCES = $(functionaltest_sources)
#tests_functionaltests_functionaltests_CFLAGS = -I/usr/include/tcl8.6 -I/usr/include/tcl8.5
#tests_functionaltests_functionaltests_CFLAGS = $(AM_CFLAGS) -I/usr/include/tcl8.6 -I/usr/include/tcl8.5
#tests_functionaltests_functionaltests_LDADD = -lcmocka -lstabber -lexpect -ltcl
#endif
#endif