-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
47 lines (39 loc) · 1.58 KB
/
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
45
46
47
# Copyright 2021, 2022, 2023 Galois, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
LANDO=java -jar ../assets/lando-2.0-12-Jan-2022-29a47e19-jar-with-dependencies.jar
LOBOT=/tools/lando/source/lobot/dist-newstyle/build/x86_64-linux/ghc-8.8.4/lobot-0.1/x/lobot/build/lobot/lobot
OBJS := $(patsubst %.lando,%.md,$(wildcard Lando/*.lando))
.PHONY: all validate
all: $(OBJS)
validate: validate_lando validate_lobot
validate_lando:
$(LANDO) validate Lando/RTS.lando
$(LANDO) validate Lando/acronyms.lando
$(LANDO) validate Lando/architecture.lando
$(LANDO) validate Lando/dataflow.lando
$(LANDO) validate Lando/events.lando
$(LANDO) validate Lando/glossary.lando
$(LANDO) validate Lando/hardware.lando
$(LANDO) validate Lando/instrumentation.lando
$(LANDO) validate Lando/project_requirements.lando
$(LANDO) validate Lando/requirements.lando
$(LANDO) validate Lando/test_scenarios.lando
$(LANDO) validate Lando/tool_scenarios.lando
validate_lobot:
$(LOBOT) RTS.lobot
%.md : %.lando
@echo "Converting $< to $@"
@$(LANDO) convert --to markdown $< $@
clean :
@rm -rf $(OBJS)