head	1.47;
access;
symbols
	v20020609:1.47
	v20020608:1.47
	v20020607:1.47
	v20020606:1.47
	v20020605:1.47
	v20020604:1.47
	F1:1.38
	I20020521:1.38
	R1-0:1.25.0.2
	startR2:1.25
	CDT-0-5-1:1.18
	CDT-0-5:1.18.0.2
	CDT-0-5-0:1.18;
locks; strict;
comment	@# @;


1.47
date	2002.06.04.21.09.35;	author enriquev;	state Exp;
branches;
next	1.46;

1.46
date	2002.06.04.20.36.17;	author enriquev;	state Exp;
branches;
next	1.45;

1.45
date	2002.05.30.14.34.59;	author enriquev;	state Exp;
branches;
next	1.44;

1.44
date	2002.05.28.21.24.53;	author turnham;	state Exp;
branches;
next	1.43;

1.43
date	2002.05.23.14.42.34;	author turnham;	state Exp;
branches;
next	1.42;

1.42
date	2002.05.23.13.07.03;	author turnham;	state Exp;
branches;
next	1.41;

1.41
date	2002.05.23.13.03.55;	author turnham;	state Exp;
branches;
next	1.40;

1.40
date	2002.05.23.12.51.40;	author turnham;	state Exp;
branches;
next	1.39;

1.39
date	2002.05.23.12.44.29;	author turnham;	state Exp;
branches;
next	1.38;

1.38
date	2002.05.08.21.12.59;	author turnham;	state Exp;
branches;
next	1.37;

1.37
date	2002.05.06.19.47.20;	author turnham;	state Exp;
branches;
next	1.36;

1.36
date	2002.04.23.20.27.27;	author turnham;	state Exp;
branches;
next	1.35;

1.35
date	2002.04.23.20.23.53;	author mkwan;	state Exp;
branches;
next	1.34;

1.34
date	2002.03.21.18.03.24;	author turnham;	state Exp;
branches;
next	1.33;

1.33
date	2002.03.20.19.02.37;	author turnham;	state Exp;
branches;
next	1.32;

1.32
date	2002.03.20.18.09.12;	author turnham;	state Exp;
branches;
next	1.31;

1.31
date	2002.03.04.18.32.46;	author turnham;	state Exp;
branches;
next	1.30;

1.30
date	2002.03.01.16.59.30;	author turnham;	state Exp;
branches;
next	1.29;

1.29
date	2002.02.06.13.41.50;	author turnham;	state Exp;
branches;
next	1.28;

1.28
date	2002.02.04.21.47.14;	author turnham;	state Exp;
branches;
next	1.27;

1.27
date	2002.02.04.20.12.08;	author turnham;	state Exp;
branches;
next	1.26;

1.26
date	2002.02.04.17.15.46;	author turnham;	state Exp;
branches;
next	1.25;

1.25
date	2002.01.23.16.25.47;	author turnham;	state Exp;
branches
	1.25.2.1;
next	1.24;

1.24
date	2002.01.22.14.55.44;	author turnham;	state Exp;
branches;
next	1.23;

1.23
date	2002.01.20.22.37.38;	author turnham;	state Exp;
branches;
next	1.22;

1.22
date	2002.01.18.18.21.18;	author dmcknigh;	state Exp;
branches;
next	1.21;

1.21
date	2002.01.17.14.48.42;	author turnham;	state Exp;
branches;
next	1.20;

1.20
date	2001.12.23.18.57.14;	author turnham;	state Exp;
branches;
next	1.19;

1.19
date	2001.12.11.15.38.16;	author turnham;	state Exp;
branches;
next	1.18;

1.18
date	2001.12.10.14.53.16;	author turnham;	state Exp;
branches;
next	1.17;

1.17
date	2001.12.10.14.51.32;	author turnham;	state Exp;
branches;
next	1.16;

1.16
date	2001.12.10.14.33.41;	author turnham;	state Exp;
branches;
next	1.15;

1.15
date	2001.12.07.15.40.51;	author turnham;	state Exp;
branches;
next	1.14;

1.14
date	2001.12.07.13.40.56;	author turnham;	state Exp;
branches;
next	1.13;

1.13
date	2001.12.06.20.33.20;	author turnham;	state Exp;
branches;
next	1.12;

1.12
date	2001.12.06.03.47.35;	author thomson;	state Exp;
branches;
next	1.11;

1.11
date	2001.12.05.02.19.09;	author turnham;	state Exp;
branches;
next	1.10;

1.10
date	2001.12.04.23.15.42;	author turnham;	state Exp;
branches;
next	1.9;

1.9
date	2001.12.03.23.01.23;	author turnham;	state Exp;
branches;
next	1.8;

1.8
date	2001.12.03.20.19.31;	author turnham;	state Exp;
branches;
next	1.7;

1.7
date	2001.11.29.15.04.22;	author turnham;	state Exp;
branches;
next	1.6;

1.6
date	2001.11.28.19.44.41;	author turnham;	state Exp;
branches;
next	1.5;

1.5
date	2001.11.28.19.34.46;	author turnham;	state Exp;
branches;
next	1.4;

1.4
date	2001.11.28.18.35.11;	author turnham;	state Exp;
branches;
next	1.3;

1.3
date	2001.11.28.17.03.01;	author turnham;	state Exp;
branches;
next	1.2;

1.2
date	2001.11.28.16.43.28;	author turnham;	state Exp;
branches;
next	1.1;

1.1
date	2001.11.28.15.18.14;	author turnham;	state Exp;
branches;
next	;

1.25.2.1
date	2002.02.04.17.12.59;	author turnham;	state Exp;
branches;
next	1.25.2.2;

1.25.2.2
date	2002.02.04.20.09.59;	author turnham;	state Exp;
branches;
next	1.25.2.3;

1.25.2.3
date	2002.03.04.18.33.33;	author turnham;	state Exp;
branches;
next	1.25.2.4;

1.25.2.4
date	2002.03.20.18.04.47;	author turnham;	state Exp;
branches;
next	1.25.2.5;

1.25.2.5
date	2002.03.20.18.51.18;	author turnham;	state Exp;
branches;
next	1.25.2.6;

1.25.2.6
date	2002.03.21.17.59.58;	author turnham;	state Exp;
branches;
next	;


desc
@@


1.47
log
@zip excludes helpwebapp sources
@
text
@
# Primary Targets
# ---------------
#
#  "development" or "dev"  -> Generate Makefile & Build Environment for All Plugins, and perform build
#  "production" or "prod"  -> Generate a tarball that includes the necessary jars and zipped up source 
#  "all" (or no target)    -> Build all plugins (makefiles are assumed to have been created)
#  "clean-dev"             -> Wipe out all class files
#
# Secondary Targets (used by Primary Targets, but could still be used on their own)
# -----------------
#
#  "makefiles"             -> Generate Makefiles & Build Environment for All Plugins
#  "jars"                  -> Generate Jar Files for every Plugin
#  "javadocs"              -> Generate Javadocs for every Plugin
#
SHELL=sh
DATE=`date +%Y%m%d`

# Grab Absolute Path to Plugin Directory...We do this by launching GenerateMakefiles with no arguments,
# which uses java.io.File.getCanonicalPath() to do the resolving of symbolic links, path separators etc
pluginsDirectory := $(shell cd build && javac GenerateMakefiles.java && cd .. && java -cp . build.GenerateMakefiles)

ifdef ECLIPSE
eclipseLocation := $(ECLIPSE)
else
eclipseLocation := $(shell test -r .eclipse && cat .eclipse)
endif

# List of Plugins that we build
buildPlugins += org.eclipse.cdt.debug.gdbPicl
buildPlugins += org.eclipse.cdt.dstore.extra
buildPlugins += org.eclipse.cdt.dstore.extra.server
buildPlugins += org.eclipse.cdt.dstore.core
buildPlugins += org.eclipse.cdt.cpp.miners.parser
buildPlugins += org.eclipse.cdt.dstore.hosts
buildPlugins += org.eclipse.cdt.dstore.ui
buildPlugins += org.eclipse.cdt.cpp.ui
buildPlugins += org.eclipse.cdt.linux.help
buildPlugins += org.eclipse.cdt.dstore.miners
buildPlugins += org.eclipse.cdt.cpp.miners
buildPlugins += org.eclipse.cdt.pa.ui



# List of All Plugins Used in C/C++ Deliverable (e.g buildPlugins plus the ones we don't build)
allPlugins = $(buildPlugins)
allPlugins += org.eclipse.cdt.cpp.docs.user
allPlugins += com.ibm.lpex
#allPlugins += com.ibm.lpex.doc.user
#allPlugius += com.ibm.lpex.doc.isv
allPlugins += com.ibm.debug.doc.user
allPlugins += com.ibm.debug.pdt
allPlugins += com.ibm.debug.daemon
allPlugins += com.ibm.debug.common


# List of Plugins needed for the Serverside Zip
serverPlugins =  org.eclipse.cdt.dstore.core
serverPlugins += org.eclipse.cdt.dstore.extra.server
serverPlugins += org.eclipse.cdt.dstore.miners
serverPlugins += org.eclipse.cdt.cpp.miners
serverPlugins += org.eclipse.cdt.cpp.miners.parser
serverPlugins += com.ibm.debug.pdt
serverPlugins += com.ibm.debug.daemon
serverPlugins += org.eclipse.cdt.debug.gdbPicl

# PUBLIC TARGETS
# --------------
# 
# The following are the targets that are meant to be used by you.  For the most part the actual
# work is done in the private targets below.  For the "public" targets that do some work on each
# plugin, we accomplish this by appending some text like "_buildPlugin" to every plugin name, 
# and then provide the actual rules for these pseudo-prerequisites below.
all:
	@@cd org 2>/dev/null && (${MAKE} ; cd ..) || (echo "";echo "Build Environment needs to be generated...";echo "Run:  make dev[elopment]")

development     : makefiles $(patsubst %,%_buildPlugin,$(buildPlugins))
production      : development jars source-zips createZip createFinalPackage
jars            : $(patsubst %,%_createJars,$(buildPlugins))
source-zips     : $(patsubst %,%_createSrcZips,$(buildPlugins))
clean-dev       : $(patsubst %,%_cleanPlugin,$(buildPlugins))
makefiles       : generateBuildEnvironment
# Helper shortcut targets (for lazy typists)
dev             : development
prod            : production

#
# WORKAROUND
# Correct the file modes of executable scripts in case the
# components were acquired by Eclipse CVS
fixup:
	find .. -type f -a \! -name '*.java' \
		-a \! -name '*.class' -a \! -name '*html' \
		-a \! -name '*.gif' | xargs file | grep executable | \
		sed -e 's/\(.*\):.*/\1/' | xargs chmod a+x

# PRIVATE TARGETS
# ---------------
# 
# Don't try to use these targets...They are helpers.
%_buildPlugin: 
	@@echo Building $(patsubst %_buildPlugin,%,$@@)
	@@-cd $(pluginsDirectory)/$(patsubst %_buildPlugin,%,$@@) && $(MAKE) 
	@@echo Finished $(patsubst %_buildPlugin,%,$@@)

%_createJars:
	@@-cd $(pluginsDirectory)/$(patsubst %_createJars,%,$@@) && $(MAKE) jar   

%_createSrcZips:
	@@-cd $(pluginsDirectory)/$(patsubst %_createSrcZips,%,$@@) && $(MAKE) source-zip   

%_cleanPlugin:
	@@-cd $(pluginsDirectory)/$(patsubst %_cleanPlugin,%,$@@) && $(MAKE) clean

generateBuildEnvironment: unzipBuildPlugins
ifneq "$(ECLIPSE)" ""
	@@echo $(eclipseLocation) >.eclipse
endif
	java -cp $(pluginsDirectory)/org.eclipse.cdt.dstore.core -DECLIPSE=$(eclipseLocation) build.GenerateMakefiles $(buildPlugins) || (echo '***' Error: Usage: make ECLIPSE=eclipse_directory targets && false)

unzipBuildPlugins: $(patsubst %,%_unzipPlugin,$(buildPlugins))

%_unzipPlugin:
	@@-cd $(pluginsDirectory)/$(patsubst %_unzipPlugin,%,$@@);\
	(cd org 2>/dev/null || cd com 2>/dev/null) || (echo Unzipping Source for $(patsubst %_unzipPlugin,%,$@@); unzip -qo *src.zip)

zipFile=cdt-eclipse-R2-$(DATE)-local.zip
createZip: createEmptyZip zipUpPlugins
	@@echo Created $(pluginsDirectory)/$(zipFile)

# Here we explicitly add makefiles that we want included in the final package, since we exclude makefiles in general.
createEmptyZip: 
	@@-cd $(pluginsDirectory) && rm -f $(zipFile) && zip -q $(zipFile) org.eclipse.cdt.dstore.core/makefile org.eclipse.cdt.cpp.docs.user/sample/payroll/makefile

zipUpPlugins: $(patsubst %,%_zipPlugin,$(allPlugins))

%_zipPlugin: 
	@@-cd $(pluginsDirectory) && zip -qr $(zipFile) $(patsubst %_zipPlugin,%,$@@) -x org *org\/* com *makefile* *setenv.mk* *com\/* *CVS*

tempDir=cdt
finalZip=cdt-eclipse-R2-$(DATE).zip

createFinalPackage: createServerZip createFinalZip
	@@echo Created $(pluginsDirectory)/$(finalZip)

createFinalZip:
	@@-cd $(pluginsDirectory) && mkdir $(tempDir);\
	cp org.eclipse.cdt.cpp.docs.user/readme.txt $(tempDir);\
	cp org.eclipse.cdt.cpp.docs.user/install.txt $(tempDir);\
	cp org.eclipse.cdt.cpp.docs.user/todo.txt $(tempDir);\
	cp org.eclipse.cdt.cpp.docs.user/install-cdt $(tempDir);\
	cp $(zipFile) $(tempDir);\
	cp $(serverZipFile) $(tempDir);\
	zip -qr $(finalZip) $(tempDir);\
	rm -r $(tempDir)

serverZipFile=cdt-eclipse-R2-$(DATE)-server.zip

createServerZip: createEmptyServerZip zipServerPlugins zipHelpUtils
	@@echo Created $(pluginsDirectory)/$(serverZipFile)

# These jars are needed in the server by the Help
tomcatDir=org.eclipse.tomcat_4.0.3
luceneDir=org.apache.lucene_1.2.0
xercesDir=org.apache.xerces_4.0.3
cdtutilsDir=cdt_utils
zipHelpUtils:
	@@-cd $(pluginsDirectory) && mkdir $(cdtutilsDir);\
	cp $(tomcatDir)/bootstrap.jar $(cdtutilsDir);\
	cp $(tomcatDir)/catalina.jar $(cdtutilsDir);\
	cp $(tomcatDir)/jakarta-regexp-1.2.jar $(cdtutilsDir);\
	cp $(tomcatDir)/jasper-compiler.jar $(cdtutilsDir);\
	cp $(tomcatDir)/jasper-runtime.jar $(cdtutilsDir);\
	cp $(tomcatDir)/naming-common.jar $(cdtutilsDir);\
	cp $(tomcatDir)/naming-factory.jar $(cdtutilsDir);\
	cp $(tomcatDir)/naming-resources.jar $(cdtutilsDir);\
	cp $(tomcatDir)/servlet.jar $(cdtutilsDir);\
	cp $(tomcatDir)/servlets-common.jar $(cdtutilsDir);\
	cp $(tomcatDir)/servlets-default.jar $(cdtutilsDir);\
	cp $(tomcatDir)/servlets-invoker.jar $(cdtutilsDir);\
	cp $(tomcatDir)/servlets-manager.jar $(cdtutilsDir);\
	cp $(tomcatDir)/servlets-snoop.jar $(cdtutilsDir);\
	cp $(tomcatDir)/servlets-webdav.jar $(cdtutilsDir);\
	cp $(tomcatDir)/tomcat-util.jar $(cdtutilsDir);\
	cp $(luceneDir)/lucene-1.2-rc4.jar $(cdtutilsDir);\
	cp $(luceneDir)/lucene-demos-1.2-rc4.jar $(cdtutilsDir);\
	cp $(xercesDir)/xercesImpl.jar $(cdtutilsDir);\
	cp $(xercesDir)/xmlParserAPIs.jar $(cdtutilsDir);\
	zip -qr $(serverZipFile) $(cdtutilsDir);\
	rm -r $(cdtutilsDir)

#Not sure how to create an empty zip (without priming it with something)...so I just add the parser directory by default
createEmptyServerZip:
	@@-cd $(pluginsDirectory) && rm -f $(serverZipFile) && zip -q $(serverZipFile) org.eclipse.cdt.dstore.core/makefile

zipServerPlugins: $(patsubst %,%_zipServerPlugin,$(serverPlugins))

%_zipServerPlugin:
	@@-cd $(pluginsDirectory) && zip -qr $(serverZipFile) $(patsubst %_zipServerPlugin,%,$@@) -x org *org\/* *makefile* *setenv.mk* com *com\/* *CVS* *help\/helpwebapp\/servlet\/* *build\/*.class

# Targets specific to org.eclipse.cdt.dstore.core (these are copied from rules.mk...so make sure they stay in synch!!!
jarFile=dstore_core.jar
pluginName=org.eclipse.cdt.dstore.core

jar:
	@@cd $(pluginsDirectory)/$(pluginName);\
	rm -f $(jarFile);\
	touch $(jarFile);\
	find . -name '*.class' -o -name '*.properties' | xargs jar uf $(jarFile)
	@@echo " Created" $(pluginsDirectory)/$(pluginName)/$(jarFile) 

source-zip:
	@@cd $(pluginsDirectory)/$(pluginName);\
	rm -f $(patsubst %.jar,%src.zip,$(jarFile));\
	zip -qr $(patsubst %.jar,%src.zip,$(jarFile)) . -i *.java *.jj *.properties build/*.mk build/*.java makefile 
	@@echo " Created" $(pluginsDirectory)/$(pluginName)/$(patsubst %.jar,%src.zip,$(jarFile)) 

clean:
	@@cd $(pluginsDirectory)/$(pluginName);\
	find . -name '*.class' |xargs rm -f
@


1.46
log
@move to F2
@
text
@d200 1
a200 1
	@@-cd $(pluginsDirectory) && zip -qr $(serverZipFile) $(patsubst %_zipServerPlugin,%,$@@) -x org *org\/* *makefile* *setenv.mk* com *com\/* *CVS*
@


1.45
log
@add external jars used by helpto server.zip
@
text
@d163 5
d169 23
a191 22
	@@-cd $(pluginsDirectory) && mkdir cdt_utils;\
	cp org.eclipse.tomcat_4.0.3/bootstrap.jar cdt_utils;\
	cp org.eclipse.tomcat_4.0.3/catalina.jar cdt_utils;\
	cp org.eclipse.tomcat_4.0.3/jakarta-regexp-1.2.jar cdt_utils;\
	cp org.eclipse.tomcat_4.0.3/jasper-compiler.jar cdt_utils;\
	cp org.eclipse.tomcat_4.0.3/jasper-runtime.jar cdt_utils;\
	cp org.eclipse.tomcat_4.0.3/naming-common.jar cdt_utils;\
	cp org.eclipse.tomcat_4.0.3/naming-factory.jar cdt_utils;\
	cp org.eclipse.tomcat_4.0.3/naming-resources.jar cdt_utils;\
	cp org.eclipse.tomcat_4.0.3/servlet.jar cdt_utils;\
	cp org.eclipse.tomcat_4.0.3/servlets-common.jar cdt_utils;\
	cp org.eclipse.tomcat_4.0.3/servlets-default.jar cdt_utils;\
	cp org.eclipse.tomcat_4.0.3/servlets-invoker.jar cdt_utils;\
	cp org.eclipse.tomcat_4.0.3/servlets-manager.jar cdt_utils;\
	cp org.eclipse.tomcat_4.0.3/servlets-snoop.jar cdt_utils;\
	cp org.eclipse.tomcat_4.0.3/servlets-webdav.jar cdt_utils;\
	cp org.eclipse.tomcat_4.0.3/tomcat-util.jar cdt_utils;\
	cp org.apache.lucene_1.2.0/lucene-1.2-rc4.jar cdt_utils;\
	cp org.apache.lucene_1.2.0/lucene-demos-1.2-rc4.jar cdt_utils;\
	cp org.apache.xerces_3.2.1/xerces.jar cdt_utils;\
	zip -qr $(serverZipFile) cdt_utils;\
	rm -r cdt_utils
@


1.44
log
@Added dynamic date for zip file names
@
text
@d160 1
a160 1
createServerZip: createEmptyServerZip zipServerPlugins
d162 24
@


1.43
log
@Changed arguments to the find command...-maxdepth 0 -> -print -prune AND -or -> o
@
text
@d18 2
d128 1
a128 1
zipFile=cdt-eclipse-R2-20020508-local.zip
d142 1
a142 1
finalZip=cdt-eclipse-R2-20020508.zip
d158 1
a158 1
serverZipFile=cdt-eclipse-R2-20020508-server.zip
@


1.42
log
@backout last changes
@
text
@d178 1
a178 1
	find . -name '*.class' -or -name '*.properties' | xargs jar uf $(jarFile)
@


1.41
log
@Changed find -or option to -o
@
text
@d178 1
a178 1
	find . -name '*.class' -o -name '*.properties' | xargs jar uf $(jarFile)
@


1.40
log
@Added com.ibm.debug.common to the list of plugins
@
text
@d178 1
a178 1
	find . -name '*.class' -or -name '*.properties' | xargs jar uf $(jarFile)
@


1.39
log
@Moved linux.help after cpp.ui in the build since help depends on CppPlugin
@
text
@d53 1
@


1.38
log
@removed javadoc targets...we will provide javadoc zips separately
@
text
@a32 1
buildPlugins += org.eclipse.cdt.linux.help	
d37 1
@


1.37
log
@changed file names to ..20020508...
@
text
@d76 1
a76 1
production      : development jars javadocs source-zips createZip createFinalPackage
a77 1
javadocs        : $(patsubst %,%_createJavadocs,$(buildPlugins))
a106 3
%_createJavadocs:
	@@-cd $(pluginsDirectory)/$(patsubst %_createJavadocs,%,$@@) && $(MAKE) javadoc   

a178 7

javadoc:
	@@cd $(pluginsDirectory)/$(pluginName);\
	rm -Rf docs;\
	mkdir docs;\
	find . -name '*.java' | xargs javadoc -d docs -classpath $(subst $(space),$(sep),$(cp)) 2>/dev/null
	@@echo " Created" $(pluginsDirectory)/$(pluginName)/docs
@


1.36
log
@Changed com.ibm.debug to com.ibm.debug.pdt
@
text
@d129 1
a129 1
zipFile=cdt-eclipse-R2-20020408-local.zip
d143 1
a143 1
finalZip=cdt-eclipse-R2-20020408.zip
d159 1
a159 1
serverZipFile=cdt-eclipse-R2-20020408-server.zip
@


1.35
log
@add build target for PA UI
@
text
@d51 1
a51 1
allPlugins += com.ibm.debug
d61 1
a61 1
serverPlugins += com.ibm.debug
@


1.34
log
@Added payroll makefile to the packaging step
@
text
@d40 1
@


1.33
log
@Changed the build name and added install-cdt to the packaging step
@
text
@d132 1
d134 1
a134 1
	@@-cd $(pluginsDirectory) && rm -f $(zipFile) && zip -q $(zipFile) org.eclipse.cdt.dstore.core/makefile
@


1.32
log
@Fixed clean problem...Global Clean is now "make clean-dev"
@
text
@d128 1
a128 1
zipFile=cdt-eclipse-0.5.0-local.zip
d141 1
a141 1
finalZip=cdt-eclipse-0.5.0.zip
d151 1
d157 1
a157 1
serverZipFile=cdt-eclipse-0.5.0-server.zip
@


1.31
log
@Added *.properties to the zipping of the dstore.core plugin
@
text
@d8 1
a8 2
#  "clean"                 -> Wipe out all class files
#  "clean-makefiles"       -> Wipe out the Build Environment
d79 1
a79 2
clean           : $(patsubst %,%_cleanPlugin,$(buildPlugins))
clean-makefiles : $(patsubst %,%_cleanMakefiles,$(buildPlugins))
a114 3

%_cleanMakefiles:
	@@-cd $(pluginsDirectory)/$(patsubst %_cleanMakefiles,%,$@@) && $(MAKE) clean-makefiles 
@


1.30
log
@Added com.ibm.debug.daemon to the allPlugins and serverPlugins
@
text
@d196 1
a196 1
	zip -qr $(patsubst %.jar,%src.zip,$(jarFile)) . -i *.java *.jj build/*.mk build/*.java makefile 
@


1.29
log
@Make sure linux.help is built before cpp.ui
@
text
@d30 1
a35 1
buildPlugins += org.eclipse.cdt.debug.gdbPicl
a46 1
allPlugins += com.ibm.debug
d52 2
d62 1
@


1.28
log
@Removed com.ibm.debug from the Build Plugins
@
text
@d33 1
d35 1
d41 2
a42 2
buildPlugins += org.eclipse.cdt.debug.gdbPicl
buildPlugins += org.eclipse.cdt.linux.help	
d47 1
@


1.27
log
@Prevented makefile and setenv.mk for each plugin being added to the local and server zips
@
text
@a29 1
buildPlugins += com.ibm.debug
d46 2
a47 2
allPlugins += com.ibm.lpex.doc.user
allPlugius += com.ibm.lpex.doc.isv
d49 1
@


1.26
log
@Added support for 2 new lpex doc plugins, and fixed problem with org/... not being removed before zipping
@
text
@d138 1
a138 1
	@@-cd $(pluginsDirectory) && zip -qr $(zipFile) $(patsubst %_zipPlugin,%,$@@) -x org *org\/* com makefile setenv.mk *com\/* *CVS*
d168 1
a168 1
	@@-cd $(pluginsDirectory) && zip -qr $(serverZipFile) $(patsubst %_zipServerPlugin,%,$@@) -x org *org\/* makefile setenv.mk com *com\/* *CVS*
@


1.25
log
@Changed GenerateMakefiles to be in proper package
@
text
@d47 2
d138 1
a138 1
	@@-cd $(pluginsDirectory) && zip -qr $(zipFile) $(patsubst %_zipPlugin,%,$@@) -x com makefile setenv.mk *com\/* *CVS*
d168 1
a168 1
	@@-cd $(pluginsDirectory) && zip -qr $(serverZipFile) $(patsubst %_zipServerPlugin,%,$@@) -x makefile setenv.mk com *com\/* *CVS*
@


1.25.2.1
log
@Fixed problem with /org/... not being removed before zipping and added support for the new lpex doc plugins
@
text
@a46 2
allPlugins += com.ibm.lpex.doc.user
allPlugins += com.ibm.lpex.doc.isv
d136 1
a136 1
	@@-cd $(pluginsDirectory) && zip -qr $(zipFile) $(patsubst %_zipPlugin,%,$@@) -x org *org\/* com makefile setenv.mk *com\/* *CVS*
d166 1
a166 1
	@@-cd $(pluginsDirectory) && zip -qr $(serverZipFile) $(patsubst %_zipServerPlugin,%,$@@) -x org *org\/* makefile setenv.mk com *com\/* *CVS*
@


1.25.2.2
log
@Fixed problem with makefiles and setenv.mk files being included in the local and server zips
@
text
@d138 1
a138 1
	@@-cd $(pluginsDirectory) && zip -qr $(zipFile) $(patsubst %_zipPlugin,%,$@@) -x org *org\/* com *makefile* *setenv.mk* *com\/* *CVS*
d168 1
a168 1
	@@-cd $(pluginsDirectory) && zip -qr $(serverZipFile) $(patsubst %_zipServerPlugin,%,$@@) -x org *org\/* *makefile* *setenv.mk* com *com\/* *CVS*
@


1.25.2.3
log
@Added *.properties to the zipping of the dstore.core plugin
@
text
@d191 1
a191 1
	zip -qr $(patsubst %.jar,%src.zip,$(jarFile)) . -i *.java *.jj *.properties build/*.mk build/*.java makefile 
@


1.25.2.4
log
@Fixed up clean problem...global clean is now "make clean-dev"
@
text
@d8 2
a9 1
#  "clean-dev"             -> Wipe out all class files
d75 2
a76 1
clean-dev       : $(patsubst %,%_cleanPlugin,$(buildPlugins))
d112 3
@


1.25.2.5
log
@Changed name of build, and added install-cdt to the packaging step
@
text
@d123 1
a123 1
zipFile=cdt-eclipse-R1.0-local.zip
d136 1
a136 1
finalZip=cdt-eclipse-R1.0.zip
a145 1
	cp org.eclipse.cdt.cpp.docs.user/install-cdt $(tempDir);\
d151 1
a151 1
serverZipFile=cdt-eclipse-R1.0-server.zip
@


1.25.2.6
log
@Added payroll makefile to the packaging step
@
text
@a126 1
# In general we exclude makefiles, but here we explicitly add the ones we want included.
d128 1
a128 1
	@@-cd $(pluginsDirectory) && rm -f $(zipFile) && zip -q $(zipFile) org.eclipse.cdt.dstore.core/makefile org.eclipse.cdt.cpp.docs.user/sample/payroll/makefile
@


1.24
log
@Redirect the errors from javadoc to /dev/null
@
text
@d21 1
a21 1
pluginsDirectory := $(shell cd build && javac GenerateMakefiles.java && java -cp . GenerateMakefiles)
d118 1
a118 1
	@@cd build && java -cp . -DECLIPSE=$(eclipseLocation) GenerateMakefiles $(buildPlugins) || (echo '***' Error: Usage: make ECLIPSE=eclipse_directory targets && false)
@


1.23
log
@CDT-Wide Rename (com.ibm -> org.eclipse.cdt)
@
text
@d71 1
a71 1
javadocs         : $(patsubst %,%_createJavadocs,$(buildPlugins))
d183 1
a183 1
	find . -name '*.java' | xargs javadoc -d docs -classpath $(subst $(space),$(sep),$(cp))
@


1.22
log
@"added rules for creating javadoc"
@
text
@d31 11
a41 11
buildPlugins += com.ibm.dstore.extra
buildPlugins += com.ibm.dstore.extra.server
buildPlugins += com.ibm.dstore.core
buildPlugins += com.ibm.cpp.miners.parser
buildPlugins += com.ibm.dstore.hosts
buildPlugins += com.ibm.dstore.ui
buildPlugins += com.ibm.cpp.ui
buildPlugins += com.ibm.dstore.miners
buildPlugins += com.ibm.cpp.miners
buildPlugins += com.ibm.debug.gdbPicl
buildPlugins += com.ibm.cpp.linux.help	
d45 1
a45 1
allPlugins += com.ibm.cpp.docs.user
d50 5
a54 5
serverPlugins =  com.ibm.dstore.core
serverPlugins += com.ibm.dstore.extra.server
serverPlugins += com.ibm.dstore.miners
serverPlugins += com.ibm.cpp.miners
serverPlugins += com.ibm.cpp.miners.parser
d56 1
a56 1
serverPlugins += com.ibm.debug.gdbPicl
d66 1
a66 1
	@@cd com 2>/dev/null && (${MAKE} ; cd ..) || (echo "";echo "Build Environment needs to be generated...";echo "Run:  make dev[elopment]")
d124 1
a124 1
	cd com 2>/dev/null || (echo Unzipping Source for $(patsubst %_unzipPlugin,%,$@@); unzip -qo *src.zip)
d131 1
a131 1
	@@-cd $(pluginsDirectory) && rm -f $(zipFile) && zip -q $(zipFile) com.ibm.dstore.core/makefile
d146 3
a148 3
	cp com.ibm.cpp.docs.user/readme.txt $(tempDir);\
	cp com.ibm.cpp.docs.user/install.txt $(tempDir);\
	cp com.ibm.cpp.docs.user/todo.txt $(tempDir);\
d161 1
a161 1
	@@-cd $(pluginsDirectory) && rm -f $(serverZipFile) && zip -q $(serverZipFile) com.ibm.dstore.core/makefile
d168 1
a168 1
# Targets specific to com.ibm.dstore.core (these are copied from rules.mk...so make sure they stay in synch!!!
d170 1
a170 1
pluginName=com.ibm.dstore.core
@


1.21
log
@Added install.txt and todo.txt to the final zip package
@
text
@d16 2
d69 1
a69 1
production      : development jars source-zips createZip createFinalPackage
d71 1
d102 3
d178 7
@


1.20
log
@*** empty log message ***
@
text
@d141 2
@


1.19
log
@*** empty log message ***
@
text
@d39 1
a39 1
buildPlugins += com.ibm.linux.help	
@


1.18
log
@*** empty log message ***
@
text
@d16 1
a16 1

@


1.17
log
@*** empty log message ***
@
text
@d28 1
a31 1
buildPlugins += com.ibm.debug
@


1.16
log
@*** empty log message ***
@
text
@d130 1
a130 1
	@@-cd $(pluginsDirectory) && zip -qr $(zipFile) $(patsubst %_zipPlugin,%,$@@) -x com *com\/* *CVS*
d153 1
a153 1
	@@-cd $(pluginsDirectory) && rm -f $(serverZipFile) && zip -q $(serverZipFile) com.ibm.cpp.miners.parser
d158 1
a158 1
	@@-cd $(pluginsDirectory) && zip -qr $(serverZipFile) $(patsubst %_zipServerPlugin,%,$@@) -x com *com\/* *CVS*
@


1.15
log
@*** empty log message ***
@
text
@d118 1
a118 1
	cd com 2>/dev/null || (echo Unzipping Source for $(patsubst %_unzipPlugin,%,$@@); unzip -q *src.zip)
@


1.14
log
@*** empty log message ***
@
text
@d120 1
a120 1
zipFile=cdt-eclipse-0.5.0-all.zip
@


1.13
log
@*** empty log message ***
@
text
@d120 1
a120 1
zipFile=c4eclipse.zip
@


1.12
log
@Allow build when Eclipse CVS VCM and/or PDE are used.
- CVS VCM does not preserve filemodes, so add "make fixup" target to find
	executable scripts and chmod a+x them
- Allow for plugin development environment where Eclipse base plugins are
	not in same directory as plugin projects.    In that case, when
	you run make dev or make prod for the first time, you must add
	a keyword parameter ECLIPSE, as
		make ECLIPSE="base eclipse path" dev
	The value you supply will be remembered in a .eclipse file, so you
	don't have to do this more than once.
	Note this is only necessary if base eclipse plugins are somewhere else,
	and the build can't find them by looking at ../org.eclipse.*
@
text
@d18 1
a18 1
# which used java.io.File.getCanonicalPath() to do the resolving of symbolic links, path separators etc
d47 8
d67 1
a67 2
production      : development jars source-zips createZip

d131 28
@


1.11
log
@*** empty log message ***
@
text
@d21 6
a27 1
buildPlugins += com.ibm.dstore.core
d30 1
d56 1
a56 1
	@@cd com 2>/dev/null && (${MAKE} -${MAKEFLAGS} ; cd ..) || (echo "";echo "Build Environment needs to be generated...";echo "Run:  make dev[elopment]")
d70 9
a78 1

d86 1
a86 1
	@@-cd $(pluginsDirectory)/$(patsubst %_buildPlugin,%,$@@) && $(MAKE) -$(MAKEFLAGS)
d90 1
a90 1
	@@-cd $(pluginsDirectory)/$(patsubst %_createJars,%,$@@) && $(MAKE) -$(MAKEFLAGS) jar   
d93 1
a93 1
	@@-cd $(pluginsDirectory)/$(patsubst %_createSrcZips,%,$@@) && $(MAKE) -$(MAKEFLAGS) source-zip   
d96 1
a96 1
	@@-cd $(pluginsDirectory)/$(patsubst %_cleanPlugin,%,$@@) && $(MAKE) -$(MAKEFLAGS) clean
d99 1
a99 1
	@@-cd $(pluginsDirectory)/$(patsubst %_cleanMakefiles,%,$@@) && $(MAKE) -$(MAKEFLAGS) clean-makefiles 
d102 4
a105 1
	@@cd build && java -cp . GenerateMakefiles $(buildPlugins)
d133 1
a133 1
	find . -name '*.class' -or -name '*.properties' | xargs jar -uf $(jarFile)
d144 1
a144 1
	find . -name '*.class' |xargs rm -f@


1.10
log
@*** empty log message ***
@
text
@d22 1
a24 1
buildPlugins += com.ibm.dstore.core
@


1.9
log
@*** empty log message ***
@
text
@d23 1
d87 1
a87 1
generateBuildEnvironment: unzipBuildPlugins setUpExtraPlugin
d127 1
a127 17
	find . -name '*.class' |xargs rm -f

setUpExtraPlugin:
	@@echo Generating Build Environment for All Plugins
	@@-cd $(pluginsDirectory)/com.ibm.dstore.extra/com/ibm/dstore/extra/internal;\
	rm -rf extra;\
	cp -r extra.Server extra;\
	cd extra;\
	javac -classpath $(pluginsDirectory)/com.ibm.dstore.core *.java;\
	cd $(pluginsDirectory)/com.ibm.dstore.extra;\
	rm -f dstore_extra_server.jar;\
	touch -f dstore_extra_server.jar;\
	find . -name '*.class' |xargs jar -uf dstore_extra_server.jar;\
	cd $(pluginsDirectory)/com.ibm.dstore.extra/com/ibm/dstore/extra/internal;\
	rm -rf extra;\
	cp -r extra.Client extra;

@


1.8
log
@*** empty log message ***
@
text
@d24 1
a30 1
buildPlugins += com.ibm.debug
@


1.7
log
@*** empty log message ***
@
text
@d30 1
a37 1
allPlugins += com.ibm.debug
@


1.6
log
@*** empty log message ***
@
text
@d86 1
a86 1
generateBuildEnvironment: unzipBuildPlugins setUpSpecialPlugins
a127 5


# The last 3 targets are some hacky stuff to set up the dstore.extra and gdbPicl Plugins...
setUpSpecialPlugins: setUpExtraPlugin setUpGdbPiclPlugin

a142 11
ifeq (gdbPicl,$(findstring gdbPicl, $(buildPlugins)))
 setUpGdbPiclString=cd $(pluginsDirectory)/com.ibm.debug.gdbPicl/com/ibm/debug;\
 rm -rf util;\
 mkdir util;\
 cd util;\
 java -classpath $(pluginsDirectory)/com.ibm.debug/IBMDebug.jar com.ibm.debug.util.CreateBuildInformation;\
 javac *.java;
endif

setUpGdbPiclPlugin:
	@@$(setUpGdbPiclString)@


1.5
log
@*** empty log message ***
@
text
@d49 1
a49 1
	@@cd com 2>/dev/null && (${MAKE} ${MAKEFLAGS} ; cd ..) || (echo "";echo "Build Environment needs to be generated...";echo "Run:  make dev[elopment]")
d71 1
a71 1
	@@-cd $(pluginsDirectory)/$(patsubst %_buildPlugin,%,$@@) && $(MAKE) $(MAKEFLAGS)
d75 1
a75 1
	@@-cd $(pluginsDirectory)/$(patsubst %_createJars,%,$@@) && $(MAKE) $(MAKEFLAGS) jar   
d78 1
a78 1
	@@-cd $(pluginsDirectory)/$(patsubst %_createSrcZips,%,$@@) && $(MAKE) $(MAKEFLAGS) source-zip   
d81 1
a81 1
	@@-cd $(pluginsDirectory)/$(patsubst %_cleanPlugin,%,$@@) && $(MAKE) $(MAKEFLAGS) clean
d84 1
a84 1
	@@-cd $(pluginsDirectory)/$(patsubst %_cleanMakefiles,%,$@@) && $(MAKE) $(MAKEFLAGS) clean-makefiles 
@


1.4
log
@*** empty log message ***
@
text
@d52 1
a52 1
production      : development jars source-zips createTar
@


1.3
log
@*** empty log message ***
@
text
@d35 1
d49 1
a49 1
	cd com ; ${MAKE} ${MAKEFLAGS} ; cd ..
d95 32
a126 1
createTar: createEmptyTar tarUpPlugins
a127 1
tarFile=c4eclipse.zip
a128 8
createEmptyTar: 
	@@-cd $(pluginsDirectory) && rm -f $(tarFile)*

tarUpPlugins: $(patsubst %,%_tarPlugin,$(allPlugins))

%_tarPlugin: 
	@@-cd $(pluginsDirectory) && zip -qr $(tarFile) $(patsubst %_tarPlugin,%,$@@) -x com *com\/* *CVS* &&\
	echo Created Master Zip File -> $(pluginsDirectory)/$(tarFile)
@


1.2
log
@*** empty log message ***
@
text
@d48 1
a48 1
	 allCommands = cd com ; ${MAKE} ${MAKEFLAGS} ; cd ..
@


1.1
log
@*** empty log message ***
@
text
@d19 1
a19 1
pluginsDirectory := $(shell javac GenerateMakefiles.java && java -cp . GenerateMakefiles)
d21 14
a34 12
# List of All Plugins Used in C/C++ Deliverable
allPlugins += com.ibm.dstore.extra
allPlugins += com.ibm.dstore.core
allPlugins += com.ibm.cpp.miners.parser
allPlugins += com.ibm.dstore.hosts
allPlugins += com.ibm.dstore.ui
allPlugins += com.ibm.cpp.ui
allPlugins += com.ibm.dstore.miners
allPlugins += com.ibm.cpp.miners
allPlugins += com.ibm.debug.gdbPicl
allPlugins += com.ibm.linux.help	
allPlugins += com.ibm.cpp.docs.user
a38 20
# Look for list of Plugins that are "build-able", (e.g. that have a 'com' directory).  This is a little complicated,
# but there are really 5 pieces of work going on:
# 1.  Add the dstore.extra and dstore.core directories to the list to ensure they appear first.
# 2.  Using the $(wildcard) function, get all of the plugins that have a 'com' subdirectory
# 3.  Using the $(patsubst) function, remove the plugin Directory from the beginning of each directory
# 4.  Using the $(patsubst) function, remove the /com/ suffix from each directory
# 5.  Using the $(filter-out) funtion, remove the dstore.core and dstore.extra directory from the generated list
#

buildPlugins = com.ibm.dstore.extra com.ibm.dstore.core\
               $(filter-out com.ibm.dstore.core,\
                 $(filter-out com.ibm.dstore.extra,\
                   $(patsubst %/com/,%,\
                      $(patsubst $(pluginsDirectory)/%,%,\
                        $(wildcard $(pluginsDirectory)/*/com/)\
                       )\
                    )\
                  )\
                )

d47 4
a50 1
development     : makefiles all
d52 1
a52 1
all             : $(patsubst %,%_buildPlugin,$(buildPlugins))
d63 1
d85 8
a92 2
generateBuildEnvironment: setUpSpecialPlugins GenerateMakefiles.class
	@@java -cp . GenerateMakefiles $(buildPlugins)
a105 3

GenerateMakefiles.class: GenerateMakefiles.java
	@@javac GenerateMakefiles.java
@

