diff options
Diffstat (limited to 'js/config/Make.rules.js')
-rw-r--r-- | js/config/Make.rules.js | 175 |
1 files changed, 0 insertions, 175 deletions
diff --git a/js/config/Make.rules.js b/js/config/Make.rules.js deleted file mode 100644 index 17a09b365d6..00000000000 --- a/js/config/Make.rules.js +++ /dev/null @@ -1,175 +0,0 @@ -# ********************************************************************** -# -# Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved. -# -# This copy of Ice is licensed to you under the terms described in the -# ICE_LICENSE file included in this distribution. -# -# ********************************************************************** - -# -# Select an installation base directory. The directory will be created -# if it does not exist. -# -prefix ?= /opt/Ice-$(VERSION) - -# -# Define to yes for an optimized build. -# -OPTIMIZE ?= no - -# -# Google Closure Compiler -# -CLOSURE_COMPILER ?= /opt/closure/compiler.jar - -# -# Closure Flags -# -CLOSUREFLAGS = --language_in ECMASCRIPT5 - -# -# jslint flags -# -LINTFLAGS = --verbose - -# -# NodeJS executable -# -NODE ?= node - -# ---------------------------------------------------------------------- -# Don't change anything below this line! -# ---------------------------------------------------------------------- - -# -# Common definitions -# -ice_language = js -slice_translator = slice2js - -# -# While makedist generates assets we don't want to include this file, to -# avoid problems with ICE_HOME settings -# -ifneq ($(MAKEDIST),yes) - ifeq ($(shell test -f $(top_srcdir)/config/Make.common.rules && echo 0),0) - include $(top_srcdir)/config/Make.common.rules - else - include $(top_srcdir)/../config/Make.common.rules - endif - - # - # Platform specific definitions (necessary for SLICEPARSERLIB) - # - ifeq ($(shell test -f $(top_srcdir)/config/Make.rules.$(UNAME) && echo 0),0) - include $(top_srcdir)/config/Make.rules.$(UNAME) - else - include $(top_srcdir)/../cpp/config/Make.rules.$(UNAME) - endif -endif - -ifdef ice_src_dist - bindir = $(top_srcdir)/bin - libdir = $(top_srcdir)/lib -else - bindir = $(ice_dir)/$(binsubdir) - ifeq ($(ice_dir),/usr) - libdir = $(ice_dir)/share/javascript/ice-$(VERSION) - else - libdir = $(ice_dir)/lib - endif -endif - -install_libdir = $(prefix)/lib -install_moduledir = $(prefix)/node_modules/icejs - -ifeq ($(OPTIMIZE),yes) -mklibtargets = $(libdir)/$(1).js $(libdir)/$(1).js.gz \ - $(libdir)/$(1).min.js $(libdir)/$(1).min.js.gz - -installlib = $(INSTALL) $(2)/$(3).min.js $(1); \ - $(INSTALL) $(2)/$(3).min.js.gz $(1); \ - $(INSTALL) $(2)/$(3).js $(1); \ - $(INSTALL) $(2)/$(3).js.gz $(1) -else -mklibtargets = $(libdir)/$(1).js $(libdir)/$(1).js.gz - -installlib = $(INSTALL) $(2)/$(3).js $(1); \ - $(INSTALL) $(2)/$(3).js.gz $(1) -endif - -installmodule = if test ! -d $(1)/$(3) ; \ - then \ - echo "Creating $(1)/$(3)..." ; \ - mkdir -p $(1)/$(3) ; \ - chmod a+rx $(1)/$(3) ; \ - fi ; \ - for f in "$(2)"; \ - do \ - cp $$f $(1)/$(3); \ - done; - -ifdef ice_src_dist - SLICE2JS = $(ice_cpp_dir)/bin/slice2js - SLICEPARSERLIB = $(ice_cpp_dir)/$(libsubdir)/$(call mklibfilename,Slice,$(VERSION)) -else - SLICE2JS = $(ice_dir)/$(binsubdir)/slice2js -endif - -all:: $(TARGETS) - -ifneq ($(GEN_SRCS),) -clean:: - rm -rf $(GEN_SRCS) -else -clean:: -endif - -ifneq ($(TARGETS),) -clean:: - rm -rf $(TARGETS) - rm -rf .depend -endif - -%.js: $(SDIR)/%.ice $(SLICE2JS) $(SLICEPARSERLIB) - rm -f $(*F).js - $(SLICE2JS) $(SLICE2JSFLAGS) $< - @mkdir -p .depend - @$(SLICE2JS) $(SLICE2JSFLAGS) --depend $< > .depend/$(*F).ice.d - -%.js: %.ice $(SLICE2JS) $(SLICEPARSERLIB) - rm -f $(*F).js - $(SLICE2JS) $(SLICE2JSFLAGS) $< - @mkdir -p .depend - @$(SLICE2JS) $(SLICE2JSFLAGS) $< > .depend/$(*F).ice.d - -index.html: $(GEN_SRCS) $(top_srcdir)/test/Common/index.html - cp $(top_srcdir)/test/Common/index.html . - -$(libdir)/$(LIBNAME).js: $(SRCS) - @rm -f $(libdir)/$(LIBNAME).js - $(NODE) $(top_srcdir)/config/makebundle.js "$(MODULES)" $(SRCS) > $(libdir)/$(LIBNAME).js - -$(libdir)/$(LIBNAME).js.gz: $(libdir)/$(LIBNAME).js - @rm -f $(libdir)/$(LIBNAME).js.gz - gzip -c9 $(libdir)/$(LIBNAME).js > $(libdir)/$(LIBNAME).js.gz - -ifeq ($(OPTIMIZE),yes) -$(libdir)/$(LIBNAME).min.js: $(libdir)/$(LIBNAME).js - @rm -f $(libdir)/$(LIBNAME).min.js - java -jar $(CLOSURE_COMPILER) $(CLOSUREFLAGS) --js $(libdir)/$(LIBNAME).js --js_output_file $(libdir)/$(LIBNAME).min.js - -$(libdir)/$(LIBNAME).min.js.gz: $(libdir)/$(LIBNAME).min.js - @rm -f $(libdir)/$(LIBNAME).min.js.gz - gzip -c9 $(libdir)/$(LIBNAME).min.js > $(libdir)/$(LIBNAME).min.js.gz -endif - -.PHONY : lint - -install:: - -include $(wildcard .depend/*.d) - -EVERYTHING = all clean install lint -EVERYTHING_EXCEPT_ALL = install clean lint |