From ddb08600f9ddbb18b1be8fe970ee074b1efb5dd7 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Fri, 3 Jun 2022 20:39:59 +0300 Subject: [PATCH] Main: Makefile.am: reorder code --- Makefile.am | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Makefile.am b/Makefile.am index 4adec9c..a979da4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -8,6 +8,9 @@ AM_CFLAGS = \ -I$(top_builddir)/include \ -I$(top_srcdir)/include +CLEANFILES = +TESTS = + lib_LIBRARIES = libkernaux.a noinst_PROGRAMS = $(TESTS) @@ -16,10 +19,6 @@ libkernaux_a_SOURCES = \ src/assert.c \ src/libc.c -CLEANFILES = \ - tests/test_printf_fmt_gen.c \ - tests/test_printf_gen.c - if ASM_I386 libkernaux_a_SOURCES += src/asm/i386.S endif @@ -32,8 +31,6 @@ if ASM_X86_64 libkernaux_a_SOURCES += src/asm/x86_64.S endif -TESTS = - if ENABLE_TESTS TESTS += \ examples/assert_guards \ @@ -137,6 +134,7 @@ TESTS += \ examples/snprintf_va endif if ENABLE_TESTS_PYTHON +CLEANFILES += tests/test_printf_gen.c TESTS += tests/test_printf_gen endif endif @@ -147,6 +145,7 @@ if ENABLE_TESTS TESTS += examples/printf_fmt endif if ENABLE_TESTS_PYTHON +CLEANFILES += tests/test_printf_fmt_gen.c TESTS += tests/test_printf_fmt_gen endif endif