Wed Jun 5 15:10:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>

* Make-dist [subdir-dirs]: Set vpath for %, not just %.c.
This commit is contained in:
Roland McGrath 1996-06-05 19:22:44 +00:00
parent aa592a63f9
commit df7c0d2312
3 changed files with 4 additions and 3 deletions

View File

@ -76,7 +76,7 @@ foo:=$(shell echo 'stub/generic +sysdeps=$(+sysdeps)'>&2)
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.

View File

@ -793,8 +793,8 @@ distinfo: Makefile $(..)Makerules
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))'

View File

@ -37,6 +37,7 @@ install-bin = localedef locale
extra-objs = $(localedef-modules:=.o) $(locale-modules:=.o) \
$(lib-modules:=.o)
subdir-dirs = programs
vpath %.c programs
vpath %.h programs