reports/Make.proto
author Claus Gittinger <cg@exept.de>
Thu, 28 Mar 2019 13:54:38 +0100
changeset 542 aa25a71be62a
parent 285 c2dd8500d9fc
child 295 4dd4d4b67e42
permissions -rw-r--r--
#DOCUMENTATION by cg
class: stx_goodies_builder_quickSelfTest
class definition

class: stx_goodies_builder_quickSelfTest class
added:18 methods
jan@57
     1
# $Header$
jan@57
     2
#
jan@57
     3
# DO NOT EDIT
sv@121
     4
# automagically generated from the projectDefinition: stx_goodies_builder_reports.
jan@57
     5
#
jan@57
     6
# Warning: once you modify this file, do not rerun
jan@57
     7
# stmkmp or projectDefinition-build again - otherwise, your changes are lost.
jan@57
     8
#
jan@57
     9
# The Makefile as generated by this Make.proto supports the following targets:
jan@57
    10
#    make         - compile all st-files to a classLib
jan@57
    11
#    make clean   - clean all temp files
jan@57
    12
#    make clobber - clean all
jan@57
    13
#
jan@57
    14
# This file contains definitions for Unix based platforms.
jan@57
    15
# It shares common definitions with the win32-make in Make.spec.
jan@57
    16
jan@57
    17
#
jan@57
    18
# position (of this package) in directory hierarchy:
jan@57
    19
# (must point to ST/X top directory, for tools and includes)
jan@57
    20
TOP=../../..
jan@57
    21
INCLUDE_TOP=$(TOP)/..
jan@57
    22
jan@57
    23
# subdirectories where targets are to be made:
jan@57
    24
SUBDIRS=
jan@57
    25
jan@57
    26
jan@57
    27
# subdirectories where Makefiles are to be made:
jan@57
    28
# (only define if different from SUBDIRS)
jan@57
    29
# ALLSUBDIRS=
jan@57
    30
jan@57
    31
REQUIRED_SUPPORT_DIRS=
jan@57
    32
jan@57
    33
# if your embedded C code requires any system includes,
jan@57
    34
# add the path(es) here:,
jan@57
    35
# ********** OPTIONAL: MODIFY the next lines ***
jan@57
    36
# LOCALINCLUDES=-Ifoo -Ibar
jan@285
    37
LOCALINCLUDES= -I$(INCLUDE_TOP)/stx/goodies/refactoryBrowser/browser -I$(INCLUDE_TOP)/stx/goodies/refactoryBrowser/helpers -I$(INCLUDE_TOP)/stx/goodies/refactoryBrowser/lint -I$(INCLUDE_TOP)/stx/goodies/sunit -I$(INCLUDE_TOP)/stx/libbasic -I$(INCLUDE_TOP)/stx/libcomp
jan@57
    38
jan@57
    39
jan@57
    40
# if you need any additional defines for embedded C code,
jan@57
    41
# add them here:,
jan@57
    42
# ********** OPTIONAL: MODIFY the next lines ***
jan@57
    43
# LOCALDEFINES=-Dfoo -Dbar -DDEBUG
jan@57
    44
LOCALDEFINES=
jan@57
    45
jan@57
    46
LIBNAME=libstx_goodies_builder_reports
jan@57
    47
STCLOCALOPT='-package=$(PACKAGE)' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) -headerDir=.  -varPrefix=$(LIBNAME)
jan@57
    48
jan@57
    49
jan@57
    50
# ********** OPTIONAL: MODIFY the next line ***
jan@57
    51
# additional C-libraries that should be pre-linked with the class-objects
jan@57
    52
LD_OBJ_LIBS=
jan@57
    53
LOCAL_SHARED_LIBS=
jan@57
    54
jan@57
    55
jan@57
    56
# ********** OPTIONAL: MODIFY the next line ***
jan@57
    57
# additional C targets or libraries should be added below
jan@57
    58
LOCAL_EXTRA_TARGETS=
jan@57
    59
jan@57
    60
OBJS= $(COMMON_OBJS) $(UNIX_OBJS)
jan@57
    61
jan@57
    62
jan@57
    63
jan@57
    64
all:: preMake classLibRule postMake
jan@57
    65
jan@133
    66
pre_objs::  
jan@57
    67
jan@57
    68
jan@57
    69
jan@133
    70
jan@133
    71
# Update SVN revision in package definition class
jan@133
    72
ifneq (,$(findstring .svn,$(wildcard .svn)))
jan@133
    73
.svnversion: *.st
jan@133
    74
	if [ -d .svn ]; then \
jan@133
    75
		rev=$(shell svnversion -n); \
jan@133
    76
		echo -n $$rev > .svnversion; \
jan@133
    77
	else \
jan@133
    78
		echo -n exported > .svnversion; \
jan@57
    79
	fi
jan@57
    80
jan@133
    81
stx_goodies_builder_reports.o: stx_goodies_builder_reports.st .svnversion
jan@133
    82
	@if [ -d .svn ]; then \
jan@133
    83
		rev2="$(shell printf "%-16s" $$(cat .svnversion))"; \
jan@133
    84
		echo "  [SV]  Expanding svnRevisionNo in $1.st"; \
jan@133
    85
		sed -e "s/\"\$$SVN\-Revision:\".*\"\$$\"/\"\$$SVN-Revision:\"\'$$rev2\'\"\$$\"/g" $< > .stx_goodies_builder_reports.svn.st; \
jan@133
    86
	fi
jan@133
    87
	$(MAKE) CC="$(CLASSLIB_CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" STC="$(STC)" STFILE=.stx_goodies_builder_reports.svn $(C_RULE);
jan@133
    88
	sed -i -e "s/\".stx_goodies_builder_reports.svn.st\");/\"\stx_goodies_builder_reports.st\");/g" .stx_goodies_builder_reports.svn.c
jan@133
    89
	$(MAKE) .stx_goodies_builder_reports.svn.$(O)
jan@133
    90
	@mv .stx_goodies_builder_reports.svn.$(O) stx_goodies_builder_reports.$(O)
jan@133
    91
endif
jan@133
    92
jan@133
    93
jan@133
    94
jan@133
    95
jan@133
    96
jan@133
    97
jan@133
    98
# run default testsuite for this package
jan@133
    99
test: $(TOP)/goodies/builder/reports
jan@258
   100
	$(MAKE) -C $(TOP)/goodies/builder/reports -f Makefile.init
jan@133
   101
	$(TOP)/goodies/builder/reports/report-runner.sh -D . -r Builder::TestReport -p $(PACKAGE)
jan@57
   102
jan@57
   103
jan@57
   104
jan@57
   105
# add more install actions here
jan@57
   106
install::
jan@57
   107
jan@57
   108
# add more install actions for aux-files (resources) here
jan@57
   109
installAux::
jan@57
   110
jan@57
   111
# add more preMake actions here
jan@57
   112
preMake::
jan@57
   113
jan@57
   114
# add more postMake actions here
jan@57
   115
postMake:: cleanjunk
jan@57
   116
jan@133
   117
# build all mandatory prerequisite packages (containing superclasses) for this package
jan@133
   118
prereq:
jan@57
   119
	cd ../../../libbasic && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
jan@133
   120
	cd ../../../libbasic2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
jan@258
   121
	cd ../../../libbasic3 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
jan@133
   122
	cd ../../../libview && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
jan@57
   123
	cd ../../../libview2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
jan@57
   124
	cd ../../sunit && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
jan@57
   125
jan@57
   126
jan@57
   127
jan@133
   128
# build all packages containing referenced classes for this package
jan@277
   129
# they are not needed to compile the package (but later, to load it)
jan@133
   130
references:
jan@133
   131
jan@133
   132
jan@57
   133
cleanjunk::
jan@57
   134
	-rm -f *.s *.s2
jan@57
   135
jan@57
   136
clean::
jan@57
   137
	-rm -f *.o *.H
jan@57
   138
jan@57
   139
clobber:: clean
jan@57
   140
	-rm -f *.so *.dll
jan@57
   141
jan@57
   142
jan@57
   143
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it
jan@57
   144
$(OUTDIR)Builder__Report.$(O) Builder__Report.$(H): Builder__Report.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
jan@57
   145
$(OUTDIR)Builder__ReportFormat.$(O) Builder__ReportFormat.$(H): Builder__ReportFormat.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
jan@258
   146
$(OUTDIR)Builder__ReportRunner.$(O) Builder__ReportRunner.$(H): Builder__ReportRunner.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/StandaloneStartup.$(H) $(STCHDR)
jan@170
   147
$(OUTDIR)Builder__ReportSourceInfo.$(O) Builder__ReportSourceInfo.$(H): Builder__ReportSourceInfo.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/Stream.$(H) $(STCHDR)
jan@258
   148
$(OUTDIR)stx_goodies_builder_reports.$(O) stx_goodies_builder_reports.$(H): stx_goodies_builder_reports.st $(INCLUDE_TOP)/stx/libbasic/LibraryDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/ProjectDefinition.$(H) $(STCHDR)
jan@57
   149
$(OUTDIR)Builder__ChangeReport.$(O) Builder__ChangeReport.$(H): Builder__ChangeReport.st $(INCLUDE_TOP)/stx/goodies/builder/reports/Builder__Report.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
jan@170
   150
$(OUTDIR)Builder__CoverageReport.$(O) Builder__CoverageReport.$(H): Builder__CoverageReport.st $(INCLUDE_TOP)/stx/goodies/builder/reports/Builder__Report.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
jan@196
   151
$(OUTDIR)Builder__CoverageReportFormat.$(O) Builder__CoverageReportFormat.$(H): Builder__CoverageReportFormat.st $(INCLUDE_TOP)/stx/goodies/builder/reports/Builder__ReportFormat.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libcomp/Parser.$(H) $(INCLUDE_TOP)/stx/libcomp/Scanner.$(H) $(STCHDR)
jan@170
   152
$(OUTDIR)Builder__LintReport.$(O) Builder__LintReport.$(H): Builder__LintReport.st $(INCLUDE_TOP)/stx/goodies/builder/reports/Builder__Report.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
jan@57
   153
$(OUTDIR)Builder__LintReportFormat.$(O) Builder__LintReportFormat.$(H): Builder__LintReportFormat.st $(INCLUDE_TOP)/stx/goodies/builder/reports/Builder__ReportFormat.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
jan@206
   154
$(OUTDIR)Builder__ReportClassSourceInfo.$(O) Builder__ReportClassSourceInfo.$(H): Builder__ReportClassSourceInfo.st $(INCLUDE_TOP)/stx/goodies/builder/reports/Builder__ReportSourceInfo.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
jan@206
   155
$(OUTDIR)Builder__ReportExtensionsSourceInfo.$(O) Builder__ReportExtensionsSourceInfo.$(H): Builder__ReportExtensionsSourceInfo.st $(INCLUDE_TOP)/stx/goodies/builder/reports/Builder__ReportSourceInfo.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
jan@258
   156
$(OUTDIR)Builder__TestReport.$(O) Builder__TestReport.$(H): Builder__TestReport.st $(INCLUDE_TOP)/stx/goodies/builder/reports/Builder__Report.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestResult.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
jan@57
   157
$(OUTDIR)Builder__TestReportFormat.$(O) Builder__TestReportFormat.$(H): Builder__TestReportFormat.st $(INCLUDE_TOP)/stx/goodies/builder/reports/Builder__ReportFormat.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
jan@258
   158
$(OUTDIR)extensions.$(O): extensions.st $(INCLUDE_TOP)/stx/goodies/sunit/TestAsserter.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestCase.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
jan@57
   159
jan@57
   160
# ENDMAKEDEPEND --- do not remove this line
jan@57
   161