Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
c692da6a
Commit
c692da6a
authored
Apr 23, 2012
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reports.mk: cosmetic tweaks
REPORT_PATH comes from a makefile; let's use corresponding notation.
parent
7221c53c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
reports.mk
reports.mk
+9
-9
No files found.
reports.mk
View file @
c692da6a
...
...
@@ -2,16 +2,14 @@
ifneq (,$(REPORT))
BUILDDIR := $(shell sed -n 's/^.* BUILDDIR = \(.*\)/\1/p' "$
$REPORT_PATH
")
BUILDDIR := $(shell sed -n 's/^.* BUILDDIR = \(.*\)/\1/p' "$
(REPORT_PATH)
")
include lib/common.mk
all: reports/targets reports/scripts
reports/prep:
@if ! [ -n "$$REPORT_PATH" -a -s "$$REPORT_PATH" ]; then \
exit 0; \
fi; \
mkdir -p "$(BUILDDIR)/reports/"
@mkdir -p "$(BUILDDIR)/reports/"
reports/scripts: reports/prep
@grep "^mki.*scripts: Run: " $(BUILDDIR)/$(BUILD_LOG) \
...
...
@@ -20,19 +18,21 @@ reports/scripts: reports/prep
&& echo "** scripts report: $(BUILDDIR)/$@.log" $(SHORTEN)
reports/targets: reports/prep
@if [ ! -s "$$REPORT_PATH" ]; then exit 0; fi; \
@if ! [ -n "$(REPORT_PATH)" -a -s "$(REPORT_PATH)" ]; then \
exit 0; \
fi; \
if type -t dot >&/dev/null; then \
REPORT_IMAGE="$(BUILDDIR)/$@.png"; \
report-targets < "$
$REPORT_PATH
" \
report-targets < "$
(REPORT_PATH)
" \
| dot -Tpng -o "$$REPORT_IMAGE" \
&& echo "** target graph report: $$REPORT_IMAGE"; \
else \
REPORT_DOT="$(BUILDDIR)/targets.dot"; \
report-targets < "$
$REPORT_PATH
" > "$$REPORT_DOT" \
report-targets < "$
(REPORT_PATH)
" > "$$REPORT_DOT" \
&& echo "** graphviz missing, " \
"target graph dot file: $$REPORT_DOT"; \
fi $(SHORTEN); \
mv "$
$REPORT_PATH
" "$(BUILDDIR)/$@.log"
mv "$
(REPORT_PATH)
" "$(BUILDDIR)/$@.log"
else
all:; @:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment