]> Lady’s Gitweb - Shushe/commitdiff
Support multiple SRCDIR in INCLUDEDIR default
authorLady <redacted>
Thu, 11 Jul 2024 01:45:04 +0000 (21:45 -0400)
committerLady <redacted>
Thu, 11 Jul 2024 01:45:58 +0000 (21:45 -0400)
If multiple `SRCDIR`s are provided, the default `INCLUDEDIR` needs to
append `/includes` to each, not simply the last one.

GNUmakefile

index 952aebd6f4d67ef5681072377004e94f65994832..5237a2d813d967577395424b23592a7495a638fa 100644 (file)
@@ -149,7 +149,7 @@ SRCDIR := sources
 # Multiple directories can be given so long as files with the same name do not exist in each.
 #
 # These can be inside of `SRCDIR´ directories if desired.
-INCLUDEDIR := $(SRCDIR)/includes
+INCLUDEDIR := $(foreach dir,$(SRCDIR),$(dir)/includes)
 
 # The directory in which to generate temporary buildfiles.
 #
This page took 0.068215 seconds and 4 git commands to generate.