diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2022-01-08 08:00:46 +0100 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2022-01-08 08:00:46 +0100 |
commit | 3db55b30082047a7a1b80c718bdb8d8e3fa85848 (patch) | |
tree | 494df7a216c82222bfe3450d8aaa0bf020c9a28e | |
parent | f6fdc36d556173bc18f5e3c34f1ad18c925f72bc (diff) | |
download | ghdl-yosys-plugin-3db55b30082047a7a1b80c718bdb8d8e3fa85848.tar.gz ghdl-yosys-plugin-3db55b30082047a7a1b80c718bdb8d8e3fa85848.tar.bz2 ghdl-yosys-plugin-3db55b30082047a7a1b80c718bdb8d8e3fa85848.zip |
Allow overriding plugin installation directory
Currently we install the plugin into /usr/share since this is where yosys
loads from, however this violates the FHS as only architecture-independent
data is supposed to be installed in share.
Until this is reolved properly at least allow overriding the plugin
installation directory explicitly using make variables on the command line.
See YosysHQ/yosys#3151
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -12,7 +12,7 @@ LIBGHDL_LIB:=$(shell $(GHDL) --libghdl-library-path) LIBGHDL_INC:=$(shell $(GHDL) --libghdl-include-dir) ALL_LDFLAGS=$(LIBGHDL_LIB) -Wl,-rpath,$(dir $(LIBGHDL_LIB)) $(LDFLAGS) -DATDIR:=$(shell $(YOSYS_CONFIG) --datdir) +PLUGINDIR:=$(shell $(YOSYS_CONFIG) --datdir)/plugins ALL_CFLAGS=-fPIC -DYOSYS_ENABLE_GHDL -I$(LIBGHDL_INC) $(CFLAGS) @@ -30,8 +30,8 @@ clean: force $(RM) -f ghdl.$(SOEXT) ghdl.o install: ghdl.$(SOEXT) - $(YOSYS_CONFIG) --exec mkdir -p $(DESTDIR)$(DATDIR)/plugins - $(YOSYS_CONFIG) --exec cp $< $(DESTDIR)$(DATDIR)/plugins + $(YOSYS_CONFIG) --exec mkdir -p $(DESTDIR)$(PLUGINDIR) + $(YOSYS_CONFIG) --exec cp $< $(DESTDIR)$(PLUGINDIR) -include src/ghdl.d |