summaryrefslogtreecommitdiff
path: root/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make
diff options
context:
space:
mode:
Diffstat (limited to 'webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make')
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/apiviewer.mk28
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/application.mk385
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/framework.mk98
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/impl.mk431
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/project.mk40
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/targets.mk49
6 files changed, 1031 insertions, 0 deletions
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/apiviewer.mk b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/apiviewer.mk
new file mode 100644
index 0000000000..535770c18f
--- /dev/null
+++ b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/apiviewer.mk
@@ -0,0 +1,28 @@
+################################################################################
+#
+# qooxdoo - the new era of web development
+#
+# http://qooxdoo.org
+#
+# Copyright:
+# 2006-2007 1&1 Internet AG, Germany, http://www.1and1.org
+#
+# License:
+# LGPL: http://www.gnu.org/licenses/lgpl.html
+# EPL: http://www.eclipse.org/org/documents/epl-v10.php
+# See the LICENSE file in the project's top-level directory for details.
+#
+# Authors:
+# * Sebastian Werner (wpbasti)
+# * Andreas Ecker (ecker)
+# * Fabian Jakobs (fjakobs)
+#
+################################################################################
+
+#
+# API Paths
+#
+APIVIEWER_NAMESPACE = apiviewer
+APIVIEWER_PATH = $(QOOXDOO_PATH)/frontend/application/apiviewer
+APIVIEWER_SOURCE_PATH = $(APIVIEWER_PATH)/source
+APIVIEWER_FILES = index.html
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/application.mk b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/application.mk
new file mode 100644
index 0000000000..94d1f9b614
--- /dev/null
+++ b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/application.mk
@@ -0,0 +1,385 @@
+################################################################################
+#
+# qooxdoo - the new era of web development
+#
+# http://qooxdoo.org
+#
+# Copyright:
+# 2006-2007 1&1 Internet AG, Germany, http://www.1and1.org
+#
+# License:
+# LGPL: http://www.gnu.org/licenses/lgpl.html
+# EPL: http://www.eclipse.org/org/documents/epl-v10.php
+# See the LICENSE file in the project's top-level directory for details.
+#
+# Authors:
+# * Sebastian Werner (wpbasti)
+# * Andreas Ecker (ecker)
+# * Fabian Jakobs (fjakobs)
+#
+################################################################################
+
+###################################################################################
+# INCLUDE EXTERNAL MAKEFILES
+###################################################################################
+
+include $(QOOXDOO_PATH)/frontend/framework/tool/make/framework.mk
+include $(QOOXDOO_PATH)/frontend/framework/tool/make/apiviewer.mk
+
+
+
+####################################################################################
+# BASIC SETTINGS
+####################################################################################
+
+#
+# Location of your qooxdoo distribution
+# Could be relative from this location or absolute
+#
+ifndef QOOXDOO_PATH
+ QOOXDOO_PATH = PLEASE_DEFINE_QOOXDOO_PATH
+endif
+
+#
+# The same as above, but from the webserver point of view
+# Starting point is the application HTML file of the source folder.
+# In most cases just add a "/.." compared to above
+#
+ifndef QOOXDOO_URI
+ QOOXDOO_URI = $(QOOXDOO_PATH)/..
+endif
+
+#
+# Namespace of your application e.g. custom
+#
+ifndef APPLICATION_NAMESPACE
+ APPLICATION_NAMESPACE = custom
+endif
+
+#
+# Titles used in your API viewer and during the build process
+#
+ifndef APPLICATION_MAKE_TITLE
+ APPLICATION_MAKE_TITLE = CUSTOM
+endif
+
+ifndef APPLICATION_API_TITLE
+ APPLICATION_API_TITLE = Custom
+endif
+
+#
+# Files that will be copied into the build directory
+# (space separated list) (no default)
+#
+# ifndef APPLICATION_FILES
+# APPLICATION_FILES = index.html
+# endif
+
+#
+# Locales to use (space separated list)
+#
+ifndef APPLICATION_LOCALES
+ APPLICATION_LOCALES = C
+else
+ APPLICATION_LOCALES += C
+endif
+
+
+
+
+
+
+####################################################################################
+# ADVANCED SETTINGS
+####################################################################################
+
+#
+# Define folder path
+#
+ifndef APPLICATION_PATH
+ APPLICATION_PATH = .
+endif
+
+#
+# Define deep folder paths
+#
+ifndef APPLICATION_SOURCE_PATH
+ APPLICATION_SOURCE_PATH = $(APPLICATION_PATH)/source
+endif
+
+ifndef APPLICATION_BUILD_PATH
+ APPLICATION_BUILD_PATH = $(APPLICATION_PATH)/build
+endif
+
+ifndef APPLICATION_API_PATH
+ APPLICATION_API_PATH = $(APPLICATION_PATH)/api
+endif
+
+#
+# Define the publishing location
+# Could be any rsync compatible url/path
+#
+ifndef APPLICATION_PUBLISH_PATH
+ APPLICATION_PUBLISH_PATH = $(APPLICATION_PATH)/publish
+endif
+
+#
+# Define the debug location
+# Could be any rsync compatible url/path
+#
+ifndef APPLICATION_DEBUG_PATH
+ APPLICATION_DEBUG_PATH = $(APPLICATION_PATH)/debug
+endif
+
+#
+# Relation from HTML file to the top level directory (source or build).
+#
+ifndef APPLICATION_PAGE_TO_TOPLEVEL
+ APPLICATION_PAGE_TO_TOPLEVEL = .
+endif
+
+#
+# Configure resource handling
+#
+ifndef APPLICATION_RESOURCE_FILTER
+ APPLICATION_RESOURCE_FILTER = false
+endif
+
+#
+# Customize your build
+#
+ifndef APPLICATION_COMPLETE_BUILD
+ APPLICATION_COMPLETE_BUILD = false
+endif
+
+ifndef APPLICATION_COMPLETE_SOURCE
+ APPLICATION_COMPLETE_SOURCE = true
+endif
+
+ifndef APPLICATION_COMPLETE_API
+ APPLICATION_COMPLETE_API = true
+endif
+
+#
+# Customize your build
+#
+ifndef APPLICATION_LINEBREAKS_BUILD
+ APPLICATION_LINEBREAKS_BUILD = true
+endif
+
+ifndef APPLICATION_LINEBREAKS_SOURCE
+ APPLICATION_LINEBREAKS_SOURCE = true
+endif
+
+#
+# Configure optimizer
+#
+ifndef APPLICATION_OPTIMIZE_STRINGS
+ APPLICATION_OPTIMIZE_STRINGS = true
+endif
+
+ifndef APPLICATION_OPTIMIZE_VARIABLES
+ APPLICATION_OPTIMIZE_VARIABLES = true
+endif
+
+#
+# Include support for widgets
+#
+ifndef APPLICATION_ENABLE_GUI
+ APPLICATION_ENABLE_GUI = true
+endif
+
+#
+# Redefine folder names (inside build/source)
+# It is not recommended to change these fundamental settings.
+#
+ifndef APPLICATION_SCRIPT_FOLDERNAME
+ APPLICATION_SCRIPT_FOLDERNAME = script
+endif
+
+ifndef APPLICATION_CLASS_FOLDERNAME
+ APPLICATION_CLASS_FOLDERNAME = class
+endif
+
+ifndef APPLICATION_TRANSLATION_FOLDERNAME
+ APPLICATION_TRANSLATION_FOLDERNAME = translation
+endif
+
+#
+# Name of the generated script
+#
+ifndef APPLICATION_SCRIPT_FILENAME
+ APPLICATION_SCRIPT_FILENAME = $(APPLICATION_NAMESPACE).js
+endif
+
+#
+# Full application classname
+#
+ifndef APPLICATION_CLASSNAME
+ APPLICATION_CLASSNAME = $(APPLICATION_NAMESPACE).Application
+endif
+
+#
+# Translation path
+#
+ifndef APPLICATION_TRANSLATION_PATH
+ APPLICATION_TRANSLATION_PATH = $(APPLICATION_SOURCE_PATH)/$(APPLICATION_TRANSLATION_FOLDERNAME)
+endif
+
+#
+# Namespace of translation classes
+#
+ifndef APPLICATION_TRANSLATION_CLASS_NAMESPACE
+ APPLICATION_TRANSLATION_CLASS_NAMESPACE = $(APPLICATION_NAMESPACE).$(APPLICATION_TRANSLATION_FOLDERNAME)
+endif
+
+#
+# Directory of translation classes
+#
+ifndef APPLICATION_TRANSLATION_CLASS_PATH
+ APPLICATION_TRANSLATION_CLASS_PATH = $(APPLICATION_SOURCE_PATH)/$(APPLICATION_CLASS_FOLDERNAME)/$(APPLICATION_NAMESPACE)/$(APPLICATION_TRANSLATION_FOLDERNAME)
+endif
+
+#
+# Settings for more advanced users
+#
+ifndef APPLICATION_ADDITIONAL_CLASS_PATH
+ APPLICATION_ADDITIONAL_CLASS_PATH =
+endif
+
+ifndef APPLICATION_ADDITIONAL_CLASS_URI
+ APPLICATION_ADDITIONAL_CLASS_URI =
+endif
+
+ifndef APPLICATION_ADDITIONAL_RESOURCE
+ APPLICATION_ADDITIONAL_RESOURCE =
+endif
+
+#
+# Template to patch (e.g. XHTML mode)
+#
+
+# (no default)
+
+#ifndef APPLICATION_TEMPLATE_INPUT
+# APPLICATION_TEMPLATE_INPUT =
+#endif
+
+ifndef APPLICATION_TEMPLATE_OUTPUT
+ APPLICATION_TEMPLATE_OUTPUT = $(APPLICATION_TEMPLATE_INPUT).out
+endif
+
+ifndef APPLICATION_TEMPLATE_REPLACE
+ APPLICATION_TEMPLATE_REPLACE = <!-- qooxdoo-script-block -->
+endif
+
+
+
+
+
+
+###################################################################################
+# COMPUTED DEFAULTS
+###################################################################################
+
+COMPUTED_COMMON_INIT =
+
+COMPUTED_SOURCE_INCLUDE =
+COMPUTED_SOURCE_LINEBREAKS =
+
+COMPUTED_BUILD_INCLUDE =
+COMPUTED_BUILD_OPTIMIZATIONS =
+COMPUTED_BUILD_LINEBREAKS =
+
+COMPUTED_API_INCLUDE =
+
+
+
+
+
+
+###################################################################################
+# PROCESSING APPLICATION SETTINGS
+###################################################################################
+
+COMPUTED_CLASS_PATH = --class-path $(FRAMEWORK_SOURCE_PATH)/class \
+ --class-path $(APPLICATION_SOURCE_PATH)/$(APPLICATION_CLASS_FOLDERNAME) \
+ $(APPLICATION_ADDITIONAL_CLASS_PATH)
+
+COMPUTED_CLASS_URI = --class-uri $(FRAMEWORK_SOURCE_URI)/class \
+ --class-uri $(APPLICATION_PAGE_TO_TOPLEVEL)/$(APPLICATION_CLASS_FOLDERNAME) \
+ $(APPLICATION_ADDITIONAL_CLASS_URI)
+
+COMPUTED_RESOURCE = --copy-resources \
+ --resource-input $(FRAMEWORK_SOURCE_PATH)/resource \
+ --resource-output $(APPLICATION_BUILD_PATH)/resource/qx \
+ --define-runtime-setting qx.manager.object.AliasManager.resourceUri:$(APPLICATION_PAGE_TO_TOPLEVEL)/resource/qx \
+ --resource-input $(APPLICATION_SOURCE_PATH)/resource \
+ --resource-output $(APPLICATION_BUILD_PATH)/resource/$(APPLICATION_NAMESPACE) \
+ --define-runtime-setting $(APPLICATION_CLASSNAME).resourceUri:$(APPLICATION_PAGE_TO_TOPLEVEL)/resource/$(APPLICATION_NAMESPACE) \
+ $(APPLICATION_ADDITIONAL_RESOURCE)
+
+
+COMPUTED_FRAMEWORK_LOCALE_INCLUDE := $(APPLICATION_LOCALES:%= --include qx.locale.data.% )
+COMPUTED_FRAMEWORK_TRANSLATION_INCLUDE := $(APPLICATION_LOCALES:%= --include $(FRAMEWORK_TRANSLATION_CLASS_NAMESPACE).% )
+COMPUTED_APPLICATION_TRANSLATION_INCLUDE := $(APPLICATION_LOCALES:%= --include $(APPLICATION_TRANSLATION_CLASS_NAMESPACE).% )
+
+
+ifeq ($(APPLICATION_COMPLETE_SOURCE),false)
+ COMPUTED_SOURCE_INCLUDE = --include $(APPLICATION_CLASSNAME) \
+ $(COMPUTED_FRAMEWORK_LOCALE_INCLUDE) \
+ $(COMPUTED_FRAMEWORK_TRANSLATION_INCLUDE) \
+ $(COMPUTED_APPLICATION_TRANSLATION_INCLUDE)
+endif
+
+ifneq ($(APPLICATION_COMPLETE_BUILD),true)
+ COMPUTED_BUILD_INCLUDE = --include $(APPLICATION_CLASSNAME) \
+ $(COMPUTED_FRAMEWORK_LOCALE_INCLUDE) \
+ $(COMPUTED_FRAMEWORK_TRANSLATION_INCLUDE) \
+ $(COMPUTED_APPLICATION_TRANSLATION_INCLUDE)
+endif
+
+ifeq ($(APPLICATION_COMPLETE_API),false)
+ COMPUTED_API_INCLUDE = --include $(APPLICATION_CLASSNAME)
+endif
+
+ifeq ($(APPLICATION_OPTIMIZE_STRINGS),true)
+ COMPUTED_BUILD_OPTIMIZATIONS += --optimize-strings
+endif
+
+ifeq ($(APPLICATION_OPTIMIZE_VARIABLES),true)
+ COMPUTED_BUILD_OPTIMIZATIONS += --optimize-variables
+endif
+
+ifeq ($(APPLICATION_ENABLE_GUI),false)
+ COMPUTED_COMMON_INIT = --define-runtime-setting qx.core.Init.component:qx.component.init.BasicInitComponent
+endif
+
+ifeq ($(APPLICATION_RESOURCE_FILTER),true)
+ COMPUTED_RESOURCE += --enable-resource-filter
+endif
+
+ifeq ($(APPLICATION_LINEBREAKS_SOURCE),true)
+ COMPUTED_SOURCE_LINEBREAKS = --add-new-lines --add-file-ids
+endif
+
+ifeq ($(APPLICATION_LINEBREAKS_BUILD),true)
+ COMPUTED_BUILD_LINEBREAKS = --add-new-lines --add-file-ids
+endif
+
+ifneq ($(APPLICATION_TEMPLATE_INPUT),)
+ COMPUTED_TEMPLATE = --source-template-input-file $(APPLICATION_SOURCE_PATH)/$(APPLICATION_TEMPLATE_INPUT) --source-template-output-file $(APPLICATION_SOURCE_PATH)/$(APPLICATION_TEMPLATE_OUTPUT)
+
+ ifneq ($(APPLICATION_TEMPLATE_REPLACE),)
+ COMPUTED_TEMPLATE += --source-template-replace "$(APPLICATION_TEMPLATE_REPLACE)"
+ endif
+endif
+
+
+
+
+###################################################################################
+# INCLUDE EXTERNAL MAKEFILES
+###################################################################################
+
+include $(QOOXDOO_PATH)/frontend/framework/tool/make/impl.mk
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/framework.mk b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/framework.mk
new file mode 100644
index 0000000000..d38594f7dd
--- /dev/null
+++ b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/framework.mk
@@ -0,0 +1,98 @@
+################################################################################
+#
+# qooxdoo - the new era of web development
+#
+# http://qooxdoo.org
+#
+# Copyright:
+# 2006-2007 1&1 Internet AG, Germany, http://www.1and1.org
+#
+# License:
+# LGPL: http://www.gnu.org/licenses/lgpl.html
+# EPL: http://www.eclipse.org/org/documents/epl-v10.php
+# See the LICENSE file in the project's top-level directory for details.
+#
+# Authors:
+# * Sebastian Werner (wpbasti)
+# * Andreas Ecker (ecker)
+# * Fabian Jakobs (fjakobs)
+#
+################################################################################
+
+#
+# Framework paths
+#
+FRAMEWORK_PATH = $(QOOXDOO_PATH)/frontend/framework
+FRAMEWORK_NAMESPACE = qx
+FRAMEWORK_SOURCE_PATH = $(FRAMEWORK_PATH)/source
+FRAMEWORK_CACHE_PATH = $(FRAMEWORK_PATH)/.cache
+FRAMEWORK_CLASS_FOLDERNAME = class
+
+FRAMEWORK_LOCALE_PATH = $(FRAMEWORK_SOURCE_PATH)/locale
+FRAMEWORK_LOCALE_CLASS_PATH = $(FRAMEWORK_SOURCE_PATH)/$(FRAMEWORK_CLASS_FOLDERNAME)/$(FRAMEWORK_NAMESPACE)/locale/data
+
+FRAMEWORK_TRANSLATION_PATH = $(FRAMEWORK_SOURCE_PATH)/translation
+FRAMEWORK_TRANSLATION_CLASS_NAMESPACE = $(FRAMEWORK_NAMESPACE).locale.translation
+FRAMEWORK_TRANSLATION_CLASS_PATH = $(FRAMEWORK_SOURCE_PATH)/$(FRAMEWORK_CLASS_FOLDERNAME)/$(FRAMEWORK_NAMESPACE)/locale/translation
+
+FRAMEWORK_TOOL_PATH = $(FRAMEWORK_PATH)/tool
+
+
+#
+# Framework config
+#
+FRAMEWORK_VERSION := $(shell cat $(QOOXDOO_PATH)/VERSION)
+FRAMEWORK_SVNINFO := $(shell python $(FRAMEWORK_TOOL_PATH)/modules/svninfo.py `dirname $(QOOXDOO_PATH)`)
+
+ifneq ($(FRAMEWORK_SVNINFO),"")
+ FRAMEWORK_FULL_VERSION = $(FRAMEWORK_VERSION) $(FRAMEWORK_SVNINFO)
+else
+ FRAMEWORK_FULL_VERSION = $(FRAMEWORK_VERSION)
+endif
+
+
+
+#
+# Framework URIs
+#
+FRAMEWORK_URI = $(QOOXDOO_URI)/frontend/framework
+FRAMEWORK_SOURCE_URI = $(FRAMEWORK_URI)/source
+FRAMEWORK_CLDR_DOWNLOAD_URI = http://unicode.org/cldr/data/common/main
+
+
+#
+# Configure commands
+#
+CMD_LINE = echo "----------------------------------------------------------------------------"
+CMD_NICE = nice -n 10
+CMD_PYTHON = $(CMD_NICE) python
+CMD_GENERATOR = $(CMD_PYTHON) $(FRAMEWORK_TOOL_PATH)/generator.py --cache-directory $(FRAMEWORK_CACHE_PATH) --version "$(FRAMEWORK_FULL_VERSION)"
+CMD_CLDR = $(CMD_PYTHON) $(FRAMEWORK_TOOL_PATH)/modules/cldr.py
+CMD_MSGFMT = $(CMD_PYTHON) $(FRAMEWORK_TOOL_PATH)/modules/msgfmt.py
+CMD_CHECKLOCALES = $(CMD_PYTHON) $(FRAMEWORK_TOOL_PATH)/modules/checklocales.py
+CMD_REMOVE = $(CMD_NICE) rm -rf
+CMD_FIND = $(CMD_NICE) find
+CMD_ZIP = $(CMD_NICE) zip
+CMD_TAR = $(CMD_NICE) tar
+CMD_ZIP_CREATE = $(CMD_ZIP) -rq
+CMD_TAR_CREATE = $(CMD_TAR) cfzp
+CMD_DIR = $(CMD_NICE) mkdir -p
+CMD_ANY2DOS = | xargs $(CMD_PYTHON) $(FRAMEWORK_TOOL_PATH)/modules/textutil.py --command any2Dos
+CMD_ANY2UNIX = | xargs $(CMD_PYTHON) $(FRAMEWORK_TOOL_PATH)/modules/textutil.py --command any2Unix
+CMD_MKEXEC = $(CMD_NICE) chmod a+rx
+
+# Optimized for remote sync (ssh etc.)
+CMD_SYNC_ONLINE = $(CMD_NICE) rsync --checksum --compress --recursive --delete --inplace --links --safe-links --exclude .svn
+
+# Optimized for local sync (same computer, filesystem)
+CMD_SYNC_OFFLINE = $(CMD_NICE) rsync --recursive --delete --inplace --links --safe-links --exclude .svn
+
+
+
+
+#
+# Configure files
+#
+FILES_TEXT = \( -name "*.py" -o -name "*.sh" -o -name "*.js" -o -name "*.html" -o -name "*.css" -o -name "*.xml" -o -name Makefile -o -name AUTHORS -o -name LICENSE -o -name README -o -name RELEASENOTES -o -name TODO \)
+FILES_TEMP = \( -name "*.pyc" -o -name "*.bak" -o -name "*.old" -o -name "*~" -o -name "messages.pot" \)
+FILES_EXEC = \( -name "*.py" -o -name "*.sh" \)
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/impl.mk b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/impl.mk
new file mode 100644
index 0000000000..1b5179230b
--- /dev/null
+++ b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/impl.mk
@@ -0,0 +1,431 @@
+################################################################################
+#
+# qooxdoo - the new era of web development
+#
+# http://qooxdoo.org
+#
+# Copyright:
+# 2006-2007 1&1 Internet AG, Germany, http://www.1and1.org
+#
+# License:
+# LGPL: http://www.gnu.org/licenses/lgpl.html
+# EPL: http://www.eclipse.org/org/documents/epl-v10.php
+# See the LICENSE file in the project's top-level directory for details.
+#
+# Authors:
+# * Sebastian Werner (wpbasti)
+# * Andreas Ecker (ecker)
+# * Fabian Jakobs (fjakobs)
+#
+################################################################################
+
+###################################################################################
+# EXEC TARGETS
+###################################################################################
+
+#
+# Cleanup targets
+#
+
+
+exec-clean:
+ @echo " * Cleaning up..."
+ @$(CMD_REMOVE) $(APPLICATION_SOURCE_PATH)/$(APPLICATION_SCRIPT_FOLDERNAME)/$(APPLICATION_SCRIPT_FILENAME)
+ @$(CMD_REMOVE) $(APPLICATION_BUILD_PATH)/$(APPLICATION_SCRIPT_FOLDERNAME)/$(APPLICATION_SCRIPT_FILENAME)
+ @$(CMD_REMOVE) $(APPLICATION_TRANSLATION_PATH)/messages.pot
+ @$(CMD_REMOVE) $(FRAMEWORK_TRANSLATION_PATH)/messages.pot
+
+exec-distclean:
+ @echo " * Cleaning up..."
+ @$(CMD_FIND) . $(FILES_TEMP) -exec $(CMD_REMOVE) {} \;
+ @$(CMD_REMOVE) $(APPLICATION_SOURCE_PATH)/$(APPLICATION_SCRIPT_FOLDERNAME)
+ @$(CMD_REMOVE) $(APPLICATION_BUILD_PATH)
+ @$(CMD_REMOVE) $(APPLICATION_API_PATH)
+ @$(CMD_REMOVE) $(APPLICATION_DEBUG_PATH)
+ @$(CMD_REMOVE) $(APPLICATION_TRANSLATION_CLASS_PATH)
+ @$(CMD_REMOVE) $(APPLICATION_TRANSLATION_PATH)/messages.pot
+ @$(CMD_REMOVE) $(FRAMEWORK_TRANSLATION_PATH)/messages.pot
+ @$(CMD_REMOVE) $(FRAMEWORK_CACHE_PATH)
+ @$(CMD_REMOVE) $(FRAMEWORK_LOCALE_CLASS_PATH)
+ @$(CMD_REMOVE) $(FRAMEWORK_TRANSLATION_CLASS_PATH)
+
+
+
+
+
+#
+# Generator targets
+#
+
+exec-script-source:
+ @$(CMD_GENERATOR) \
+ $(COMPUTED_COMMON_INIT) \
+ $(COMPUTED_CLASS_PATH) \
+ $(COMPUTED_CLASS_URI) \
+ --generate-source-script \
+ $(COMPUTED_TEMPLATE) \
+ --source-script-file $(APPLICATION_SOURCE_PATH)/$(APPLICATION_SCRIPT_FOLDERNAME)/$(APPLICATION_SCRIPT_FILENAME) \
+ --define-runtime-setting $(FRAMEWORK_NAMESPACE).manager.object.AliasManager.resourceUri:$(FRAMEWORK_SOURCE_URI)/resource \
+ $(COMPUTED_SOURCE_INCLUDE) \
+ $(COMPUTED_SOURCE_LINEBREAKS)
+
+exec-script-build:
+ @$(CMD_GENERATOR) \
+ $(COMPUTED_COMMON_INIT) \
+ $(COMPUTED_CLASS_PATH) \
+ $(COMPUTED_RESOURCE) \
+ --generate-compiled-script \
+ --compiled-script-file $(APPLICATION_BUILD_PATH)/$(APPLICATION_SCRIPT_FOLDERNAME)/$(APPLICATION_SCRIPT_FILENAME) \
+ $(COMPUTED_BUILD_INCLUDE) \
+ $(COMPUTED_BUILD_OPTIMIZATIONS) \
+ $(COMPUTED_BUILD_LINEBREAKS)
+
+exec-resources-build:
+ @$(CMD_GENERATOR) \
+ $(COMPUTED_COMMON_INIT) \
+ $(COMPUTED_CLASS_PATH) \
+ $(COMPUTED_RESOURCE) \
+ $(COMPUTED_BUILD_INCLUDE)
+
+
+
+
+#
+# Utility targets
+#
+exec-pretty:
+ @$(CMD_GENERATOR) \
+ --include-without-dependencies $(APPLICATION_NAMESPACE).* \
+ --pretty-print \
+ $(COMPUTED_CLASS_PATH)
+
+exec-fix:
+ @$(CMD_GENERATOR) \
+ --include-without-dependencies $(APPLICATION_NAMESPACE).* \
+ --fix-source \
+ $(COMPUTED_CLASS_PATH)
+
+
+
+
+
+
+
+#
+# Debug targets
+#
+exec-tokenizer:
+ @$(CMD_GENERATOR) \
+ --include-without-dependencies $(APPLICATION_NAMESPACE).* \
+ --store-tokens \
+ --token-output-directory $(APPLICATION_DEBUG_PATH)/tokens \
+ $(COMPUTED_CLASS_PATH)
+
+exec-treegenerator:
+ @$(CMD_GENERATOR) \
+ --include-without-dependencies $(APPLICATION_NAMESPACE).* \
+ --store-tree \
+ --tree-output-directory $(APPLICATION_DEBUG_PATH)/tree \
+ $(COMPUTED_CLASS_PATH)
+
+
+
+
+
+
+
+check-locales:
+ @echo $(APPLICATION_LOCALES) | $(CMD_CHECKLOCALES)
+
+ifdef APPLICATION_LOCALES
+
+exec-localization: check-locales exec-framework-localization
+exec-translation: check-locales exec-framework-translation exec-application-translation
+
+else
+
+exec-localization: exec-none
+exec-translation: exec-none
+
+endif
+
+
+
+
+
+exec-framework-localization:
+ @echo
+ @echo " PREPARING LOCALIZATION"
+ @$(CMD_LINE)
+ @mkdir -p $(FRAMEWORK_CACHE_PATH)
+ @mkdir -p $(FRAMEWORK_LOCALE_CLASS_PATH)
+ @echo " * Processing locales..."
+ @for LOC in $(APPLICATION_LOCALES); do \
+ echo " - Locale: $$LOC"; \
+ mod=0; \
+ if [ ! -r $(FRAMEWORK_CACHE_PATH)/$$LOC.xml -a -r $(FRAMEWORK_LOCALE_PATH)/$$LOC.xml ]; then \
+ echo " - Copying $$LOC.xml..."; \
+ cp -f $(FRAMEWORK_LOCALE_PATH)/$$LOC.xml $(FRAMEWORK_CACHE_PATH)/$$LOC.xml; \
+ mod=1; \
+ fi; \
+ if [ ! -r $(FRAMEWORK_CACHE_PATH)/$$LOC.xml ]; then \
+ echo " - Downloading $$LOC.xml..."; \
+ (which wget > /dev/null 2>&1 && wget $(FRAMEWORK_CLDR_DOWNLOAD_URI)/$$LOC.xml -q -P $(FRAMEWORK_CACHE_PATH)) || \
+ (which curl > /dev/null 2>&1 && curl $(FRAMEWORK_CLDR_DOWNLOAD_URI)/$$LOC.xml -s -o $(FRAMEWORK_CACHE_PATH)/$$LOC.xml); \
+ mod=1; \
+ if [ ! -r $(FRAMEWORK_CACHE_PATH)/$$LOC.xml ]; then \
+ echo " - Download failed! Please install wget (preferred) or curl."; \
+ exit 1; \
+ fi; \
+ fi; \
+ if [ ! -r $(FRAMEWORK_LOCALE_CLASS_PATH)/$$LOC.js -o $$mod -eq 1 ]; then \
+ echo " - Generating $$LOC.js..."; \
+ $(CMD_CLDR) -o $(FRAMEWORK_LOCALE_CLASS_PATH) $(FRAMEWORK_CACHE_PATH)/$$LOC.xml; \
+ fi; \
+ done
+
+exec-framework-translation:
+ @echo
+ @echo " PREPARING FRAMEWORK TRANSLATION"
+ @$(CMD_LINE)
+ @echo " * Processing source code..."
+ @which xgettext > /dev/null 2>&1 || (echo " - Please install gettext tools (xgettext)" && exit 1)
+ @which msginit > /dev/null 2>&1 || (echo " - Please install gettext tools (msginit)" && exit 1)
+ @which msgmerge > /dev/null 2>&1 || (echo " - Please install gettext tools (msgmerge)" && exit 1)
+
+ @mkdir -p $(FRAMEWORK_TRANSLATION_PATH)
+ @mkdir -p $(FRAMEWORK_TRANSLATION_CLASS_PATH)
+
+ @rm -f $(FRAMEWORK_TRANSLATION_PATH)/messages.pot
+ @touch $(FRAMEWORK_TRANSLATION_PATH)/messages.pot
+ @for file in `find $(FRAMEWORK_SOURCE_PATH)/$(FRAMEWORK_CLASS_FOLDERNAME) -name "*.js"`; do \
+ LC_ALL=C xgettext --language=Java --from-code=UTF-8 \
+ -kthis.trc -kthis.tr -kthis.marktr -kthis.trn:1,2 \
+ -kManager.trc -kManager.tr -kManager.marktr -kManager.trn:1,2 \
+ --sort-by-file --add-comments=TRANSLATION \
+ -o $(FRAMEWORK_TRANSLATION_PATH)/messages.pot \
+ `find $(FRAMEWORK_SOURCE_PATH)/$(FRAMEWORK_CLASS_FOLDERNAME) -name "*.js"` 2>&1 | grep -v warning; \
+ break; done
+
+ @echo " * Processing translations..."
+ @for LOC in $(APPLICATION_LOCALES); do \
+ echo " - Translation: $$LOC"; \
+ if [ ! -r $(FRAMEWORK_TRANSLATION_PATH)/$$LOC.po ]; then \
+ echo " - Generating initial translation file..."; \
+ msginit --locale $$LOC --no-translator -i $(FRAMEWORK_TRANSLATION_PATH)/messages.pot -o $(FRAMEWORK_TRANSLATION_PATH)/$$LOC.po > /dev/null 2>&1; \
+ else \
+ echo " - Merging translation file..."; \
+ msgmerge --update -q $(FRAMEWORK_TRANSLATION_PATH)/$$LOC.po $(FRAMEWORK_TRANSLATION_PATH)/messages.pot; \
+ fi; \
+ echo " - Generating catalog..."; \
+ mkdir -p $(FRAMEWORK_TRANSLATION_PATH); \
+ $(CMD_MSGFMT) \
+ -n $(FRAMEWORK_TRANSLATION_CLASS_NAMESPACE) \
+ -d $(FRAMEWORK_TRANSLATION_CLASS_PATH) \
+ $(FRAMEWORK_TRANSLATION_PATH)/$$LOC.po; \
+ done
+ @rm -rf $(FRAMEWORK_TRANSLATION_PATH)/*~
+
+exec-application-translation:
+ @echo
+ @echo " PREPARING APPLICATION TRANSLATION"
+ @$(CMD_LINE)
+ @echo " * Processing source code..."
+
+ @which xgettext > /dev/null 2>&1 || (echo " - Please install gettext tools (xgettext)" && exit 1)
+ @which msginit > /dev/null 2>&1 || (echo " - Please install gettext tools (msginit)" && exit 1)
+ @which msgmerge > /dev/null 2>&1 || (echo " - Please install gettext tools (msgmerge)" && exit 1)
+
+ @mkdir -p $(APPLICATION_TRANSLATION_PATH)
+ @mkdir -p $(APPLICATION_TRANSLATION_CLASS_PATH)
+
+ @rm -f $(APPLICATION_TRANSLATION_PATH)/messages.pot
+ @touch $(APPLICATION_TRANSLATION_PATH)/messages.pot
+ @for file in `find $(APPLICATION_SOURCE_PATH)/$(APPLICATION_CLASS_FOLDERNAME) -name "*.js"`; do \
+ LC_ALL=C xgettext --language=Java --from-code=UTF-8 \
+ -kthis.trc -kthis.tr -kthis.marktr -kthis.trn:1,2 \
+ -kManager.trc -kManager.tr -kManager.marktr -kManager.trn:1,2 \
+ --sort-by-file --add-comments=TRANSLATION \
+ -o $(APPLICATION_TRANSLATION_PATH)/messages.pot \
+ `find $(APPLICATION_SOURCE_PATH)/$(APPLICATION_CLASS_FOLDERNAME) -name "*.js"` 2>&1 | grep -v warning; \
+ break; done
+
+ @echo " * Processing translations..."
+ @for LOC in $(APPLICATION_LOCALES); do \
+ echo " - Translation: $$LOC"; \
+ if [ ! -r $(APPLICATION_TRANSLATION_PATH)/$$LOC.po ]; then \
+ echo " - Generating initial translation file..."; \
+ msginit --locale $$LOC --no-translator -i $(APPLICATION_TRANSLATION_PATH)/messages.pot -o $(APPLICATION_TRANSLATION_PATH)/$$LOC.po > /dev/null 2>&1; \
+ else \
+ echo " - Merging translation file..."; \
+ msgmerge --update -q $(APPLICATION_TRANSLATION_PATH)/$$LOC.po $(APPLICATION_TRANSLATION_PATH)/messages.pot; \
+ fi; \
+ echo " - Generating catalog..."; \
+ mkdir -p $(APPLICATION_TRANSLATION_PATH); \
+ $(CMD_MSGFMT) \
+ -n $(APPLICATION_TRANSLATION_CLASS_NAMESPACE) \
+ -d $(APPLICATION_TRANSLATION_CLASS_PATH) \
+ $(APPLICATION_TRANSLATION_PATH)/$$LOC.po; \
+ done
+ @rm -rf $(APPLICATION_TRANSLATION_PATH)/*~
+
+
+
+
+
+
+
+#
+# File copy targets
+#
+
+exec-files-build:
+ @echo
+ @echo " COPYING OF FILES"
+ @$(CMD_LINE)
+ @echo " * Copying files..."
+ @mkdir -p $(APPLICATION_BUILD_PATH)
+ @for file in $(APPLICATION_FILES); do \
+ echo " - Processing $$file"; \
+ cp -Rf $(APPLICATION_SOURCE_PATH)/$$file $(APPLICATION_BUILD_PATH)/$$file; \
+ done
+
+exec-files-api:
+ @echo
+ @echo " COPYING OF FILES"
+ @$(CMD_LINE)
+ @echo " * Copying files..."
+ @mkdir -p $(APPLICATION_API_PATH)
+ @for file in $(APIVIEWER_FILES); do \
+ echo " - Processing $$file"; \
+ cp -Rf $(APIVIEWER_SOURCE_PATH)/$$file $(APPLICATION_API_PATH)/$$file; \
+ done
+
+
+
+
+
+
+
+#
+# API targets
+#
+
+exec-api-data:
+ @$(CMD_GENERATOR) \
+ --generate-api-documentation \
+ --api-documentation-json-file $(APPLICATION_API_PATH)/script/apidata.js \
+ $(COMPUTED_CLASS_PATH) \
+ $(COMPUTED_API_INCLUDE)
+
+exec-api-build:
+ @$(CMD_GENERATOR) \
+ --class-path $(FRAMEWORK_SOURCE_PATH)/class \
+ --class-path $(APIVIEWER_SOURCE_PATH)/class \
+ --include apiviewer \
+ --generate-compiled-script \
+ --compiled-script-file $(APPLICATION_API_PATH)/script/$(APIVIEWER_NAMESPACE).js \
+ --optimize-strings --optimize-variables \
+ --copy-resources \
+ --resource-input $(FRAMEWORK_SOURCE_PATH)/resource \
+ --resource-output $(APPLICATION_API_PATH)/resource/$(FRAMEWORK_NAMESPACE) \
+ --resource-input $(APIVIEWER_SOURCE_PATH)/resource \
+ --resource-output $(APPLICATION_API_PATH)/resource/$(APIVIEWER_NAMESPACE) \
+ --enable-resource-filter \
+ --define-runtime-setting $(FRAMEWORK_NAMESPACE).manager.object.AliasManager.resourceUri:resource/$(FRAMEWORK_NAMESPACE) \
+ --define-runtime-setting $(APIVIEWER_NAMESPACE).Application.resourceUri:resource/$(APIVIEWER_NAMESPACE) \
+ --define-runtime-setting $(APIVIEWER_NAMESPACE).Viewer.title:$(APPLICATION_API_TITLE)
+
+
+
+
+
+
+
+#
+# Publish targets
+#
+exec-publish:
+ @echo " * Syncing files..."
+ @$(CMD_SYNC_ONLINE) $(APPLICATION_BUILD_PATH)/* $(APPLICATION_PUBLISH_PATH)
+
+
+
+
+
+
+
+#
+# None helper target
+#
+exec-none:
+ @true
+
+
+
+
+
+
+###################################################################################
+# INFO TARGETS
+###################################################################################
+
+info-build:
+ @echo
+ @echo "****************************************************************************"
+ @echo " GENERATING BUILD VERSION OF $(APPLICATION_MAKE_TITLE)"
+ @echo "****************************************************************************"
+
+info-source:
+ @echo
+ @echo "****************************************************************************"
+ @echo " GENERATING SOURCE VERSION OF $(APPLICATION_MAKE_TITLE)"
+ @echo "****************************************************************************"
+
+info-api:
+ @echo
+ @echo "****************************************************************************"
+ @echo " GENERATING API VIEWER FOR $(APPLICATION_MAKE_TITLE)"
+ @echo "****************************************************************************"
+
+info-pretty:
+ @echo
+ @echo "****************************************************************************"
+ @echo " PRETTIFYING $(APPLICATION_MAKE_TITLE) CLASSES"
+ @echo "****************************************************************************"
+
+info-fix:
+ @echo
+ @echo "****************************************************************************"
+ @echo " FIXING $(APPLICATION_MAKE_TITLE) CLASSES"
+ @echo "****************************************************************************"
+
+info-help:
+ @echo
+ @echo "****************************************************************************"
+ @echo " HELP FOR $(APPLICATION_MAKE_TITLE)"
+ @echo "****************************************************************************"
+
+info-clean:
+ @echo
+ @echo "****************************************************************************"
+ @echo " CLEANING UP $(APPLICATION_MAKE_TITLE)"
+ @echo "****************************************************************************"
+
+info-distclean:
+ @echo
+ @echo "****************************************************************************"
+ @echo " CLEANING UP $(APPLICATION_MAKE_TITLE)" COMPLETELY
+ @echo "****************************************************************************"
+
+info-publish:
+ @echo
+ @echo "****************************************************************************"
+ @echo " PUBLISHING $(APPLICATION_MAKE_TITLE)"
+ @echo "****************************************************************************"
+
+info-debug:
+ @echo
+ @echo "****************************************************************************"
+ @echo " CREATING DEBUG DATA FOR $(APPLICATION_MAKE_TITLE)"
+ @echo "****************************************************************************"
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/project.mk b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/project.mk
new file mode 100644
index 0000000000..6e850cdb78
--- /dev/null
+++ b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/project.mk
@@ -0,0 +1,40 @@
+################################################################################
+#
+# qooxdoo - the new era of web development
+#
+# http://qooxdoo.org
+#
+# Copyright:
+# 2006-2007 1&1 Internet AG, Germany, http://www.1and1.org
+#
+# License:
+# LGPL: http://www.gnu.org/licenses/lgpl.html
+# EPL: http://www.eclipse.org/org/documents/epl-v10.php
+# See the LICENSE file in the project's top-level directory for details.
+#
+# Authors:
+# * Sebastian Werner (wpbasti)
+# * Andreas Ecker (ecker)
+# * Fabian Jakobs (fjakobs)
+#
+################################################################################
+
+warning:
+ @echo
+ @echo "****************************************************************************"
+ @echo " WARNING"
+ @echo "----------------------------------------------------------------------------"
+ @echo " This file 'project.mk' has been renamed to 'application.mk'."
+ @echo " between release 0.6.4 and 0.6.5. You have to migrate manually:"
+ @echo " Please replace all occurrences of 'project.mk' in your Makefiles with"
+ @echo " 'application.mk'."
+ @echo "****************************************************************************"
+
+
+
+source: warning
+build: warning
+api: warning
+all: warning
+
+include $(QOOXDOO_PATH)/frontend/framework/tool/make/application.mk
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/targets.mk b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/targets.mk
new file mode 100644
index 0000000000..d785d8614e
--- /dev/null
+++ b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/make/targets.mk
@@ -0,0 +1,49 @@
+################################################################################
+#
+# qooxdoo - the new era of web development
+#
+# http://qooxdoo.org
+#
+# Copyright:
+# 2006-2007 1&1 Internet AG, Germany, http://www.1and1.org
+#
+# License:
+# LGPL: http://www.gnu.org/licenses/lgpl.html
+# EPL: http://www.eclipse.org/org/documents/epl-v10.php
+# See the LICENSE file in the project's top-level directory for details.
+#
+# Authors:
+# * Sebastian Werner (wpbasti)
+# * Andreas Ecker (ecker)
+# * Fabian Jakobs (fjakobs)
+#
+################################################################################
+
+###################################################################################
+# TARGETS
+###################################################################################
+
+#
+# Target definitions
+#
+
+.PHONY: source build api all locales pretty fix help clean distclean publish debug
+
+source: info-source exec-localization exec-translation exec-script-source
+build: info-build exec-localization exec-translation exec-script-build exec-files-build
+api: info-api exec-localization exec-translation exec-api-build exec-api-data exec-files-api
+all: source build api
+
+locales: exec-localization exec-translation
+
+pretty: info-pretty exec-pretty
+fix: info-fix exec-fix
+
+help: info-help
+
+clean: info-clean exec-clean
+distclean: info-distclean exec-distclean
+
+publish: build info-publish exec-publish
+
+debug: info-debug exec-tokenizer exec-treegenerator