summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-02-13 14:47:50 -0800
committerisaacs <i@izs.me>2012-02-13 15:27:06 -0800
commita7af84f988a0d5dd0d8935f70e44a7e8fb1fbe2b (patch)
treedbba6a39bd71b0d5c3ac109b6172e628fcbd5b63 /Makefile
parente7e4f2f3aa2622d67136b4c9ed3983cb90f6619a (diff)
downloadnodejs-a7af84f988a0d5dd0d8935f70e44a7e8fb1fbe2b.tar.gz
nodejs-a7af84f988a0d5dd0d8935f70e44a7e8fb1fbe2b.tar.bz2
nodejs-a7af84f988a0d5dd0d8935f70e44a7e8fb1fbe2b.zip
docs: Move images out of the dist tarball
This puts all images in doc/images/ and references them via http://nodejs.org/images/. Any complaints about copyright usage etc. can thus be node/joyent's problem, rather than the problem of a downstream distribution channel.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 6 insertions, 25 deletions
diff --git a/Makefile b/Makefile
index 9ab1da2f3..61302fe79 100644
--- a/Makefile
+++ b/Makefile
@@ -92,10 +92,12 @@ test-npm-publish: node
apidoc_sources = $(wildcard doc/api/*.markdown)
apidocs = $(addprefix out/,$(apidoc_sources:.markdown=.html))
-apidoc_dirs = out/doc out/doc/api/ out/doc/api/assets out/doc/about out/doc/community out/doc/logos
+apidoc_dirs = out/doc out/doc/api/ out/doc/api/assets out/doc/about out/doc/community out/doc/logos out/doc/images
apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/*)))
+doc_images = $(addprefix out/,$(wildcard doc/images/* doc/*.jpg doc/*.png))
+
website_files = \
out/doc/index.html \
out/doc/v0.4_announcement.html \
@@ -104,33 +106,12 @@ website_files = \
out/doc/sh_javascript.min.js \
out/doc/sh_vim-dark.css \
out/doc/sh.css \
- out/doc/logo.png \
out/doc/favicon.ico \
out/doc/pipe.css \
out/doc/about/index.html \
- out/doc/close-downloads.png \
out/doc/community/index.html \
- out/doc/community/not-invented-here.png \
out/doc/logos/index.html \
- out/doc/microsoft-logo.png \
- out/doc/ryan-speaker.jpg \
- out/doc/download-logo.png \
- out/doc/ebay-logo.png \
- out/doc/footer-logo-alt.png \
- out/doc/footer-logo.png \
- out/doc/icons-interior.png \
- out/doc/icons.png \
- out/doc/home-icons.png \
- out/doc/joyent-logo_orange_nodeorg-01.png \
- out/doc/linkedin-logo.png \
- out/doc/logo-light.png \
- out/doc/mac_osx_nodejs_installer_logo.png \
- out/doc/microsoft-logo.png \
- out/doc/platform-icons.png \
- out/doc/sponsored.png \
- out/doc/twitter-bird.png \
- out/doc/community-icons.png \
- out/doc/yahoo-logo.png
+ $(doc_images)
doc: node $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs)
@@ -141,7 +122,7 @@ out/doc/api/assets/%: doc/api_assets/% out/doc/api/assets/
cp $< $@
out/doc/%: doc/%
- cp $< $@
+ cp -r $< $@
out/doc/api/%.html: doc/api/%.markdown node $(apidoc_dirs) $(apiassets) tools/doctool/doctool.js
out/Release/node tools/doctool/doctool.js doc/template.html $< > $@
@@ -193,7 +174,7 @@ $(TARBALL): node out/doc
cp doc/node.1 $(TARNAME)/doc/node.1
cp -r out/doc/api $(TARNAME)/doc/api
rm -rf $(TARNAME)/deps/v8/test # too big
- rm -rf $(TARNAME)/doc/logos # too big
+ rm -rf $(TARNAME)/doc/images # too big
tar -cf $(TARNAME).tar $(TARNAME)
rm -rf $(TARNAME)
gzip -f -9 $(TARNAME).tar