Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lipck
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osak
lipck
Commits
e56404d1
Commit
e56404d1
authored
Aug 28, 2015
by
Christopher Spinrath
Browse files
Options
Downloads
Patches
Plain Diff
image: introduce a image_clean phony target
parent
ad94e2d3
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+5
-2
5 additions, 2 deletions
Makefile
with
5 additions
and
2 deletions
Makefile
+
5
−
2
View file @
e56404d1
...
@@ -324,7 +324,7 @@ initrd_pack : $(ARCH_DIR)$(INITRD_TARGET)
...
@@ -324,7 +324,7 @@ initrd_pack : $(ARCH_DIR)$(INITRD_TARGET)
$(call gentargets,$(INITRD_TARGET))
:
$(call archdir
,
%)$(STATE_DIR)/initrd_remastered
$(call gentargets,$(INITRD_TARGET))
:
$(call archdir
,
%)$(STATE_DIR)/initrd_remastered
cd
"
$(
call archdir,
$*
)$(
INITRD
)
"
&&
find | cpio
-H
newc
-o
| lzma
$(
LZMA_FLAGS
)
-z
>
"
$(
call archdir,
$*
)$(
INITRD_TARGET
)
"
cd
"
$(
call archdir,
$*
)$(
INITRD
)
"
&&
find | cpio
-H
newc
-o
| lzma
$(
LZMA_FLAGS
)
-z
>
"
$(
call archdir,
$*
)$(
INITRD_TARGET
)
"
clean_really_all
:
iso_clean_both rootfs_clean_both rootfs_common_clean initrd_clean_both
clean_really_all
:
iso_clean_both rootfs_clean_both rootfs_common_clean initrd_clean_both
image_clean
image_git $(IMAGE_DIR)/.git
:
|$(WORKSPACE)
image_git $(IMAGE_DIR)/.git
:
|$(WORKSPACE)
test
!
-e
"
$(
IMAGE_DIR
)
/.git"
test
!
-e
"
$(
IMAGE_DIR
)
/.git"
...
@@ -394,6 +394,9 @@ $(IMAGE_FILE): $(IMAGE_PART_FILE)
...
@@ -394,6 +394,9 @@ $(IMAGE_FILE): $(IMAGE_PART_FILE)
@echo
@echo
@echo "Image is ready
:
$@"
@echo "Image is ready
:
$@"
image_clean
:
$(
RM
)
"
$(
IMAGE_PART_FILE
)
"
image_grub_lipinfo
:
$(IMAGE_DIR)/grub/lipinfo.cfg
image_grub_lipinfo
:
$(IMAGE_DIR)/grub/lipinfo.cfg
$(IMAGE_DIR)/grub/lipinfo.cfg
:
| $(WORKSPACE)
$(IMAGE_DIR)/grub/lipinfo.cfg
:
| $(WORKSPACE)
mkdir
-p
$(
IMAGE_DIR
)
/grub/
mkdir
-p
$(
IMAGE_DIR
)
/grub/
...
@@ -511,7 +514,7 @@ ROOTFS_PHONY=rootfs_unsquash rootfs_prepare rootfs_remaster rootfs_finalize root
...
@@ -511,7 +514,7 @@ ROOTFS_PHONY=rootfs_unsquash rootfs_prepare rootfs_remaster rootfs_finalize root
INITRD_PHONY
=
initrd_unpack initrd_remaster initrd_pack initrd_clean initrd_clean_both
INITRD_PHONY
=
initrd_unpack initrd_remaster initrd_pack initrd_clean initrd_clean_both
APT_CACHE_PHONY
=
apt_cache apt_cache_clean
APT_CACHE_PHONY
=
apt_cache apt_cache_clean
REPO_PHONY
=
repo repo_packages repo_package_info repo_metadata repo_clean
REPO_PHONY
=
repo repo_packages repo_package_info repo_metadata repo_clean
IMAGE_PHONY
=
image image_content image_skel_file image_assemble image_remaster image_git image_git_pull image_binary_files image_grub_lipinfo
IMAGE_PHONY
=
image image_content image_skel_file image_assemble image_remaster image_git image_git_pull image_binary_files image_grub_lipinfo
image_clean
COMMON_PHONY
=
help
workspace config config_clean clean_really_all
COMMON_PHONY
=
help
workspace config config_clean clean_really_all
.PHONY
:
default $(COMMON_PHONY) $(ISO_PHONY) $(ROOTFS_PHONY) $(INITRD_PHONY) $(APT_CACHE_PHONY) $(IMAGE_PHONY) $(REPO_PHONY)
.PHONY
:
default $(COMMON_PHONY) $(ISO_PHONY) $(ROOTFS_PHONY) $(INITRD_PHONY) $(APT_CACHE_PHONY) $(IMAGE_PHONY) $(REPO_PHONY)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment