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