-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
118 lines (83 loc) · 3.44 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
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
VERSION=3.6.4
REVISION=-`git log -1 --pretty=format:%h`
DATE=`date +"%a %b %d %H:%M:%S %Y"`
IDL=idl
DOC_IDL=idl83
TAG=IDLDOC_`echo $(VERSION) | sed -e"s/\./_/g"`
BRANCH=v$(VERSION)
.PHONY: all clean doc book regression tests version srcdist dist updates tag branch
all:
cd src; make all IDL=$(IDL)
clean:
cd src; make clean
rm -f *.zip
rm -rf updates.idldev.com
rm -rf api-docs
rm -rf api-book
rm -rf regression_test/*-docs
rm -rf unit_tests/*-docs
doc:
$(DOC_IDL) < idldoc_build_docs.pro
book:
$(DOC_IDL) idldoc_build_book
cd api-book; pdflatex -halt-on-error index.tex
cd api-book; pdflatex -halt-on-error index.tex
regression:
$(IDL) -e "mgunit, 'docrtalltests_uts'"
tests:
$(IDL) -e "mgunit, 'docutalltests_uts'"
version:
sed "s/version = '.*'/version = '$(VERSION)'/" < src/idldoc_version.pro | sed "s/revision = '.*'/revision = '$(REVISION)'/" > idldoc_version.pro
mv idldoc_version.pro src/
ipm:
sed -e "s/VERSION/$(VERSION)/" -e "s/BUILD_DATE/$(DATE)/" < idlpackage.json.in > idlpackage.json
dist:
make version
make ipm
rm -rf idldoc-$(VERSION)
mkdir idldoc-$(VERSION)
$(IDL) -IDL_STARTUP "" < idldoc_build.pro
mv idldoc.sav idldoc-$(VERSION)/
mv idlpackage.json idldoc-$(VERSION)/
cp COPYING.rst idldoc-$(VERSION)/
cp CREDITS.rst idldoc-$(VERSION)/
cp ISSUES.rst idldoc-$(VERSION)/
cp RELEASE.rst idldoc-$(VERSION)/
cp INSTALL.rst idldoc-$(VERSION)/
cp README.rst idldoc-$(VERSION)/
cd docs; make
mkdir idldoc-$(VERSION)/docs
cp docs/idldoc-reference.pdf idldoc-$(VERSION)/docs/
cp docs/idldoc-tutorial.pdf idldoc-$(VERSION)/docs/
cp -r src/templates idldoc-$(VERSION)/templates/
cp -r src/resources idldoc-$(VERSION)/resources/
zip -r idldoc-$(VERSION).zip idldoc-$(VERSION)/*
mv idldoc-$(VERSION) idldoc
$(IDL) -e "ipm, /create, 'idldoc'"
scp idldoc.zip idldev.com:~/packages.idldev.com/
rm -rf idldoc
tag:
@make_tag.sh $(TAG)
branch:
@make_branch.sh $(BRANCH)
updates:
rm -rf updates.idldev.com
sed "s/version = '.*'/version = '$(VERSION)'/" < src/idldoc_version.pro | sed "s/revision = '.*'/revision = '$(REVISION)'/" > idldoc_version.pro
mv idldoc_version.pro src/
mkdir -p updates.idldev.com/{features,plugins}
$(IDL) -e idldoc_build_updates_site
cp updates-resources/features/about.html updates.idldev.com/features/com.idldev.idl.idldoc.feature_$(VERSION)/
cp updates-resources/features/feature.properties updates.idldev.com/features/com.idldev.idl.idldoc.feature_$(VERSION)/
jar cvf updates.idldev.com/features/com.idldev.idl.idldoc.feature_$(VERSION).jar -C updates.idldev.com/features/com.idldev.idl.idldoc.feature_$(VERSION)/ .
rm -rf updates.idldev.com/features/com.idldev.idl.idldoc.feature_$(VERSION)/
$(IDL) -IDL_STARTUP "" < idldoc_build
mkdir updates.idldev.com/plugins/com.idldev.idl.idldoc_$(VERSION)/
cp idldoc.sav updates.idldev.com/plugins/com.idldev.idl.idldoc_$(VERSION)/
rm idldoc.sav
cp -r docs updates.idldev.com/plugins/com.idldev.idl.idldoc_$(VERSION)/docs/
cp -r src/templates updates.idldev.com/plugins/com.idldev.idl.idldoc_$(VERSION)/templates/
cp -r src/resources updates.idldev.com/plugins/com.idldev.idl.idldoc_$(VERSION)/resources/
jar cvfm updates.idldev.com/plugins/com.idldev.idl.idldoc_$(VERSION).jar updates.idldev.com/plugins/manifest -C updates.idldev.com/plugins/com.idldev.idl.idldoc_$(VERSION) .
rm -rf updates.idldev.com/plugins/com.idldev.idl.idldoc_$(VERSION)/
rm updates.idldev.com/plugins/manifest
scp -r updates.idldev.com/* tizer.dreamhost.com:~/updates.idldev.com