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) foo:=$(shell echo '+sysdep-names=$(+sysdep-names)' >&2)
ifdef subdir-dirs ifdef subdir-dirs
vpath %.c $(addprefix $(subdir)/,$(subdir-dirs)) vpath % $(addprefix $(subdir)/,$(subdir-dirs))
endif endif
# Now find all the sysdep versions of those files. # Now find all the sysdep versions of those files.

View File

@ -793,8 +793,8 @@ distinfo: Makefile $(..)Makerules
define distinfo-vars define distinfo-vars
rm -f $@.new rm -f $@.new
$(foreach var,subdir subdir-dirs sources elided-routines headers distribute \ $(foreach var,subdir subdir-dirs sources elided-routines sysdep_routines \
dont_distribute generated others tests \ headers distribute dont_distribute generated others tests \
extra-libs $(extra-libs:%=%-routines), extra-libs $(extra-libs:%=%-routines),
echo >> $@.new '$(var) := $($(var))') echo >> $@.new '$(var) := $($(var))')
echo >> $@.new 'sources += $$(addsuffix .c,$$(elided-routines))' 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) \ extra-objs = $(localedef-modules:=.o) $(locale-modules:=.o) \
$(lib-modules:=.o) $(lib-modules:=.o)
subdir-dirs = programs
vpath %.c programs vpath %.c programs
vpath %.h programs vpath %.h programs