Project

General

Profile

Revision 33a42553 vhdl_json/Makefile

View differences:

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

  
5 10
RM = /bin/rm
6 11

  
7
test: $(DSTS)
12
test: $(DSTS_VHD)	$(DSTS_MVHD)
8 13

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

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

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

Also available in: Unified diff