diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2013-04-19 23:33:40 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2013-04-19 23:33:40 -0700 |
commit | 6c19a775f909f517681645ddbe8cab52fe37af1e (patch) | |
tree | 3e7efcbffbb802873fe720e2464a9d0063dea769 /Makefile.in | |
parent | 24cf9ccbb53781721c66d7a531f229ad5ca9f324 (diff) | |
download | spike-6c19a775f909f517681645ddbe8cab52fe37af1e.zip spike-6c19a775f909f517681645ddbe8cab52fe37af1e.tar.gz spike-6c19a775f909f517681645ddbe8cab52fe37af1e.tar.bz2 |
remove circular dependence in Makefile
Thanks, Sebastien!
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index 6c822f1..749062b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -294,7 +294,9 @@ deps += $$($(2)_deps) test_outs += $$($(2)_test_outs) -install_hdrs += $$(addprefix $(src_dir)/$(1)/, $$($(2)_hdrs)) +vpath %.h $$(src_dir)/$$(1) + +install_hdrs += $$($(2)_hdrs) install_libs += lib$(1).a install_exes += $$($(2)_install_prog_exes) @@ -329,7 +331,7 @@ check : $(test_outs) install-hdrs : $(install_hdrs) $(MKINSTALLDIRS) $(install_hdrs_dir) - for file in $(install_hdrs); \ + for file in $^; \ do \ $(INSTALL_HDR) $$file $(install_hdrs_dir); \ done |