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
2
Issues
2
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
86f75210
Commit
86f75210
authored
Jun 17, 2021
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile, profile.mk: not create temp directories with DIRECT_TARGETS
See-also:
https://bugzilla.altlinux.org/show_bug.cgi?id=40148
parent
4f1110f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Makefile
Makefile
+1
-1
profile.mk
lib/profile.mk
+2
-0
No files found.
Makefile
View file @
86f75210
...
@@ -22,7 +22,7 @@ export PATH := $(CURDIR)/bin:$(PATH)
...
@@ -22,7 +22,7 @@ export PATH := $(CURDIR)/bin:$(PATH)
# recursive make considered useful for m-p
# recursive make considered useful for m-p
MAKE
+=
-r
--no-print-directory
MAKE
+=
-r
--no-print-directory
DIRECT_TARGETS
:=
help help
/distro
help
/ve
help
/vm clean distclean check
export
DIRECT_TARGETS
:=
help help
/distro
help
/ve
help
/vm clean distclean check
.PHONY
:
$(DIRECT_TARGETS)
.PHONY
:
$(DIRECT_TARGETS)
# these build nothing so no use of reports either
# these build nothing so no use of reports either
...
...
lib/profile.mk
View file @
86f75210
...
@@ -2,6 +2,7 @@ ifndef MKIMAGE_PROFILES
...
@@ -2,6 +2,7 @@ ifndef MKIMAGE_PROFILES
$(error this makefile is designed to be included in toplevel one)
$(error this makefile is designed to be included in toplevel one)
endif
endif
ifneq (,$(filter-out $(DIRECT_TARGETS),$(MAKECMDGOALS)))
# this could have come from env; or could be symlinked; or is made anew
# this could have come from env; or could be symlinked; or is made anew
# (the reuse rationale is avoiding extra tmpdir lookups)
# (the reuse rationale is avoiding extra tmpdir lookups)
# NB: immediate assignment matters
# NB: immediate assignment matters
...
@@ -20,6 +21,7 @@ endif
...
@@ -20,6 +21,7 @@ endif
ifeq (,$(BUILDDIR))
ifeq (,$(BUILDDIR))
$(error suitable BUILDDIR unavailable)
$(error suitable BUILDDIR unavailable)
endif
endif
endif
# even smart caching only hurts when every build goes from scratch
# even smart caching only hurts when every build goes from scratch
NO_CACHE ?= 1
NO_CACHE ?= 1
...
...
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