Browse code

Add a documentation generation script

Pawel Jablonski authored on 11/06/2024 09:38:58
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,47 @@
1
+TOOLS_UROM_DOC_DIR = ../tools/urom/doc
2
+TOOLS_ASM_DOC_DIR = ../tools/asm/doc
3
+TOOLS_EMU_DOC_DIR = ../tools/emu/doc
4
+IO_FW_DOC_DIR = ../io/fw/doc
5
+
6
+.PHONY: all
7
+all: tools_urom tools_asm tools_emu io_fw
8
+
9
+.PHONY: tools_urom
10
+tools_urom: tools
11
+	rm -rf tools/urom
12
+	$(MAKE) -C $(TOOLS_UROM_DOC_DIR)
13
+	cp -R $(TOOLS_UROM_DOC_DIR)/html tools/urom
14
+
15
+.PHONY: tools_asm
16
+tools_asm: tools
17
+	rm -rf tools/asm
18
+	$(MAKE) -C $(TOOLS_ASM_DOC_DIR)
19
+	cp -R $(TOOLS_ASM_DOC_DIR)/html tools/asm
20
+
21
+.PHONY: tools_emu
22
+tools_emu: tools
23
+	rm -rf tools/emu
24
+	$(MAKE) -C $(TOOLS_EMU_DOC_DIR)
25
+	cp -R $(TOOLS_EMU_DOC_DIR)/html tools/emu
26
+
27
+.PHONY: io_fw
28
+io_fw: io
29
+	rm -rf io/fw
30
+	$(MAKE) -C $(IO_FW_DOC_DIR)
31
+	cp -R $(IO_FW_DOC_DIR)/html io/fw
32
+
33
+tools:
34
+	mkdir -p tools
35
+
36
+io:
37
+	mkdir -p io
38
+
39
+.PHONY: clean
40
+clean:
41
+	$(MAKE) -C $(TOOLS_UROM_DOC_DIR) clean
42
+	$(MAKE) -C $(TOOLS_ASM_DOC_DIR) clean
43
+	$(MAKE) -C $(TOOLS_EMU_DOC_DIR) clean
44
+	$(MAKE) -C $(IO_FW_DOC_DIR) clean
45
+	
46
+	rm -rf tools
47
+	rm -rf io