<commit_before>#*******************************************************************************
# E.S.O. - ALMA project
#
# "@(#) $Id: Makefile,v 1.8 2008/01/16 10:30:18 gchiozzi Exp $"
#
#

#
# This Makefile must be used from Windows
# within a Cygwin installation

# Define where to find the Rose binaries.
# Unfortunately it seems there is no better way to do it.
# Define where to find the Rose binaries.
# Unfortunately it seems there is no better way to do it.

ifndef ROSE_HOME
  export ROSE_HOME:=/cygdrive/e/Rational/Rose
  export ROSE_SET_LOCALLY:=true
endif

rose_home:
	@echo "Value of ROSE_HOME is: $(ROSE_HOME)"
	@if [ "X$(ROSE_SET_LOCALLY)" != "X" ]; then \
          echo "   The value of ROSE_HOME was set to the default in the Makefile";\
        fi

DESTDIR=out

ifdef TAG
  CVSFLAGS=-r $(TAG)
endif

PLATFORM := $(shell uname)

rosewp: 
	@cd UML; $(MAKE) rosewp

diagrams:
	@echo "Extract diagrams from HTML model into document!"
	@cd UML; ./extractDiagrams.sh ../Project/Images
	@echo "... diagrams extraction done!"

#
# This should call Microsoft Word and update the links in 
# batch, but still does not work!
#
word_update:
	@cscript /nologo ./DocUpdate.vbs /nologo ACSArchitecture.doc

word_break:
	@cscript /nologo ./DocBreakLinks.vbs /nologo ACSArchitecture.doc ACSArchitectureNL.doc

clean:
	@rm -rf Html *~

#################################### Windows ###############
ifeq ($(PLATFORM),CYGWIN_NT-5.1)
  PLATFORM := Sun

##### all: rosewp diagrams word_document
all: rose_home rosewp diagrams word_update word_break

##### model: only rose model, no word document.
model: rosewp diagrams 

cvsUpdate:
	cvs -Q update -P $(CVSFLAGS) .

$(DESTDIR)/%.pdf : %.doc
	@mkdir -p out
	@cscript /nologo ./Doc2Pdf.vbs /nologo $<
	@mv $(<D)/$(@F) $@

#################################### NON Windows ###############
else

.DEFAULT:
	@echo "This Makefile must be run from Windows Cygwin!"

endif
#################################### end ###############


<commit_msg>Removed all Rationa Rose model files. Everything ported to Magic Draw. Cleaned upt the makefile from word and rose references. Cleaned up from Windows dependency. Extraction of diagrams from UML with Magic Draw is OK. Still missing are: - Extraction of HTML from the UML model - Update of Open Office odt document - Generation of pdf from odt. These things can now be done by hand.<commit_after>#*******************************************************************************
# E.S.O. - ALMA project
#
# "@(#) $Id: Makefile,v 1.9 2009/04/24 09:58:05 gchiozzi Exp $"
#
#


#
# This Makefile must be used from Linux
# It should be easily possible to get it working from
# Windows +  Cygwin, but this was not tested and it is not
# in the current scope.

# Define where to find the Magic Draw binaries.
# Unfortunately it seems there is no better way to do it.

ifndef MAGIC_DRAW_HOME
  export MAGIC_DRAW_HOME=/home/almamgr/MagicDraw_UML/
  export MAGIC_DRAW_SET_LOCALLY:=true
endif

magic_draw_home:
	@echo "Value of MAGIC_DRAW_HOME is: $(MAGIC_DRAW_HOME)"
	@if [ "X$(MAGIC_DRAW_SET_LOCALLY)" != "X" ]; then \
          echo "   The value of MAGIC_DRAW_HOME was set to the default in the Makefile";\
        fi

DESTDIR=out

ifdef TAG
  CVSFLAGS=-r $(TAG)
endif

PLATFORM := $(shell uname)

magic_draw_wp: magic_draw_home
	@echo "Producing HTML from Rational Magic_Draw UML model!"
	@rm -rf Html; mkdir -p Html
	@echo "-----> NOT IMPLEMENTED YET!"
	@echo "... Magic_Draw publishing done"

diagrams: magic_draw_home
	@echo "Extract diagrams from HTML model into document!"
	@cd UML; ./mdExtractImages ACS.mdzip ../Project/Images
	@echo "... diagrams extraction done!"

#
# This should call Open Office and update the links in 
# batch, but still does not work!
#
document_update:
	@echo "Updating Open Office document!"
	@echo "-----> NOT IMPLEMENTED YET!"
	@echo "... Open Office update done"

clean:
	@rm -rf Html *~


##### all: rosewp diagrams word_document
all: magic_draw_home magic_draw_wp diagrams document_update

##### model: only rose model, no word document.
model: magic_draw_home diagrams 

cvsUpdate:
	cvs -Q update -P $(CVSFLAGS) .

$(DESTDIR)/%.pdf : %.odt
	@echo "Updating PDF document from Open Office for " $<
	@echo "-----> NOT IMPLEMENTED YET!"
	@echo "... PDF update done"





{'fraction_non_alphanumeric': 0.17429906542056076, 'fraction_numerical': 0.008177570093457943, 'mean_word_length': 4.060283687943262, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, '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': '1765532', 'n_tokens_mistral': 1481, 'n_tokens_neox': 1377, 'n_words': 498}