* Make-dist [subdir-dirs]: Set vpath for %, not just %.c.
foo:=$(shell echo '+sysdep-names=$(+sysdep-names)' >&2)
ifdef subdir-dirs
-vpath %.c $(addprefix $(subdir)/,$(subdir-dirs))
+vpath % $(addprefix $(subdir)/,$(subdir-dirs))
endif
# Now find all the sysdep versions of those files.
define distinfo-vars
rm -f $@.new
-$(foreach var,subdir subdir-dirs sources elided-routines headers distribute \
- dont_distribute generated others tests \
+$(foreach var,subdir subdir-dirs sources elided-routines sysdep_routines \
+ headers distribute dont_distribute generated others tests \
extra-libs $(extra-libs:%=%-routines),
echo >> $@.new '$(var) := $($(var))')
echo >> $@.new 'sources += $$(addsuffix .c,$$(elided-routines))'
extra-objs = $(localedef-modules:=.o) $(locale-modules:=.o) \
$(lib-modules:=.o)
+subdir-dirs = programs
vpath %.c programs
vpath %.h programs