File tree 1 file changed +20
-4
lines changed
1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,10 @@ website_files = \
89
89
out/doc/favicon.ico \
90
90
out/doc/pipe.css
91
91
92
- doc : out/Release/node $(apidoc_dirs ) $(website_files ) $(apiassets ) $(apidocs )
92
+ doc : doc
93
+
94
+ out/doc : out/Release/node $(apidoc_dirs ) $(website_files ) $(apiassets ) $(apidocs )
95
+
93
96
94
97
$(apidoc_dirs ) :
95
98
mkdir -p $@
@@ -126,11 +129,19 @@ distclean: docclean
126
129
check :
127
130
@tools/waf-light check
128
131
129
- VERSION =$(shell git describe )
132
+ VERSION =v $(shell python tools/getnodeversion.py )
130
133
TARNAME =node-$(VERSION )
134
+ TARBALL =$(TARNAME ) .tar.gz
135
+ PKG =dist-osx/$(TARNAME ) .pkg
131
136
132
137
# dist: doc/node.1 doc/api
133
- dist : doc
138
+ dist : $(TARBALL ) $(PKG )
139
+
140
+ $(PKG ) :
141
+ -rm -rf dist-osx
142
+ tools/osx-dist.sh
143
+
144
+ $(TARBALL ) : out/doc
134
145
git archive --format=tar --prefix=$(TARNAME ) / HEAD | tar xf -
135
146
mkdir -p $(TARNAME ) /doc
136
147
cp doc/node.1 $(TARNAME ) /doc/node.1
@@ -141,6 +152,11 @@ dist: doc
141
152
rm -rf $(TARNAME )
142
153
gzip -f -9 $(TARNAME ) .tar
143
154
155
+ dist-upload : $(TARBALL ) $(PKG )
156
+ ssh
[email protected] mkdir -p web/nodejs.org/dist/
$(VERSION )
157
+ scp
$(TARBALL ) [email protected] :
~ /web/nodejs.org/dist/
$(VERSION ) /
$(TARBALL )
158
+ scp
$(PKG ) [email protected] :
~ /web/nodejs.org/dist/
$(VERSION ) /
$(TARNAME ) .pkg
159
+
144
160
bench :
145
161
benchmark/http_simple_bench.sh
146
162
@@ -157,4 +173,4 @@ cpplint:
157
173
158
174
lint : jslint cpplint
159
175
160
- .PHONY : lint cpplint jslint bench clean docopen docclean doc dist distclean check uninstall install all program staticlib dynamiclib test test-all website-upload
176
+ .PHONY : lint cpplint jslint bench clean docopen docclean doc dist distclean dist-upload check uninstall install all program staticlib dynamiclib test test-all website-upload
You can’t perform that action at this time.
0 commit comments