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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Anton Palgunov
mkimage-profiles
Commits
665c70a4
You need to sign in or sign up before continuing.
Commit
665c70a4
authored
Apr 06, 2012
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use PATH instead of hardwired pathlets
bin/ prefix tried to become a permatemp(tm). No way.
parent
68022a32
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
10 deletions
+11
-10
Makefile
Makefile
+3
-1
functions.mk
lib/functions.mk
+2
-1
help.mk
lib/help.mk
+2
-2
profile.mk
lib/profile.mk
+2
-4
main.mk
main.mk
+1
-1
reports.mk
reports.mk
+1
-1
No files found.
Makefile
View file @
665c70a4
...
...
@@ -12,10 +12,12 @@ endif
endif
export
ARCHES
export
PATH
:=
$(CURDIR)
/bin:
$(PATH)
# supervise target tracing; leave stderr alone
ifdef
REPORT
export
REPORT_PATH
:=
$(
shell
mktemp
--tmpdir
mkimage-profiles.report.XXXXXXX
)
POSTPROC
:=
|
bin/
report-filter
>
$(REPORT_PATH)
POSTPROC
:=
| report-filter
>
$(REPORT_PATH)
endif
# recursive make considered useful for m-p
...
...
lib/functions.mk
View file @
665c70a4
...
...
@@ -47,7 +47,8 @@ add_feature = $(call add,FEATURES,$(word 2,$(subst /, ,$@)))
# convert tag list into a list of relative package list paths
# NB: tags can do boolean expressions: (tag1 && !(tag2 || tag3))
tags = $(and $(strip $(1)),$(addprefix tagged/,$(shell echo "$(1)" | bin/tags2lists pkg.in/lists/tagged)))
tags = $(and $(strip $(1)),$(addprefix tagged/,$(shell echo "$(1)" \
| tags2lists pkg.in/lists/tagged)))
# toplevel Makefile convenience
addsuffices = $(foreach s,$(1),$(call addsuffix,$s,$(2)))
lib/help.mk
View file @
665c70a4
...
...
@@ -2,11 +2,11 @@
help/distro:
@echo '** available distribution targets:'; \
bin/
columnize $(sort $(DISTROS:distro/%=%))
columnize $(sort $(DISTROS:distro/%=%))
help/ve:
@echo '** available virtual environment targets:'; \
bin/
columnize $(sort $(VES))
columnize $(sort $(VES))
help: | help/distro help/space help/ve; @:
help/space:; @echo
lib/profile.mk
View file @
665c70a4
...
...
@@ -15,7 +15,7 @@ if [ -s "$(SYMLINK)" -a "$(NUM_TARGETS)" = 1 ] && \
then \
echo "$(BUILDLINK)"; \
else \
bin/
mktmpdir $(BUILDDIR_PREFIX) || exit 200; \
mktmpdir $(BUILDDIR_PREFIX) || exit 200; \
fi; )
endif
...
...
@@ -26,9 +26,7 @@ endif
# even smart caching only hurts when every build goes from scratch
NO_CACHE ?= 1
PATH := $(CURDIR)/bin:$(PATH)
export BUILDDIR NO_CACHE PATH
export BUILDDIR NO_CACHE
CONFIG := $(BUILDDIR)/distcfg.mk
RC := $(HOME)/.mkimage/profiles.mk
...
...
main.mk
View file @
665c70a4
...
...
@@ -6,7 +6,7 @@
# --- in BUILDDIR
# 4. build subprofiles and subsequently an image
MKIMAGE_PROFILES = $(dir $(lastword $(MAKEFILE_LIST)))
MKIMAGE_PROFILES
:
= $(dir $(lastword $(MAKEFILE_LIST)))
# deal with one target at a time
IMAGE_TARGET := $(firstword $(MAKECMDGOALS))# ve/generic.tar.gz
...
...
reports.mk
View file @
665c70a4
...
...
@@ -7,7 +7,7 @@ reports/targets:
BUILDDIR="`sed -n 's/^.* BUILDDIR = \(.*\)/\1/p' \
"$$REPORT_PATH"`"; \
REPORT_IMAGE="$$BUILDDIR/targets.png"; \
bin/
report-targets < "$$REPORT_PATH" \
report-targets < "$$REPORT_PATH" \
| dot -Tpng -o "$$REPORT_IMAGE" \
&& echo "** target graph report: $$REPORT_IMAGE" \
&& mv "$$REPORT_PATH" "$$BUILDDIR/targets.log"; \
...
...
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