Skip to content

Commit d09973e

Browse files
committed
unify makefiles (pdf and html) into one
1 parent 949dbbf commit d09973e

File tree

7 files changed

+95
-89
lines changed

7 files changed

+95
-89
lines changed

Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
SUBDIRS=tools i.MX
2+
3+
all: $(DEST) $(SUBDIRS)
4+
5+
.PHONY: subdirs $(SUBDIRS)
6+
7+
subdirs: $(SUBDIRS)
8+
9+
$(SUBDIRS):
10+
$(MAKE) -C $@

i.MX/Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
SUBDIRS=yocto
2+
3+
all: $(DEST) $(SUBDIRS)
4+
5+
.PHONY: subdirs $(SUBDIRS)
6+
7+
subdirs: $(SUBDIRS)
8+
9+
$(SUBDIRS):
10+
$(MAKE) -C $@

i.MX/yocto/Makefile

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
SOURCES= menu.pdf.md menu.md folders.md Nsteps.md arch.md meta_input.md layer.md patching_kernel.md building_kernel.md contribute.mb
2+
3+
DEST=menu.html folders.html Nsteps.html arch.html meta_input.html layer.html patching_kernel.html building_kernel.html contribute.html menu.pdf folders.pdf Nsteps.pdf arch.pdf meta_input.pdf yocto_tutorial.pdf layer.pdf patching_kernel.pdf building_kernel.pdf contribute.pdf
4+
5+
all: $(DEST)
6+
7+
menu.html: menu.md
8+
pandoc --self-contained -s -t slidy -o $@ $<
9+
10+
folders.html: folders.md
11+
pandoc --self-contained -s -t slidy -o $@ $<
12+
13+
Nsteps.html: Nsteps.md
14+
pandoc --self-contained -s -t slidy -o $@ $<
15+
16+
arch.html: arch.md
17+
pandoc --self-contained -s -t slidy -o $@ $<
18+
19+
meta_input.html: meta_input.md
20+
pandoc --self-contained -s -t slidy -o $@ $<
21+
22+
layer.html: layer.md
23+
pandoc --self-contained -s -t slidy -o $@ $<
24+
25+
patching_kernel.html: patching_kernel.md
26+
pandoc --self-contained -s -t slidy -o $@ $<
27+
28+
building_kernel.html: building_kernel.md
29+
pandoc --self-contained -s -t slidy -o $@ $<
30+
31+
contribute.html: contribute.md
32+
pandoc --self-contained -s -t slidy -o $@ $<
33+
34+
menu.pdf: menu.pdf.md
35+
pandoc --self-contained -s -o $@ $<
36+
37+
folders.pdf: folders.md
38+
pandoc --self-contained -s -o $@ $<
39+
40+
Nsteps.pdf: Nsteps.md
41+
pandoc --self-contained -s -o $@ $<
42+
43+
arch.pdf: arch.md
44+
pandoc --self-contained -s -o $@ $<
45+
46+
meta_input.pdf: meta_input.md
47+
pandoc --self-contained -s -o $@ $<
48+
49+
layer.pdf: layer.md
50+
pandoc --self-contained -s -o $@ $<
51+
52+
patching_kernel.pdf: patching_kernel.md
53+
pandoc --self-contained -s -o $@ $<
54+
55+
building_kernel.pdf: building_kernel.md
56+
pandoc --self-contained -s -o $@ $<
57+
58+
contribute.pdf: contribute.md
59+
pandoc --self-contained -s -o $@ $<
60+
61+
yocto_tutorial.pdf: menu.pdf folders.pdf Nsteps.pdf arch.pdf meta_input.pdf layer.pdf patching_kernel.pdf building_kernel.pdf contribute.pdf
62+
gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$@ menu.pdf Nsteps.pdf folders.pdf arch.pdf meta_input.pdf layer.pdf patching_kernel.pdf building_kernel.pdf contribute.pdf
63+
64+
clean:
65+
rm -f *.html *.pdf

i.MX/yocto/makefile_html

-34
This file was deleted.

i.MX/yocto/makefile_pdf

-37
This file was deleted.

tools/Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
SUBDIRS=bash git
2+
3+
all: $(DEST) $(SUBDIRS)
4+
5+
.PHONY: subdirs $(SUBDIRS)
6+
7+
subdirs: $(SUBDIRS)
8+
9+
$(SUBDIRS):
10+
$(MAKE) -C $@

tools/makefile_html

-18
This file was deleted.

0 commit comments

Comments
 (0)