aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKylie McClain <somasis@exherbo.org>2016-02-10 00:43:50 -0500
committerKylie McClain <somasis@exherbo.org>2016-02-10 00:45:43 -0500
commit99cb9635ba12e5f1e08be0657dec8ac9cabce436 (patch)
tree9675ee9c87ff12e71563a49e610615abc1a09596
parentd5346553d10561c6f4e057b081717951377004f0 (diff)
downloadlighter-99cb9635ba12e5f1e08be0657dec8ac9cabce436.tar.gz
lighter-99cb9635ba12e5f1e08be0657dec8ac9cabce436.tar.xz
lighter-99cb9635ba12e5f1e08be0657dec8ac9cabce436.zip
Makefile: add pack target
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ab28621..4e3daba 100644
--- a/Makefile
+++ b/Makefile
@@ -68,10 +68,15 @@ clean-%:
@printf "cleaning archives/%s...\n" "$*"
rm -rf archives/"$*"*
-build: prepare fetch extract $(foreach m,$(make),build/.built-$(m))
+$(BUILD)/initramfs.cpio.gz:
+ cd "$(BUILD)/root" && find . -print0 | cpio --null -ov --format=newc | gzip -9 > "$(BUILD)"/initramfs.cpio.gz
+
+pack: $(BUILD)/initramfs.cpio.gz
+
+build: prepare fetch extract $(foreach m,$(make),build/.built-$(m)) pack
clean:
rm -rf downloads archives $(BUILD) toolchain
-.PHONY: clean all prepare fetch extract build
+.PHONY: clean all prepare fetch extract build pack