Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / Makefile @ 33a42553

History | View | Annotate | Download (421 Bytes)

1
EXEC=lustrei
2
OPTIONS=-vhdl -print
3
GEN_VHDL=-gen_vhdl
4
GEN_MINIVHDL=-gen_minivhdl
5
OUTPUT=-o
6
SRCS := $(shell find vhdl_files/ -type f -name '*.json')
7
DSTS_VHD=$(SRCS:.json=.json.vhd)
8
DSTS_MVHD=$(SRCS:.json=.mvhd)
9

    
10
RM = /bin/rm
11

    
12
test: $(DSTS_VHD)	$(DSTS_MVHD)
13

    
14
%.json.vhd : %.json
15
	$(EXEC) $(OPTIONS) $(GEN_VHDL) $(OUTPUT) $@ $<
16

    
17
%.mvhd : %.json
18
	$(EXEC) $(OPTIONS) $(GEN_MINIVHDL) $(OUTPUT) $@ $<
19

    
20
clean:
21
	@$(RM) -f $(DSTS)