Skip to content

Commit c4b2e10

Browse files
committed
Do not duplicate sources for tests, subdir-objects handles it
1 parent 1263f95 commit c4b2e10

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

Makefile.am

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ python_exec2c_CPPFLAGS = \
1515
-DSYSCONFDIR=\"${sysconfdir}\" \
1616
-DNDEBUG
1717

18-
tests_python_exec2c_SOURCES = tests/python-exec.c
18+
tests_python_exec2c_SOURCES = src/python-exec.c
1919
# TODO: create dedicated sysconfdir for tests
2020
tests_python_exec2c_CPPFLAGS = \
2121
-DPYTHON_SCRIPTROOT=\"tests\" \
@@ -24,11 +24,10 @@ tests_python_exec2c_CPPFLAGS = \
2424

2525
tests_print_bufsiz_SOURCES = src/print-bufsiz.c
2626

27-
BUILT_SOURCES = tests/python-exec.c
2827
EXTRA_DIST = src/python-exec.in config/python-exec.conf.example
2928
CLEANFILES = python-exec2 \
3029
tests/python-exec tests/python-exec2c \
31-
tests/etc/python-exec/python-exec.conf tests/python-exec.c \
30+
tests/etc/python-exec/python-exec.conf \
3231
tests/*.tmp* tests/*/*.tmp*
3332

3433
python-exec2: src/python-exec.in config.status
@@ -46,10 +45,6 @@ tests/etc/python-exec/python-exec.conf: tests/gen-config.sh config.status
4645
chmod a-w $@.tmp
4746
mv $@.tmp $@
4847

49-
tests/python-exec.c: src/python-exec.c
50-
$(MKDIR_P) tests
51-
cp $< $@
52-
5348
tests/python-exec: src/python-exec.in config.status
5449
$(MKDIR_P) tests
5550
rm -f $@ $@.tmp

0 commit comments

Comments
 (0)