-
Notifications
You must be signed in to change notification settings - Fork 9
/
module.mk
32 lines (25 loc) · 832 Bytes
/
module.mk
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
MARKDOWN_FILE = index.rmd
MARKDOWN_TARGET = ../../content/post/$(NAME)/index.md
MARKDOWN_TARGET_PATH = ../../content/post/$(NAME)
ifdef RUST_LOG
RUST_LEVEL := $(RUST_LOG)
else
RUST_LEVEL := info
endif
ifdef ELEKTRON_DEBUG
ELEKTRON_DEBUG := $(ELEKTRON_DEBUG)
else
ELEKTRON_DEBUG := false
endif
.PHONY: all help test doc clean
all: $(MARKDOWN_TARGET)
$(MARKDOWN_TARGET): $(MARKDOWN_FILE)
ELEKTRON_DEBUG=$(ELEKTRON_DEBUG) RUST_LOG=$(RUST_LEVEL) MPLBACKEND=module://elektron elektron convert --input $< --output $@
clean:
rm -rf $(MARKDOWN_TARGET_PATH)
distclean: clean
$(foreach var,$(SUBMODULES), rm -rf $(var)/$(var)-backups;)
$(foreach var,$(SUBMODULES), rm -rf $(var)/$(var).kicad_prl;)
$(foreach var,$(SUBMODULES), rm -rf $(var)/fp-info-cache;)
$(foreach var,$(SUBMODULES), rm -rf $(var)/sym-lib-table;)
$(V).SILENT: