mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #759 from arturadib/fix-Makefile
Fixes Makefile for web deployment
This commit is contained in:
commit
9e51287ebc
1 changed files with 5 additions and 18 deletions
23
Makefile
23
Makefile
|
@ -139,12 +139,11 @@ lint:
|
|||
# TODO: Use the Closure compiler to optimize the pdf.js files.
|
||||
#
|
||||
GH_PAGES = $(BUILD_DIR)/gh-pages
|
||||
web: | production extension compiler pages-repo \
|
||||
$(addprefix $(GH_PAGES)/, $(BUILD_TARGET)) \
|
||||
$(addprefix $(GH_PAGES)/, $(wildcard web/*.*)) \
|
||||
$(addprefix $(GH_PAGES)/, $(wildcard web/images/*.*)) \
|
||||
$(addprefix $(GH_PAGES)/, $(wildcard $(EXTENSION_SRC)/*.xpi))
|
||||
|
||||
web: | production extension compiler pages-repo
|
||||
@cp $(BUILD_TARGET) $(GH_PAGES)/$(BUILD_TARGET)
|
||||
@cp -R web/* $(GH_PAGES)/web
|
||||
@cp web/images/* $(GH_PAGES)/web/images
|
||||
@cp $(EXTENSION_SRC)/*.xpi $(GH_PAGES)/$(EXTENSION_SRC)
|
||||
@cp $(GH_PAGES)/web/index.html.template $(GH_PAGES)/index.html;
|
||||
@mv -f $(GH_PAGES)/web/viewer-production.html $(GH_PAGES)/web/viewer.html;
|
||||
@cd $(GH_PAGES); git add -A;
|
||||
|
@ -169,18 +168,6 @@ pages-repo: | $(BUILD_DIR)
|
|||
@mkdir -p $(GH_PAGES)/build;
|
||||
@mkdir -p $(GH_PAGES)/$(EXTENSION_SRC);
|
||||
|
||||
$(GH_PAGES)/$(BUILD_DIR)/%.js: build/%.js
|
||||
@cp $< $@
|
||||
|
||||
$(GH_PAGES)/web/%: web/%
|
||||
@cp $< $@
|
||||
|
||||
$(GH_PAGES)/web/images/%: web/images/%
|
||||
@cp $< $@
|
||||
|
||||
$(GH_PAGES)/$(EXTENSION_SRC)/%: $(EXTENSION_SRC)/%
|
||||
@cp -R $< $@
|
||||
|
||||
# # make compiler
|
||||
# #
|
||||
# # This target downloads the Closure compiler, and places it in the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue