From: fca Date: Thu, 8 Jun 2000 10:35:38 +0000 (+0000) Subject: Adding reverse engineering tool X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=3e27ea2bf3a8b367cbd5244d70b396a88a1fd48d Adding reverse engineering tool --- diff --git a/Makefile b/Makefile index b1b4c53e6ec..1840bd2c356 100644 --- a/Makefile +++ b/Makefile @@ -57,7 +57,7 @@ FORCE: ############################### General Macros ################################ -include $(ALICE_ROOT)/conf/GeneralMacros +# include $(ALICE_ROOT)/conf/GeneralMacros ############################### Specific Macros ############################### @@ -148,6 +148,14 @@ check: ${MAKE} -C $$i check ; \ done +REVENG_DIRS = $(ALIROOT_DIRS) + +reveng: + @for i in $(REVENG_DIRS) ; do \ + echo "Reverse engineering $$i" ; \ + ${MAKE} -C $$i reveng ; \ + done + diff --git a/conf/GeneralDef b/conf/GeneralDef index abad626d04f..d71a4913ccd 100644 --- a/conf/GeneralDef +++ b/conf/GeneralDef @@ -5,9 +5,11 @@ .SUFFIXES: .cxx .h # IRST coding rule check -STRIP=$(ALICE)/local/IRST/syntax/strip-cpp.prl +export IRST_INSTALLDIR=$(ALICE)/local/IRST +export CLASSPATH=$(IRST_INSTALLDIR) +STRIP=$(IRST_INSTALLDIR)/syntax/strip-cpp.prl CODE_CHECK=java rules.RuleChecker -export CLASSPATH=$(ALICE)/local/IRST +REV_ENG=$(IRST_INSTALLDIR)/scripts/revEng.sh $(ALICE_ROOT)/include/%.h : %.h @[ -d $(dir $@) ] || mkdir $(dir $@) diff --git a/conf/GeneralMacros b/conf/GeneralMacros index 5796d0c0433..31841a9ac44 100644 --- a/conf/GeneralMacros +++ b/conf/GeneralMacros @@ -51,4 +51,15 @@ macroclean: check: $(CHECKS) -.SECONDARY: $(CHECKS:%.viol=%.ii) \ No newline at end of file +REVENGS = $(patsubst %.viol,%.ii,$(CHECKS)) + +.SECONDARY: $(REVENGS) + +reveng: check/classDiagram.dot + +check/classDiagram.dot: $(REVENGS) + @$(REV_ENG) $^ + @-mv classDiagram.dot $@ + +revdisp: reveng + @$(IRST_INSTALLDIR)/scripts/revEngInterface.sh check/classDiagram.dot