-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
119 lines (102 loc) · 3.74 KB
/
Makefile
File metadata and controls
119 lines (102 loc) · 3.74 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#############################################################################
#
# Makefile for bmptk documentation, zip file, web pages, etc.
#
# Copyright (c) 2012 .. 2014 Wouter van Ooijen (www.voti.nl)
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
#
# This file makes some meta-stuff that is probably
# probably interesting only for a bmptk maintainer.
#
# targets:
# clean : total cleanup
# doc, docs, documentation : create documentation (docs subdir)
# build, examples : build all examples
# push : clean and git push (does not work??)
# zip : create bmptk.zip, includes documentation
# www : create webpages (www subdir, includes zip)
# ftp : create webpages and ftp to website
# (won't work from your PC ;) )
# th04 : create .zip for V1TH04 course
# cpse2 : create .zip for V2CPSE2 course
#
#############################################################################
.PHONY: clean doc docs documentation build all examples zip push tests
docs : doc
documentation: doc
all: doc examples tests
build: examples tests
REDIRECT := <META HTTP-EQUIV='refresh' CONTENT='0;URL=./docs/index.html'>
doc:
Doxygen docsrc/Doxyfile
echo "$(REDIRECT)" >index.html
@echo "**** documentation build completed succesfully"
examples:
cd examples && make build
@echo "**** examples build completed succesfully"
tests:
cd tests && make build
@echo "**** tests build completed succesfully"
zip: clean doc
rm -rf index.html
pkzip25 -add -path=relative -recurse bmptk.zip
@echo "**** zip build completed succesfully"
clean:
rm -rf index.html docs bmptk.zip th04.zip cpse2.zip transfer
cd examples && make clean
cd tests && make clean
@echo "**** cleanup completed succesfully"
push:
make clean
git push
ftp: zip
mkdir transfer
-cp ../_ftp_crc_s transfer
cp -R docsrc/www/* transfer
cp bmptk.zip transfer
cp -R docs transfer/docs
python \ftpbmptk.py
cp transfer/_ftp_crc_s ..
@echo "**** ftp transfer completed succesfully"
TH04LIST += license.txt license_1_0.txt
TH04LIST += Makefile Makefile.inc Makefile.local
TH04LIST += bmptk.h
TH04LIST += targets/bmptk_lpc1114* targets/cmsis/11xx/*/*
TH04LIST += tools/* tools/image_sizes/*
TH04LIST += index.html docs/* docs/search/*
TH04LIST += examples/v1th04/*
TH04LIST += examples/v1th04/blink/*
TH04LIST += examples/v1th04/switch/*
TH04LIST += examples/v1th04/beep/*
TH04LIST += examples/v1th04/440Hz/*
TH04LIST += examples/v1th04/timer/*
TH04LIST += examples/v1th04/sw-uart/*
TH04LIST += examples/v1th04/servo/*
TH04LIST += examples/v1th04/ds1990/*
TH04LIST += examples/v1th04/i2c/*
TH04LIST += examples/v1th04/lcd5510/*
th04: clean doc
pkzip25 -add -path=current th04.zip $(TH04LIST)
CPSE2LIST += license.txt license_1_0.txt
CPSE2LIST += Makefile Makefile.inc Makefile.local
CPSE2LIST += bmptk.h
CPSE2LIST += targets/*
CPSE2LIST += targets/cortex/* targets/cortex/cmsis/11xx/inc/*
CPSE2LIST += targets/cortex/cmsis/lpc800/inc/*
CPSE2LIST += targets/win/*
CPSE2LIST += tools/* tools/image_sizes/*
CPSE2LIST += hwcpp/* hwcpp/*/*
CPSE2LIST += examples/v2cpse2/*
# CPSE2LIST += examples/v2cpse2/decorators/*
CPSE2LIST += examples/v2cpse2/hello/*
CPSE2LIST += examples/v2cpse2/libraries/*
CPSE2LIST += examples/v2cpse2/libraries/graphics/*
CPSE2LIST += examples/v2cpse2/lines/*
CPSE2LIST += examples/v2cpse2/subframes/*
CPSE2LIST += examples/v2cpse2/tee/*
CPSE2LIST += examples/v2cpse2/week1-make/*
cpse2: clean
pkzip25 -add -path=current cpse2.zip $(CPSE2LIST)