summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0603418..c18e84c 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ PACKAGES="$(shell cat packages.$(ARCH))"
kver_FILE=$(WORKDIR)/root-image/etc/mkinitcpio.d/kernel26.kver
-all: net-iso core-iso
+all: net-iso core-iso torrent
# Rules for each type of image
core-iso: $(COREname)
@@ -82,13 +82,17 @@ $(WORKDIR)/iso/$(INSTALL_DIR)/isomounts: isomounts root-image
# Rule for make the [core] repo packages
core-pkgs:
-# mv core-pkgs $(WORKDIR)/
+ if [ -d core-pkgs ] ; then mv core-pkgs $(WORKDIR)/ ; fi
./download-repo.sh core $(WORKDIR)/core-pkgs/src/core/pkg
# Clean-up all work
clean:
- rm -rf $(WORKDIR) $(NETname) $(COREname)
+ if [ -d work/core-pkgs ] ; then mv work/core-pkgs . ; fi
+ rm -rf $(WORKDIR) $(NETname) $(COREname) $(NETname).torrent $(COREname).torrent
+
+torrent:
+ ./createtorrent $(NETname) $(COREname)
.PHONY: all core-iso net-iso