From: ceriel Date: Wed, 27 Apr 1988 13:01:25 +0000 (+0000) Subject: improved; now also runs with interpreter X-Git-Tag: release-5-5~3310 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=420ca09aee21defc2678fd7fdf1c053622803d4b;p=ack.git improved; now also runs with interpreter --- diff --git a/lang/cem/ctest/ctprof/makefile b/lang/cem/ctest/ctprof/makefile index e20d5b0be..012a5c5e5 100644 --- a/lang/cem/ctest/ctprof/makefile +++ b/lang/cem/ctest/ctprof/makefile @@ -9,19 +9,12 @@ egen: tp.e rm -f tp.e tp.e: tp.c $(CEM) -p -c.e tp.c -tp.cem.r: tp.cem - echo running tp - -tp.cem >tp.cem.r - rm -f tp.cem procentry.m: procentry.c $(CEM) -c.m procentry.c tp.cem: tp.c procentry.m echo $(CEM) tp.c procentry.m $(CEM) -p -o tp.cem -O tp.c procentry.m rm -f procentry.[kosm] tp.[kmos] -gen: tp.cem.r - echo comparing tp - -if test -f tp.cem.g ; then diff tp.cem.r tp.cem.g ; else echo creating tp.cem.g ; cp tp.cem.r tp.cem.g ; fi pr: @pr `pwd`/*.c tp.cem.g @@ -30,6 +23,6 @@ opr: make pr | opr clean: - -rm -f *.[kosme] *.old + -rm -f *.[kosme] *.old em_last em_runinf transI transM cmpI cmpM: diff --git a/lang/cem/ctest/ctprof/run b/lang/cem/ctest/ctprof/run index 35eaea144..f8434db09 100644 --- a/lang/cem/ctest/ctprof/run +++ b/lang/cem/ctest/ctprof/run @@ -1,2 +1,10 @@ echo test profiling -make -k "`grep CEM= ../makefile`" ${1-gen} +case ${1-gen} in +gen|tp.cem.r) + make -k "`grep CEM= ../makefile`" tp.cem + make "P=tp" -fsk ../makefile ${1-gen} + ;; +*) + make -k "`grep CEM= ../makefile`" $1 + ;; +esac