From c6093abfd8f9611f0f45dd77acd900ae705be20d Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sat, 13 Feb 2010 16:45:13 -0600 Subject: [PATCH] Makefile: clarifying comments and push target --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 161cda2..196c9bb 100644 --- a/Makefile +++ b/Makefile @@ -34,19 +34,27 @@ curruser != id -u checkroot = @if [ $(curruser) -gt 0 ]; then printf "\033[1;31mI need root\033[0m\n"; exit 1; fi checkdeps = @if [ ! -x "$(mkisofs)" -o ! -x "$(mkuzip)" ]; then printf "\033[1;31mCheck depends! mkisofs: $(mkisofs) mkuzip: $(mkuzip)\033[0m\n"; exit 1; fi +# Default target all: $(worktree)/card.img image: $(worktree)/card.img firmware: $(worktree)/card.img +# Check that we're running as root checkroot: $(checkroot) +# Burn to device burn: $(worktree)/card.img $(checkroot) script/burn $(.ALLSRC) $(dev) +# Push to build target +push: + script/push + +# Generate components $(worktree)/card.img: $(worktree)/boot.img $(worktree)/root.img $(checkroot) ${gencard} -b $(worktree)/boot.img -r $(worktree)/root.img -c $(worktree)/conf -o $(worktree)/card.img @@ -76,6 +84,7 @@ $(worktree)/root: $(srctree)/root $(checkroot) $(gentree) -b $(srctree) -t $(worktree) -r $(.ALLSRC) +# Scrub everything clean clean: $(checkroot) rm -Rf $(worktree) -- 2.42.0