aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2019-03-31 00:49:57 -0700
committerAndrew Waterman <andrew@sifive.com>2019-03-31 00:50:15 -0700
commitf49618ca9d674ec7e596118f85027c4b503862ac (patch)
tree3b6ad73cbe8760309f930b743950a2853ad17668 /Makefile.in
parent61cb96df00067ba61cf3816c74c18aef5677197a (diff)
downloadriscv-isa-sim-f49618ca9d674ec7e596118f85027c4b503862ac.zip
riscv-isa-sim-f49618ca9d674ec7e596118f85027c4b503862ac.tar.gz
riscv-isa-sim-f49618ca9d674ec7e596118f85027c4b503862ac.tar.bz2
Add fesvr; only globally install fesvr headers/libsstatic-link
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in26
1 files changed, 8 insertions, 18 deletions
diff --git a/Makefile.in b/Makefile.in
index 5ddf2be..461d727 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -51,16 +51,10 @@ endif
# Installation directories
prefix := @prefix@
-enable_stow := @enable_stow@
-ifeq ($(enable_stow),yes)
- stow_pkg_dir := $(prefix)/pkgs
- INSTALLDIR ?= $(DESTDIR)$(stow_pkg_dir)/$(project_name)-$(project_ver)
-else
- INSTALLDIR ?= $(DESTDIR)$(prefix)
-endif
+INSTALLDIR ?= $(DESTDIR)$(prefix)
-install_hdrs_dir := $(INSTALLDIR)/include/$(project_name)
+install_hdrs_dir := $(INSTALLDIR)/include
install_libs_dir := $(INSTALLDIR)/lib
install_exes_dir := $(INSTALLDIR)/bin
@@ -307,7 +301,8 @@ deps += $$($(2)_deps)
test_outs += $$($(2)_test_outs)
-install_hdrs += $$(addprefix $(src_dir)/$(1)/, $$($(2)_hdrs))
+install_hdrs += $$(addprefix $(src_dir)/$(1)/, $$($(2)_install_hdrs))
+install_libs += $$(if $$($(2)_install_lib),lib$(1).a,)
install_exes += $$($(2)_install_prog_exes)
install_pcs += riscv-$(1).pc
@@ -352,11 +347,12 @@ check : check-cpp check-bin
# Installation
#-------------------------------------------------------------------------
-install-hdrs : $(install_hdrs) config.h
+install-hdrs : $(install_hdrs)
$(MKINSTALLDIRS) $(install_hdrs_dir)
- for file in $^; \
+ for file in $(subst $(src_dir)/,,$^); \
do \
- $(INSTALL_HDR) $$file $(install_hdrs_dir); \
+ $(MKINSTALLDIRS) $(install_hdrs_dir)/`dirname $$file`; \
+ $(INSTALL_HDR) $(src_dir)/$$file $(install_hdrs_dir)/`dirname $$file`; \
done
install-libs : $(install_libs)
@@ -381,12 +377,6 @@ install-pc : $(install_pcs)
done
install : install-hdrs install-libs install-exes install-pc
-ifeq ($(enable_stow),yes)
- $(MKINSTALLDIRS) $(stow_pkg_dir)
- cd $(stow_pkg_dir) && \
- $(STOW) --delete $(project_name)-* && \
- $(STOW) $(project_name)-$(project_ver)
-endif
.PHONY : install install-hdrs install-libs install-exes