From a6a742628b560f9d5097008940547391831762c0 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Fri, 24 Jan 2014 02:17:56 +0100 Subject: Enable generation of HDD images. This is only useful for older BIOSes, that don't support hybrid ISO which can otherwise be burnt onto USB key as well. --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d207c86..e8f4e44 100644 --- a/Makefile +++ b/Makefile @@ -3,18 +3,22 @@ CC += -m$(shell dpkg-architecture -qDEB_HOST_ARCH_BITS $(patsubst %,-a%, ${ARCH} DEB_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH $(patsubst %,-a%, ${ARCH})) VERSION = 7.3.0 +IMAGE_TYPE ?= iso ISOIMG = debian-${VERSION}-${DEB_ARCH}-netinst.iso -PRESEEDED = $(patsubst %.iso,%-preseeded.iso, ${ISOIMG}) +PRESEEDED = $(patsubst %.iso,%-preseeded.${IMAGE_TYPE}, ${ISOIMG}) UDEBS = $(shell ./src/getname.sh) CHECKSUMS = MD5 SHA1 SHA256 SHA512 # Preseed -iso-preseed: +preseed: make dist/${DEB_ARCH}/${PRESEEDED} dist/${DEB_ARCH}/${PRESEEDED}: preseed.cfg $(wildcard ./include/*) dist/${DEB_ARCH}/${ISOIMG} ${UDEBS} ./preseed.sh $@ dist/${DEB_ARCH}/${ISOIMG} ${UDEBS} +sig: dist/${DEB_ARCH}/${PRESEEDED} + gpg --detach-sign $^ + # Get, verify iso-get: dist/${DEB_ARCH}/${ISOIMG} iso-checksum: $(patsubst %,iso-checksum-%, ${CHECKSUMS}) @@ -43,4 +47,4 @@ clean: @for d in src/*-udeb/; do rm -fv $${d%-udeb/}_*.build $${d%-udeb/}_*.changes $${d%-udeb/}_*.udeb; cd $$d && dh_clean && cd -; done @rm -fv $(patsubst %,dist/${DEB_ARCH}/%SUMS, ${CHECKSUMS}) $(patsubst %,dist/${DEB_ARCH}/%SUMS.sign, ${CHECKSUMS}) -.PHONY: clean cleanall iso-get iso-checksum iso-preseed udebs +.PHONY: clean cleanall iso-get iso-checksum preseed udebs -- cgit v1.2.3