<commit_before>#*******************************************************************************
# PPPPPPPP
#
# "@(#) $Id: Makefile,v 1.8 2012/10/24 15:00:27 rtobar Exp $"
#
# Makefile of ........
#
# who       when      what
# --------  --------  ----------------------------------------------
# rtobar  02/12/09  created
#

#*******************************************************************************
# This Makefile follows VLT Standards (see Makefile(5) for more).
#*******************************************************************************
# REMARKS
#    None
#------------------------------------------------------------------------


#
# Scripts (public and local)
# ----------------------------
SCRIPTS         = hibernateCdbJDal
SCRIPTS_L       =


#
# Python stuff (public and local)
# ----------------------------
PY_SCRIPTS         =
PY_SCRIPTS_L       =

PY_MODULES         =
PY_MODULES_L       =

PY_PACKAGES        =
PY_PACKAGES_L      =
pppppp_MODULES	   =



#
# Configuration Database Files
# ----------------------------
CDB_SCHEMAS = ControlDevice



#
# Jarfiles and their directories
#
JARFILES=cdb_rdb
cdb_rdb_DIRS=com alma/TMCDB alma/acs/tmcdb/logic
cdb_rdb_EXTRAS=alma/TMCDB/maci/hibernate-mappings-maci.hbm.xml \
               alma/TMCDB/baci/hibernate-mappings-baci.hbm.xml \
               acsOnly-cdb_rdb-hibernate.cfg.xml

cdb_rdb_JLIBS=TMCDBswconfigStrategy cdbrdb-pojos
#
# java sources in Jarfile on/off
DEBUG=on


#
# other files to be installed
#----------------------------
POJOS_JAR = cdbrdb-pojos.jar
INSTALL_FILES = ../lib/$(POJOS_JAR) ../lib/TMCDBswconfigStrategy.jar


#
#>>>>> END OF standard rules

#
# INCLUDE STANDARDS
# -----------------

MAKEDIRTMP := $(shell searchFile include/acsMakefile)
ifneq ($(MAKEDIRTMP),\#error\#)
   MAKEDIR := $(MAKEDIRTMP)/include
   include $(MAKEDIR)/acsMakefile
endif

#
# TARGETS
# -------
all:	.done_generating_sql ../lib/TMCDBswconfigStrategy.jar .done_generating_classes ../lib/$(POJOS_JAR) do_all
	@echo " . . . 'all' done" 

clean : clean_all 
	@echo "== Deleting generated code"
	@rm -rf ../config/TMCDB_swconfigcore
	@rm -rf ../config/TMCDB_swconfigext
	@rm -rf tmcdb
	@rm -rf gen
	@rm -f .done_generating_sql
	@rm -f .done_generating_classes
	@rm -f CreateHsqldbTables.sql
	@rm -f alma/acs/tmcdb/translator/Column2Attribute_*
	@rm -f alma/acs/tmcdb/translator/Table2Class_*
	@rm -f alma/acs/tmcdb/translator/TableInheritance_*
	@rm -f alma/acs/tmcdb/translator/*.class
	@rm -f ../lib/$(POJOS_JAR)
	@rm -f ../lib/TMCDBswconfigStrategy.jar
	@echo " . . . clean done"

clean_dist : clean_all clean_dist_all 
	@echo " . . . clean_dist done"

man   : do_man 
	@echo " . . . man page(s) done"

DDLDATA=$(ACSDATA)/config/DDL
install : install_all
	@mkdir -p $(DDLDATA)/generic
	@mkdir -p $(DDLDATA)/oracle/TMCDB_swconfigcore
	@mkdir -p $(DDLDATA)/oracle/TMCDB_swconfigext
	@mkdir -p $(DDLDATA)/hsqldb/TMCDB_swconfigcore
	@mkdir -p $(DDLDATA)/hsqldb/TMCDB_swconfigext
	@mkdir -p $(DDLDATA)/mysql/TMCDB_swconfigcore
	@mkdir -p $(DDLDATA)/mysql/TMCDB_swconfigext
	@echo "== Copying generic .ddl files to $(DDLDATA)/generic"
	@cp generic/TMCDB_swconfigcore.ddl $(DDLDATA)/generic
	@cp generic/TMCDB_swconfigext.ddl $(DDLDATA)/generic
	@echo "== Copying generated Oracle .sql files to $(DDLDATA)/oracle"
	@cp ../config/TMCDB_swconfigcore/oracle/* $(DDLDATA)/oracle/TMCDB_swconfigcore
	@cp ../config/TMCDB_swconfigext/oracle/* $(DDLDATA)/oracle/TMCDB_swconfigext
	@echo "== Copying generated HSQLDB .sql files to $(DDLDATA)/hsqldb"
	@cp ../config/TMCDB_swconfigcore/hsqldb/* $(DDLDATA)/hsqldb/TMCDB_swconfigcore
	@cp ../config/TMCDB_swconfigext/hsqldb/* $(DDLDATA)/hsqldb/TMCDB_swconfigext
	@echo "== Copying generated MySQL .sql files to $(DDLDATA)/mysql"
	@cp ../config/TMCDB_swconfigcore/mysql/* $(DDLDATA)/mysql/TMCDB_swconfigcore
	@cp ../config/TMCDB_swconfigext/mysql/* $(DDLDATA)/mysql/TMCDB_swconfigext
	@echo " . . . installation done"

.done_generating_sql : generic/TMCDB_swconfigcore.ddl generic/TMCDB_swconfigext.ddl
	@echo "=="
	@echo "== Generating SQL code"
	@echo "=="
	@generateTmcdbSchemas generic/TMCDB_swconfigcore.ddl ../config
	@generateTmcdbSchemas generic/TMCDB_swconfigext.ddl ../config
	@echo "=="
	@echo "== Generating SQL/Java translation code"
	@echo "=="
	@generateTmcdbHibernateStrategy generic/TMCDB_swconfigcore.ddl .
	@generateTmcdbHibernateStrategy generic/TMCDB_swconfigext.ddl .
	@touch .done_generating_sql

.done_generating_classes: ../lib/TMCDBswconfigStrategy.jar
	@echo "=="
	@echo "== Generating Java domain classes"
	@echo "=="
	@-rm -rf tmcdb
	@-mkdir tmcdb
	@rm -f CreateHsqldbTables.sql
	@cat ../config/TMCDB_swconfigcore/hsqldb/CreateHsqldbTables.sql ../config/TMCDB_swconfigext/hsqldb/CreateHsqldbTables.sql > CreateHsqldbTables.sql
	@acsStartJava org.hsqldb.cmdline.SqlTool --rcFile sqltool.rc tmcdb CreateHsqldbTables.sql
	@CLASSPATH="$(shell acsMakeJavaClasspath)" ant -verbose generate
	echo "Java domain classes generated"
	@touch .done_generating_classes

../lib/$(POJOS_JAR): .done_generating_classes
	@echo "=="
	@echo "== Compiling generated domain classes"
	@cd gen;\
	    CLASSPATH="$(shell acsMakeJavaClasspath)" javac alma/acs/tmcdb/*.java; \
	    jar cf ../../lib/$(POJOS_JAR) alma/acs/tmcdb/*.class; cd ..; 
	    mv gen src; jar uf ../lib/$(POJOS_JAR) src/alma/acs/tmcdb/*.java; mv src gen/; \
	    jar uf ../lib/$(POJOS_JAR) -C ../config/TMCDB_swconfigcore/ SwCore-orm.xml; \
	    jar uf ../lib/$(POJOS_JAR) -C ../config/TMCDB_swconfigext/ SwExt-orm.xml;

../lib/TMCDBswconfigStrategy.jar: .done_generating_sql 
	@echo "== Compiling TMCDBswconfigStrategy.jar "
	@CLASSPATH="$(shell acsMakeJavaClasspath)" javac alma/acs/tmcdb/translator/*.java; jar cf ../lib/TMCDBswconfigStrategy.jar alma/acs/tmcdb/translator/*.class; cd ..; jar uf lib/TMCDBswconfigStrategy.jar src/alma/acs/tmcdb/translator/*.java;
	@rm -f alma/acs/tmcdb/translator/*.class


#___oOo___
<commit_msg>moved LRU.xsd from ICD/SharedCode/TMCDB/Utils/src to ACS/LGPL/CommonSoftware/cdb_rdb/config/CDB/schemas/ an modified Makefiles accordingly<commit_after>#*******************************************************************************
# PPPPPPPP
#
# "@(#) $Id: Makefile,v 1.8 2012/10/24 15:00:27 rtobar Exp $"
#
# Makefile of ........
#
# who       when      what
# --------  --------  ----------------------------------------------
# rtobar  02/12/09  created
#

#*******************************************************************************
# This Makefile follows VLT Standards (see Makefile(5) for more).
#*******************************************************************************
# REMARKS
#    None
#------------------------------------------------------------------------


#
# Scripts (public and local)
# ----------------------------
SCRIPTS         = hibernateCdbJDal
SCRIPTS_L       =


#
# Python stuff (public and local)
# ----------------------------
PY_SCRIPTS         =
PY_SCRIPTS_L       =

PY_MODULES         =
PY_MODULES_L       =

PY_PACKAGES        =
PY_PACKAGES_L      =
pppppp_MODULES	   =



#
# Configuration Database Files
# ----------------------------
CDB_SCHEMAS = ControlDevice



#
# Jarfiles and their directories
#
JARFILES=cdb_rdb
cdb_rdb_DIRS=com alma/TMCDB alma/acs/tmcdb/logic
cdb_rdb_EXTRAS=alma/TMCDB/maci/hibernate-mappings-maci.hbm.xml \
               alma/TMCDB/baci/hibernate-mappings-baci.hbm.xml \
               acsOnly-cdb_rdb-hibernate.cfg.xml

cdb_rdb_JLIBS=TMCDBswconfigStrategy cdbrdb-pojos
#
# java sources in Jarfile on/off
DEBUG=on


#
# other files to be installed
#----------------------------
POJOS_JAR = cdbrdb-pojos.jar
INSTALL_FILES = ../lib/$(POJOS_JAR) ../lib/TMCDBswconfigStrategy.jar


#
#>>>>> END OF standard rules

#
# INCLUDE STANDARDS
# -----------------

MAKEDIRTMP := $(shell searchFile include/acsMakefile)
ifneq ($(MAKEDIRTMP),\#error\#)
   MAKEDIR := $(MAKEDIRTMP)/include
   include $(MAKEDIR)/acsMakefile
endif

#
# TARGETS
# -------
gen:
	acsStartJava -endorsed org.exolab.castor.builder.SourceGenerator \
            -i ../config/CDB/schemas/LRU.xsd  -package alma.tmcdb.generated.lrutype


all:	.done_generating_sql ../lib/TMCDBswconfigStrategy.jar .done_generating_classes ../lib/$(POJOS_JAR) do_all
	@echo " . . . 'all' done" 

clean : clean_all 
	@echo "== Deleting generated code"
	@rm -rf ../config/TMCDB_swconfigcore
	@rm -rf ../config/TMCDB_swconfigext
	@rm -rf tmcdb
	@rm -rf gen
	@rm -f .done_generating_sql
	@rm -f .done_generating_classes
	@rm -f CreateHsqldbTables.sql
	@rm -f alma/acs/tmcdb/translator/Column2Attribute_*
	@rm -f alma/acs/tmcdb/translator/Table2Class_*
	@rm -f alma/acs/tmcdb/translator/TableInheritance_*
	@rm -f alma/acs/tmcdb/translator/*.class
	@rm -f ../lib/$(POJOS_JAR)
	@rm -f ../lib/TMCDBswconfigStrategy.jar
	@echo " . . . clean done"

clean_dist : clean_all clean_dist_all 
	@echo " . . . clean_dist done"

man   : do_man 
	@echo " . . . man page(s) done"

DDLDATA=$(ACSDATA)/config/DDL
install : install_all
	@mkdir -p $(DDLDATA)/generic
	@mkdir -p $(DDLDATA)/oracle/TMCDB_swconfigcore
	@mkdir -p $(DDLDATA)/oracle/TMCDB_swconfigext
	@mkdir -p $(DDLDATA)/hsqldb/TMCDB_swconfigcore
	@mkdir -p $(DDLDATA)/hsqldb/TMCDB_swconfigext
	@mkdir -p $(DDLDATA)/mysql/TMCDB_swconfigcore
	@mkdir -p $(DDLDATA)/mysql/TMCDB_swconfigext
	@echo "== Copying generic .ddl files to $(DDLDATA)/generic"
	@cp generic/TMCDB_swconfigcore.ddl $(DDLDATA)/generic
	@cp generic/TMCDB_swconfigext.ddl $(DDLDATA)/generic
	@echo "== Copying generated Oracle .sql files to $(DDLDATA)/oracle"
	@cp ../config/TMCDB_swconfigcore/oracle/* $(DDLDATA)/oracle/TMCDB_swconfigcore
	@cp ../config/TMCDB_swconfigext/oracle/* $(DDLDATA)/oracle/TMCDB_swconfigext
	@echo "== Copying generated HSQLDB .sql files to $(DDLDATA)/hsqldb"
	@cp ../config/TMCDB_swconfigcore/hsqldb/* $(DDLDATA)/hsqldb/TMCDB_swconfigcore
	@cp ../config/TMCDB_swconfigext/hsqldb/* $(DDLDATA)/hsqldb/TMCDB_swconfigext
	@echo "== Copying generated MySQL .sql files to $(DDLDATA)/mysql"
	@cp ../config/TMCDB_swconfigcore/mysql/* $(DDLDATA)/mysql/TMCDB_swconfigcore
	@cp ../config/TMCDB_swconfigext/mysql/* $(DDLDATA)/mysql/TMCDB_swconfigext
	@echo " . . . installation done"

.done_generating_sql : generic/TMCDB_swconfigcore.ddl generic/TMCDB_swconfigext.ddl
	@echo "=="
	@echo "== Generating SQL code"
	@echo "=="
	@generateTmcdbSchemas generic/TMCDB_swconfigcore.ddl ../config
	@generateTmcdbSchemas generic/TMCDB_swconfigext.ddl ../config
	@echo "=="
	@echo "== Generating SQL/Java translation code"
	@echo "=="
	@generateTmcdbHibernateStrategy generic/TMCDB_swconfigcore.ddl .
	@generateTmcdbHibernateStrategy generic/TMCDB_swconfigext.ddl .
	@touch .done_generating_sql

.done_generating_classes: ../lib/TMCDBswconfigStrategy.jar
	@echo "=="
	@echo "== Generating Java domain classes"
	@echo "=="
	@-rm -rf tmcdb
	@-mkdir tmcdb
	@rm -f CreateHsqldbTables.sql
	@cat ../config/TMCDB_swconfigcore/hsqldb/CreateHsqldbTables.sql ../config/TMCDB_swconfigext/hsqldb/CreateHsqldbTables.sql > CreateHsqldbTables.sql
	@acsStartJava org.hsqldb.cmdline.SqlTool --rcFile sqltool.rc tmcdb CreateHsqldbTables.sql
	@CLASSPATH="$(shell acsMakeJavaClasspath)" ant -verbose generate
	echo "Java domain classes generated"
	@touch .done_generating_classes

../lib/$(POJOS_JAR): .done_generating_classes
	@echo "=="
	@echo "== Compiling generated domain classes"
	@cd gen;\
	    CLASSPATH="$(shell acsMakeJavaClasspath)" javac alma/acs/tmcdb/*.java; \
	    jar cf ../../lib/$(POJOS_JAR) alma/acs/tmcdb/*.class; cd ..; 
	    mv gen src; jar uf ../lib/$(POJOS_JAR) src/alma/acs/tmcdb/*.java; mv src gen/; \
	    jar uf ../lib/$(POJOS_JAR) -C ../config/TMCDB_swconfigcore/ SwCore-orm.xml; \
	    jar uf ../lib/$(POJOS_JAR) -C ../config/TMCDB_swconfigext/ SwExt-orm.xml;

../lib/TMCDBswconfigStrategy.jar: .done_generating_sql 
	@echo "== Compiling TMCDBswconfigStrategy.jar "
	@CLASSPATH="$(shell acsMakeJavaClasspath)" javac alma/acs/tmcdb/translator/*.java; jar cf ../lib/TMCDBswconfigStrategy.jar alma/acs/tmcdb/translator/*.class; cd ..; jar uf lib/TMCDBswconfigStrategy.jar src/alma/acs/tmcdb/translator/*.java;
	@rm -f alma/acs/tmcdb/translator/*.class


#___oOo___

{'fraction_non_alphanumeric': 0.21374360666556674, 'fraction_numerical': 0.004124731892426992, 'mean_word_length': 3.28525980911983, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3419469', 'n_tokens_mistral': 4771, 'n_tokens_neox': 4555, 'n_words': 777}