Adding reverse engineering tool
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Jun 2000 10:35:38 +0000 (10:35 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Jun 2000 10:35:38 +0000 (10:35 +0000)
Makefile
conf/GeneralDef
conf/GeneralMacros

index b1b4c53e6ecc877f7394fa72cf6bd64a528bcf32..1840bd2c356790cbe7ac7e03bc20b1a81bfe3b70 100644 (file)
--- 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
+
 
 
 
index abad626d04f781cc9d3e06e127526099101d8d92..d71a4913ccd4db20719faa2dae25ced1783c0f3d 100644 (file)
@@ -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 $@)
index 5796d0c0433cdd2a232ed124f9f96ba9ba6af3a7..31841a9ac44374f313670a739779eb78ce37d71c 100644 (file)
@@ -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