Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
osak
lipck
Commits
e56404d1
Commit
e56404d1
authored
Aug 28, 2015
by
Christopher Spinrath
Browse files
image: introduce a image_clean phony target
parent
ad94e2d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
e56404d1
...
...
@@ -324,7 +324,7 @@ initrd_pack : $(ARCH_DIR)$(INITRD_TARGET)
$(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)
"
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)
test
!
-e
"
$(IMAGE_DIR)
/.git"
...
...
@@ -394,6 +394,9 @@ $(IMAGE_FILE): $(IMAGE_PART_FILE)
@echo
@echo "Image is ready
:
$@"
image_clean
:
$(RM)
"
$(IMAGE_PART_FILE)
"
image_grub_lipinfo
:
$(IMAGE_DIR)/grub/lipinfo.cfg
$(IMAGE_DIR)/grub/lipinfo.cfg
:
| $(WORKSPACE)
mkdir
-p
$(IMAGE_DIR)
/grub/
...
...
@@ -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
APT_CACHE_PHONY
=
apt_cache apt_cache_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
.PHONY
:
default $(COMMON_PHONY) $(ISO_PHONY) $(ROOTFS_PHONY) $(INITRD_PHONY) $(APT_CACHE_PHONY) $(IMAGE_PHONY) $(REPO_PHONY)
Write
Preview
Supports
Markdown
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