forked from ietf-rats-wg/draft-ietf-rats-corim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (21 loc) · 723 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
LIBDIR := lib
include $(LIBDIR)/main.mk
$(LIBDIR)/main.mk:
ifneq (,$(shell grep "path *= *$(LIBDIR)" .gitmodules 2>/dev/null))
git submodule sync
git submodule update $(CLONE_ARGS) --init
else
git clone -q --depth 10 $(CLONE_ARGS) \
-b main https://github.com/martinthomson/i-d-template $(LIBDIR)
endif
include cddl/corim-frags.mk
include cddl/comid-frags.mk
define cddl_targets
$(drafts_xml):: cddl/$(1)-autogen.cddl
cddl/$(1)-autogen.cddl: $(addprefix cddl/,$(2))
$(MAKE) -C cddl check-$(1)
endef # cddl_targets
$(eval $(call cddl_targets,corim,$(CORIM_FRAGS)))
$(eval $(call cddl_targets,comid,$(COMID_FRAGS)))
cddl/concise-swid-tag.cddl: ; $(MAKE) -C cddl $(notdir $@)
clean:: ; $(MAKE) -C cddl clean