Project

General

Profile

« Previous | Next » 

Revision 06358836

Added by Arnaud Dieumegard over 6 years ago

Added makefile to launch tests

View differences:

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

  
12
RM = /bin/rm
13

  
14
test: $(DSTS_VHD)	$(DSTS_MVHD) $(DSTS_LUS)
15

  
16
%.json.vhd : %.json
17
	-$(EXEC) $(OPTIONS) $(GEN_VHDL) $(OUTPUT) $@ $<
18

  
19
%.mvhd : %.json
20
	-$(EXEC) $(OPTIONS) $(GEN_MINIVHDL) $(OUTPUT) $@ $<
21

  
22
%.lus : %.json
23
	-$(EXEC) $(OPTIONS) $(GEN_LUS) $(OUTPUT) $@ $<
24

  
25
clean:
26
	@$(RM) -f $(DSTS_VHD) $(DSTS_MVHD) $(DSTS_LUS)

Also available in: Unified diff