-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
45 lines (33 loc) · 997 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
COQDOC = coqdoc -g -toc
OLLIBSDIR = ollibs
MICROYALLADIR = microyalla
YALLADIR = yalla
YALLAHTMLDIR = yalla_html
YALLAHTMLFILE = yalla_html.tgz
OLLIBSVFILES = $(wildcard $(OLLIBSDIR)/*.v)
MICROYALLAVFILES = $(wildcard $(MICROYALLADIR)/*.v)
YALLAVFILES = $(wildcard $(YALLADIR)/*.v)
all: ollibs microyalla yalla doc
ollibs:
cd $(OLLIBSDIR) && $(MAKE)
microyalla:
cd $(MICROYALLADIR) && $(MAKE)
yalla:
cd $(YALLADIR) && $(MAKE)
doc:
cd $(OLLIBSDIR) && $(MAKE) $@
cd $(MICROYALLADIR) && $(MAKE) $@
cd $(YALLADIR) && $(MAKE) $@
cd $(YALLADIR) && $(COQDOC) $(addprefix ../,$(OLLIBSVFILES)) $(addprefix ../,$(YALLAVFILES))
htmlfiles: doc
rm -f $(YALLAHTMLFILE)
mkdir $(YALLAHTMLDIR)
cp $(YALLADIR)/*.html $(YALLAHTMLDIR)/
cp $(YALLADIR)/coqdoc.css $(YALLAHTMLDIR)/
tar czf $(YALLAHTMLFILE) $(YALLAHTMLDIR)
rm -rf $(YALLAHTMLDIR)
clean:
cd $(OLLIBSDIR) && $(MAKE) $@
cd $(MICROYALLADIR) && $(MAKE) $@
cd $(YALLADIR) && $(MAKE) $@
.PHONY: ollibs microyalla yalla clean