diff options
author | Roland McGrath <roland@gnu.org> | 1994-07-22 23:47:53 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1994-07-22 23:47:53 +0000 |
commit | aff8c6ebde895fb68682d493c0da5228c48f8126 (patch) | |
tree | 1a2dc914ef0e22eb6e2ea10c58edf4ab1cd41319 | |
parent | 13e79a775e871248e86fd221bb8977091c4f87a0 (diff) |
Formerly Makeconf.~50~
-rw-r--r-- | Makeconf | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -146,11 +146,15 @@ endif install: +# Each word of $(HURDLIBS) is a library name `libfoo', which is defined as +# a variable above with the complete file name to find it. +HURDLIBS-files := $(foreach var,$(HURDLIBS),$($(var))) + # Building the target # Yippee! A use for computed variable references! ifeq ($(doinst),one) -$(target): $(OBJS) $($(HURDLIBS)) $(OTHERLIBS) - $(CC) $(CFLAGS) -o $(target) $(OBJS) $($(HURDLIBS)) $(OTHERLIBS) +$(target): $(OBJS) $(HURDLIBS-files) $(OTHERLIBS) + $(CC) $(CFLAGS) -o $(target) $(OBJS) $(HURDLIBS-files) $(OTHERLIBS) endif ifeq ($(makemode),library) @@ -161,7 +165,7 @@ $(libname).a: $(OBJS) endif # Making a snapshot -distfiles := Makefile ChangeLog $(SRCS) $(LCLHDRS) DIST_FILES +distfiles := Makefile ChangeLog $(SRCS) $(LCLHDRS) $(DIST_FILES) lndist: $(distfiles) $(hurdsource)/hurd-snap/$(dir) FORCE ln $(distfiles) $(hurdsource)/hurd-snap/$(dir) @@ -175,7 +179,8 @@ endif # TAGS files ifneq ($(dir),.) TAGS: $(SRCS) $(LCLHDRS) $(REMHDRS) $(OTHERTAGS) - etags -o $@ $(addprefix -i ,$(addsuffix /TAGS,$(addprefix ../,$(HURDLIBS)))) $(SRCS) $(LCLHDRS) $(REMHDRS) $(OTHERTAGS) + etags -o $@ $(HURDLIBS:-i ../%/TAGS) $(SRCS) \ + $(LCLHDRS) $(REMHDRS) $(OTHERTAGS) endif |