Skip to content

Commit 4c27fe4

Browse files
committed
Makefile: add install-local target that installs the packages in a local db
1 parent f1fac13 commit 4c27fe4

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
dist/
2+
package.conf.d/

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
.PHONY: all
22
all: derive
33

4+
PACKAGEDB=package.conf.d
5+
6+
.PHONY: packagedb
7+
packagedb: $(PACKAGEDB)
8+
$(PACKAGEDB):
9+
ghc-pkg init $(PACKAGEDB)
10+
11+
install-local:
12+
cd netlist && cabal install --prefix=$(PWD) --package-db=../$(PACKAGEDB)
13+
cd netlist-to-vhdl && cabal install --prefix=$(PWD) --package-db=../$(PACKAGEDB)
14+
cd verilog && cabal install --prefix=$(PWD) --package-db=../$(PACKAGEDB)
15+
cd netlist-to-verilog && cabal install --prefix=$(PWD) --package-db=../$(PACKAGEDB)
16+
417
.PHONY: derive
518
# run derive on every file that has derived instances in it.
619
# generated boilerplate code for instances of Binary.

0 commit comments

Comments
 (0)