aboutsummaryrefslogtreecommitdiff
path: root/doc/makefile
blob: ac16ff2c946a8a7a28a60e49516acb75123c734a (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
## ----------------------------------------------------------------------------
## Script     : makefile
## ----------------------------------------------------------------------------
## Author     : Johann Faerber
## Company    : University of Applied Sciences Augsburg
## ----------------------------------------------------------------------------
## Description: This makefile allows automating documentation process
##              based on markdown and pandoc 
##              
## ----------------------------------------------------------------------------

###################################################################
# Definitions
#
###################################################################
PROJECT = pulse_width_modulator

DATASHEET_YAML = datasheet.yaml
REPORT_YAML = report.yaml
PRESENTATION_YAML = presentation.yaml

###################################################################
# Main Targets
#
###################################################################

help:
	@echo '"make" does intentionally nothing. Type:'
	@echo '  "make datasheet" to create a datasheet'
	@echo '  "make report" to create a report'
	@echo '  "make presentation" to create a presentation'
	@echo '  "make clean" to remove all generated files'


datasheet: $(PROJECT)_datasheet.md
	pandoc --template uasa_meng_vlsi_template.tex $(DATASHEET_YAML) $(PROJECT)_datasheet.md -o $(PROJECT)_datasheet.pdf   --highlight-style tango


report: $(PROJECT)_report.md
	pandoc --template uasa_meng_vlsi_template.tex $(REPORT_YAML) $(PROJECT)_report.md -o $(PROJECT)_report.pdf   --highlight-style tango --number-sections


presentation: $(PROJECT)_presentation.md
	pandoc -t beamer  --template uasa_meng_vlsi_template.tex $(PRESENTATION_YAML) $(PROJECT)_presentation.md -o $(PROJECT)_presentation.pdf



clean:
	rm -rf $(PROJECT)_datasheet.pdf $(PROJECT)_report.pdf $(PROJECT)_presentation.pdf

## ----------------------------------------------------------------------------
## Description: 
## ------------
## assumes the following design directory structure as prerequisite
## 
## project
## |
## |-- makefile
## |
## +-- doc/
## |     |-- stepper_motor_controller_datasheet.md
## |     |-- stepper_motor_controller_datasheet.pdf
## |     |-- stepper_motor_controller_report.md
## |     |-- stepper_motor_controller_report.pdf
## |     |-- stepper_motor_controller_presentation.md
## |     |-- stepper_motor_controller_presentation.pdf
## |     |-- ...
## |     |
## |     +-- images
## |           |-- smctrl_modes.fodg
## |           |-- smctrl_modes.png
## |           |-- smctrl_modes_simwave.png
## |           |-- wave_drive_timing.pdf
## |           |-- wave_drive_timing.svg
## |           |-- ...
## |
## ----------------------------------------------------------------------------