-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
81 lines (61 loc) · 1.93 KB
/
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
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
79
80
81
# -*- coding: utf-8; mode: makefile-gmake -*-
include utils/makefile.include
include utils/makefile.python
include utils/makefile.sphinx
GIT_URL = https://github.com/return42/cdb-tools.git
SLIDES = docs/slides
quiet_cmd_cdbtools_clean = CLEAN cdbtools-clean
cmd_cdbtools_clean = rm -rf ./.cache ./dist ./build ./py27 ./win_bin/ConEmu
all: clean cdbtools docs
help: help-min
@echo ''
@echo 'to get more help: make help-all'
PHONY += help
help-min:
@echo ' docs - build documentation'
@echo ' docs-live - autobuild HTML documentation while editing'
@echo ' slides - build reveal.js slide presentation / use e.g.'
@echo ' cdb-slide-live to autobuild a presentation'
@echo ' clean - remove most generated files'
@echo ' cdbtools - bootstrap & build CDB-Tools'
@echo ' rqmts - info about build requirements'
help-all: help-min
@echo ''
$(Q)$(MAKE) -e -s docs-help
@echo ''
$(Q)$(MAKE) -e -s python-help
PHONY += rqmts
rqmts: msg-python-exe msg-pip-exe
PHONY += docs
docs: pyenv slides
$(call cmd,sphinx,html,$(DOCS_FOLDER),$(DOCS_FOLDER))
PHONY += docs-live
docs-live: pyenv
$(call cmd,sphinx_autobuild,html,$(DOCS_FOLDER),$(DOCS_FOLDER))
PHONY += slides
slides: cdb-slide
cd $(DOCS_DIST)/slides; python -m zipfile -c cdb_comp.zip cdb_comp
PHONY += cdb-slide
cdb-slide: pyenv
$(call cmd,sphinx,html,$(SLIDES)/cdb_comp,$(SLIDES)/cdb_comp,slides/cdb_comp)
PHONY += cdb-slide-live
cdb-slide-live: pyenv
$(call cmd,sphinx_autobuild,html,$(SLIDES)/cdb_comp,$(SLIDES)/cdb_comp,slides/cdb_comp)
PHONY += clean
clean: docs-clean pyclean
$(call cmd,cdbtools_clean)
$(call cmd,common_clean)
purge: clean
git clean -xfd
git gc --aggressive --prune=all
# FIXME: works only on Windows ...
PHONY += cdbtools
cdbtools:
winShortcuts\upkeep.bat
PHONY += download dist
download:
winShortcuts\upkeep.bat download
dist:
@- git gc --force --quiet
winShortcuts\upkeep.bat dist
.PHONY: $(PHONY)