| 24 |
# debug versions of the needed udebs |
# debug versions of the needed udebs |
| 25 |
DEBUG=n |
DEBUG=n |
| 26 |
|
|
| 27 |
|
# All output files will go here. |
| 28 |
|
DEST=dest |
| 29 |
|
|
| 30 |
# Filename of initrd to create. |
# Filename of initrd to create. |
| 31 |
INITRD=$(TYPE)-initrd.gz |
INITRD=$(DEST)/$(TYPE)-initrd.gz |
| 32 |
|
|
| 33 |
# How big a floppy image should I make? (in kilobytes) |
# How big a floppy image should I make? (in kilobytes) |
| 34 |
FLOPPY_SIZE=1440 |
FLOPPY_SIZE=1440 |
| 35 |
|
|
| 36 |
# The floppy image to create. |
# The floppy image to create. |
| 37 |
FLOPPY_IMAGE=$(TYPE)-$(FLOPPY_SIZE).img |
FLOPPY_IMAGE=$(DEST)/$(TYPE)-$(FLOPPY_SIZE).img |
| 38 |
|
|
| 39 |
# Directory apt uses for stuff. |
# Directory apt uses for stuff. |
| 40 |
APTDIR=apt |
APTDIR=apt |
| 114 |
|
|
| 115 |
clean: demo_clean |
clean: demo_clean |
| 116 |
dh_clean |
dh_clean |
| 117 |
rm -f $(FLOPPY_IMAGE) $(INITRD) *-stamp |
rm -f *-stamp |
| 118 |
rm -rf $(TREE) $(APTDIR) $(UDEBDIR) $(TEMP) |
rm -rf $(TREE) $(APTDIR) $(UDEBDIR) $(TEMP) $(DEST) |
| 119 |
|
|
| 120 |
# Get all required udebs and put in UDEBDIR. |
# Get all required udebs and put in UDEBDIR. |
| 121 |
get_udebs: get_udebs-stamp |
get_udebs: get_udebs-stamp |
| 219 |
touch tree-stamp |
touch tree-stamp |
| 220 |
|
|
| 221 |
tarball: tree |
tarball: tree |
| 222 |
tar czf $(TYPE)-debian-installer.tar.gz $(TREE) |
tar czf $(DEST)/$(TYPE)-debian-installer.tar.gz $(TREE) |
| 223 |
|
|
| 224 |
# Make sure that the temporary mountpoint exists and is not occupied. |
# Make sure that the temporary mountpoint exists and is not occupied. |
| 225 |
tmp_mount: |
tmp_mount: |
| 248 |
mount -t ext2 -o loop $(TMP_FILE) $(TMP_MNT) |
mount -t ext2 -o loop $(TMP_FILE) $(TMP_MNT) |
| 249 |
cp -a $(TREE)/* $(TMP_MNT)/ |
cp -a $(TREE)/* $(TMP_MNT)/ |
| 250 |
umount $(TMP_MNT) |
umount $(TMP_MNT) |
| 251 |
|
install -d $(DEST) |
| 252 |
dd if=$(TMP_FILE) bs=1k | gzip -v9 > $(INITRD) |
dd if=$(TMP_FILE) bs=1k | gzip -v9 > $(INITRD) |
| 253 |
|
|
| 254 |
# Create a bootable floppy image. i386 specific. FIXME |
# Create a bootable floppy image. i386 specific. FIXME |
| 258 |
floppy_image: Makefile initrd tmp_mount $(FLOPPY_IMAGE) |
floppy_image: Makefile initrd tmp_mount $(FLOPPY_IMAGE) |
| 259 |
$(FLOPPY_IMAGE): |
$(FLOPPY_IMAGE): |
| 260 |
dh_testroot |
dh_testroot |
| 261 |
|
install -d $(DEST) |
| 262 |
|
|
| 263 |
dd if=/dev/zero of=$(FLOPPY_IMAGE) bs=1k count=$(FLOPPY_SIZE) |
dd if=/dev/zero of=$(FLOPPY_IMAGE) bs=1k count=$(FLOPPY_SIZE) |
| 264 |
mkfs.msdos -i deb00001 -n 'Debian Installer' $(FLOPPY_IMAGE) |
mkfs.msdos -i deb00001 -n 'Debian Installer' $(FLOPPY_IMAGE) |
| 276 |
|
|
| 277 |
# Write image to floppy |
# Write image to floppy |
| 278 |
boot_floppy: floppy_image |
boot_floppy: floppy_image |
| 279 |
|
install -d $(DEST) |
| 280 |
dd if=$(FLOPPY_IMAGE) of=/dev/fd0 |
dd if=$(FLOPPY_IMAGE) of=/dev/fd0 |
| 281 |
|
|
| 282 |
# If you're paranoid, you can check the floppy to make sure it wrote |
# If you're paranoid, you can check the floppy to make sure it wrote |
| 304 |
# this: |
# this: |
| 305 |
UPLOAD_DIR=klecker.debian.org:~/public_html/debian-installer/daily/ |
UPLOAD_DIR=klecker.debian.org:~/public_html/debian-installer/daily/ |
| 306 |
daily_build: |
daily_build: |
| 307 |
fakeroot $(MAKE) tarball > tmp/log 2>&1 |
install -d $(DEST) |
| 308 |
scp -q -B tmp/log $(UPLOAD_DIR) |
fakeroot $(MAKE) tarball > $(DEST)/log 2>&1 |
| 309 |
scp -q -B $(TYPE)-debian-installer.tar.gz \ |
scp -q -B $(DEST)/log $(UPLOAD_DIR) |
| 310 |
|
scp -q -B $(DEST)/$(TYPE)-debian-installer.tar.gz \ |
| 311 |
$(UPLOAD_DIR)/$(TYPE)-debian-installer-$(shell date +%Y%m%d).tar.gz |
$(UPLOAD_DIR)/$(TYPE)-debian-installer-$(shell date +%Y%m%d).tar.gz |
| 312 |
rm -f log |
rm -f log |
| 313 |
|
|