]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
build: Rename all_objs -> dep_objs. next
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 24 Jun 2023 21:10:09 +0000 (23:10 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 18 Mar 2024 17:38:54 +0000 (18:38 +0100)
The old name is misleading since there are additional objects which
correspond to the C files generated by lopsub. Those use different
dependency tracking.

Simplify the code a bit by creating the list in one step.

Makefile.real
t/makefile.test

index 117d72fa0f5dcfcdce4b5a1a7d8e61885605a8b4..92a5724b3cc6543553dcaf8dbdf6385e4169e41e 100644 (file)
@@ -287,11 +287,10 @@ ifeq ($(HAVE_READLINE),yes)
 endif
 
 # sort removes duplicate words, which is all we need here
-all_objs := $(sort $(recv_objs) $(filter_objs) $(client_objs) $(gui_objs) \
+dep_objs := $(sort $(recv_objs) $(filter_objs) $(client_objs) $(gui_objs) \
        $(audiod_objs) $(audioc_objs) $(mixer_objs) $(server_objs) \
-       $(write_objs) $(afh_objs) $(play_objs))
-deps := $(addprefix $(dep_dir)/, $(all_objs:.o=.d))
-deps += $(addprefix $(dep_dir)/, mp.bison.d mp.flex.d)
+       $(write_objs) $(afh_objs) $(play_objs) mp.bison mp.flex)
+deps := $(addprefix $(dep_dir)/, $(dep_objs:.o=.d))
 
 afh_objs += afh.lsg.o
 audioc_objs += audioc.lsg.o
index 904c779353bbd5e08dfab8e449e607dead8a622c..1ef3ac696f42a78df6942cccd34958341b9044c6 100644 (file)
@@ -7,7 +7,7 @@ test_options := --executables-dir $(shell pwd)
 test_options += --results-dir $(results_dir)
 test_options += --trash-dir $(trash_dir)
 test_options += --executables "$(prefixed_executables)"
-test_options += --objects "$(basename $(all_objs))"
+test_options += --objects "$(basename $(dep_objs))"
 test_options += --man-dir $(man_dir)
 
 ifdef V