2004-02-15 20:46:45 +00:00
|
|
|
#
|
2005-11-08 02:19:46 +00:00
|
|
|
# (c) 2004,2005 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
2004-02-15 20:46:45 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
PACKAGE = emile
|
2005-09-09 23:44:20 +00:00
|
|
|
VERSION = 0.10CVS
|
2004-06-09 21:34:13 +00:00
|
|
|
|
2004-12-12 23:07:42 +00:00
|
|
|
PREFIX=/
|
|
|
|
|
2004-06-09 21:34:13 +00:00
|
|
|
# kernel boot arguments
|
|
|
|
|
2005-05-09 22:47:39 +00:00
|
|
|
FLOPPY=/dev/floppy/0
|
2005-09-02 23:54:37 +00:00
|
|
|
#CONSOLE=console=ttyS0,9600n8 console=tty0
|
2004-06-09 21:34:13 +00:00
|
|
|
|
2005-05-09 22:47:39 +00:00
|
|
|
NETBOOT_ARGS="root=/dev/nfs ip=dhcp rw $(CONSOLE)"
|
2005-08-22 20:19:51 +00:00
|
|
|
#RESCUE_ARGS="root=/dev/ramdisk ramdisk_size=2048 $(CONSOLE)"
|
|
|
|
RESCUE_ARGS="root=/dev/ramdisk $(CONSOLE)"
|
2005-05-09 22:47:39 +00:00
|
|
|
INSTALLER_ARGS="prompt_ramdisk=1 load_ramdisk=1 ramdisk_start=0 root=/dev/fd0 ramdisk_size=4096 $(CONSOLE)"
|
2005-11-08 02:19:46 +00:00
|
|
|
BOOT_ARGS="root=/dev/sda4 $(CONSOLE)"
|
2004-02-15 20:46:45 +00:00
|
|
|
|
2004-06-03 11:09:28 +00:00
|
|
|
# build info
|
|
|
|
|
|
|
|
WHO = $(shell whoami)
|
|
|
|
WHERE = $(shell hostname)
|
|
|
|
WHEN = $(shell LANG=C date)
|
2005-05-10 10:51:04 +00:00
|
|
|
ARCH = $(shell uname -m)
|
|
|
|
OS = $(shell uname -o)
|
2004-06-03 11:09:28 +00:00
|
|
|
|
2005-05-10 10:51:04 +00:00
|
|
|
SIGNATURE = $(PACKAGE)-$(VERSION) $(WHO)@$(WHERE)($(ARCH) $(OS)) $(WHEN)
|
2004-06-03 11:09:28 +00:00
|
|
|
|
2004-02-15 20:46:45 +00:00
|
|
|
# tools to use
|
|
|
|
|
2005-05-10 20:20:15 +00:00
|
|
|
AS=$(CROSS_COMPILE)as
|
|
|
|
CC=$(CROSS_COMPILE)gcc
|
|
|
|
LD=$(CROSS_COMPILE)ld
|
|
|
|
OBJCOPY=$(CROSS_COMPILE)objcopy
|
2005-05-10 10:51:04 +00:00
|
|
|
|
|
|
|
ifneq ($(ARCH),m68k)
|
|
|
|
M68K_CROSS_COMPILE = m68k-linux-
|
2004-02-15 20:46:45 +00:00
|
|
|
endif
|
|
|
|
|
2005-05-10 10:51:04 +00:00
|
|
|
M68K_AS=$(M68K_CROSS_COMPILE)as
|
|
|
|
M68K_CC=$(M68K_CROSS_COMPILE)gcc
|
|
|
|
M68K_LD=$(M68K_CROSS_COMPILE)ld
|
|
|
|
M68K_OBJCOPY=$(M68K_CROSS_COMPILE)objcopy
|
|
|
|
|
|
|
|
ifneq ($(ARCH),ppc)
|
|
|
|
PPC_CROSS_COMPILE = ppc-linux-
|
|
|
|
endif
|
2004-02-15 20:46:45 +00:00
|
|
|
|
2005-05-10 10:51:04 +00:00
|
|
|
PPC_AS=$(PPC_CROSS_COMPILE)as
|
|
|
|
PPC_CC=$(PPC_CROSS_COMPILE)gcc
|
|
|
|
PPC_LD=$(PPC_CROSS_COMPILE)ld
|
|
|
|
PPC_OBJCOPY=$(PPC_CROSS_COMPILE)objcopy
|
|
|
|
|
|
|
|
# Kernel architecture
|
2004-02-17 10:06:57 +00:00
|
|
|
|
2005-09-19 19:08:55 +00:00
|
|
|
LINUXRAMDISK=ramdisk.gz
|
|
|
|
LINUXPATH=vmlinux
|
2004-06-01 22:00:21 +00:00
|
|
|
|
2005-09-19 19:08:55 +00:00
|
|
|
LINUX=$(shell ls $(LINUXPATH) 2> /dev/null)
|
2005-05-10 11:25:17 +00:00
|
|
|
|
2005-09-19 19:08:55 +00:00
|
|
|
ifeq ($(LINUX),$(LINUXPATH))
|
|
|
|
FILEARCH=$(shell file -bknL $(LINUX) | cut -d, -f 2)
|
|
|
|
ifeq ($(findstring PowerPC, $(FILEARCH)), PowerPC)
|
|
|
|
|
|
|
|
KARCH=ppc
|
|
|
|
|
|
|
|
else
|
|
|
|
ifeq ($(findstring Motorola 68000, $(FILEARCH)), Motorola 68000)
|
|
|
|
|
|
|
|
KARCH=classic
|
|
|
|
|
|
|
|
else
|
|
|
|
ifeq ($(findstring Motorola 68, $(FILEARCH)), Motorola 68)
|
|
|
|
|
|
|
|
KARCH=m68k
|
|
|
|
else
|
|
|
|
KARCH=unknown
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
2005-05-10 11:25:17 +00:00
|
|
|
else
|
2005-09-19 19:08:55 +00:00
|
|
|
KARCH=m68k
|
2005-05-10 11:25:17 +00:00
|
|
|
endif
|
2005-05-10 10:51:04 +00:00
|
|
|
|
|
|
|
# Target
|
2004-02-15 20:46:45 +00:00
|
|
|
|
2005-11-16 01:29:57 +00:00
|
|
|
all: libemile libiso9660 libiso9660-m68k libgzip-m68k \
|
|
|
|
tools first/first_floppy \
|
2005-11-12 22:31:15 +00:00
|
|
|
second/$(KARCH)-linux-floppy/second \
|
2005-09-19 23:08:16 +00:00
|
|
|
second/$(KARCH)-linux-scsi/second second/m68k-netbsd-floppy/second
|
2005-05-10 10:51:04 +00:00
|
|
|
|
2005-05-10 11:25:17 +00:00
|
|
|
# We can build floppy image only if a kernel is provided
|
|
|
|
|
2005-09-19 19:08:55 +00:00
|
|
|
ifeq ($(LINUX),$(LINUXPATH))
|
2005-05-10 11:25:17 +00:00
|
|
|
all_bin: netboot.bin rescue.bin debian-installer.bin boot.bin
|
2005-05-10 14:30:01 +00:00
|
|
|
rm -f last.bin
|
2005-05-10 11:25:17 +00:00
|
|
|
|
2005-11-08 02:19:46 +00:00
|
|
|
floppy.bin: tools first/first_floppy vmlinuz \
|
2005-09-19 23:08:16 +00:00
|
|
|
second/$(KARCH)-linux-floppy/second
|
2005-05-10 10:51:04 +00:00
|
|
|
tools/emile-install -f first/first_floppy \
|
2005-09-19 19:08:55 +00:00
|
|
|
-s second/$(KARCH)-linux-floppy/second \
|
2005-05-09 22:47:39 +00:00
|
|
|
-k vmlinuz floppy.bin.X
|
|
|
|
ifdef CONSOLE
|
|
|
|
tools/emile-set-output floppy.bin.X --printer --modem
|
2005-01-25 23:25:38 +00:00
|
|
|
endif
|
2005-05-09 22:47:39 +00:00
|
|
|
mv floppy.bin.X floppy.bin
|
|
|
|
|
2005-11-08 02:19:46 +00:00
|
|
|
floppy_ramdisk.bin: tools first/first_floppy vmlinuz \
|
2005-09-19 19:08:55 +00:00
|
|
|
second/$(KARCH)-linux-floppy/second $(LINUXRAMDISK)
|
2005-05-10 10:51:04 +00:00
|
|
|
tools/emile-install -f first/first_floppy \
|
2005-09-19 19:08:55 +00:00
|
|
|
-s second/$(KARCH)-linux-floppy/second \
|
|
|
|
-k vmlinuz -r $(LINUXRAMDISK) floppy_ramdisk.bin.X
|
2005-01-25 23:25:38 +00:00
|
|
|
ifdef CONSOLE
|
2005-05-09 22:47:39 +00:00
|
|
|
tools/emile-set-output floppy_ramdisk.bin.X --printer --modem
|
2004-06-02 21:10:19 +00:00
|
|
|
endif
|
2005-05-09 22:47:39 +00:00
|
|
|
mv floppy_ramdisk.bin.X floppy_ramdisk.bin
|
|
|
|
|
|
|
|
debian-installer.bin: floppy.bin
|
|
|
|
rm -f last.bin
|
|
|
|
cp floppy.bin debian-installer.bin.X
|
|
|
|
tools/emile-set-cmdline debian-installer.bin.X $(INSTALLER_ARGS)
|
|
|
|
mv debian-installer.bin.X debian-installer.bin
|
|
|
|
ln -s debian-installer.bin last.bin
|
|
|
|
|
|
|
|
netboot.bin: floppy.bin
|
|
|
|
rm -f last.bin
|
|
|
|
cp floppy.bin netboot.bin.X
|
|
|
|
tools/emile-set-cmdline netboot.bin.X $(NETBOOT_ARGS)
|
|
|
|
mv netboot.bin.X netboot.bin
|
|
|
|
ln -s netboot.bin last.bin
|
|
|
|
|
|
|
|
rescue.bin: floppy_ramdisk.bin
|
|
|
|
rm -f last.bin
|
|
|
|
cp floppy_ramdisk.bin rescue.bin.X
|
|
|
|
tools/emile-set-cmdline rescue.bin.X $(RESCUE_ARGS)
|
|
|
|
mv rescue.bin.X rescue.bin
|
|
|
|
ln -s rescue.bin last.bin
|
|
|
|
|
|
|
|
boot.bin: floppy.bin
|
|
|
|
rm -f last.bin
|
|
|
|
cp floppy.bin boot.bin.X
|
|
|
|
tools/emile-set-cmdline boot.bin.X $(BOOT_ARGS)
|
|
|
|
mv boot.bin.X boot.bin
|
|
|
|
ln -s boot.bin last.bin
|
2004-02-15 20:46:45 +00:00
|
|
|
|
2005-09-19 19:08:55 +00:00
|
|
|
vmlinux.bin: $(LINUX)
|
|
|
|
$(M68K_OBJCOPY) -I elf32-big -O binary -R .note -R .comment -S $(LINUX) vmlinux.bin
|
2004-02-15 20:46:45 +00:00
|
|
|
|
|
|
|
vmlinuz: vmlinux.bin
|
|
|
|
cp vmlinux.bin vmlinuz.out
|
|
|
|
gzip -9 vmlinuz.out
|
|
|
|
mv vmlinuz.out.gz vmlinuz
|
2005-05-10 11:25:17 +00:00
|
|
|
endif
|
2004-02-15 20:46:45 +00:00
|
|
|
|
2005-09-19 19:08:55 +00:00
|
|
|
NETBSDPATH=netbsd
|
|
|
|
|
|
|
|
NETBSD=$(shell ls $(NETBSDPATH) 2> /dev/null)
|
|
|
|
|
|
|
|
ifeq ($(NETBSD),$(NETBSDPATH))
|
2005-11-08 02:19:46 +00:00
|
|
|
netbsd-floppy.bin: tools first/first_floppy netbsd.gz \
|
2005-09-19 23:08:16 +00:00
|
|
|
second/m68k-netbsd-floppy/second
|
2005-09-19 19:08:55 +00:00
|
|
|
tools/emile-install -f first/first_floppy \
|
2005-09-19 23:08:16 +00:00
|
|
|
-s second/$(KARCH)-netbsd-floppy/second \
|
2005-09-19 19:08:55 +00:00
|
|
|
-k netbsd.gz netbsd-floppy.bin.X
|
|
|
|
ifdef CONSOLE
|
|
|
|
tools/emile-set-output netbsd-floppy.bin.X --printer --modem
|
|
|
|
endif
|
|
|
|
mv netbsd-floppy.bin.X netbsd-floppy.bin
|
|
|
|
|
|
|
|
netbsd-boot.bin: netbsd-floppy.bin
|
|
|
|
rm -f last.bin
|
|
|
|
cp netbsd-floppy.bin netbsd-boot.bin.X
|
|
|
|
tools/emile-set-cmdline netbsd-boot.bin.X $(BOOT_ARGS)
|
|
|
|
mv netbsd-boot.bin.X netbsd-boot.bin
|
|
|
|
ln -s netbsd-boot.bin last.bin
|
|
|
|
|
|
|
|
netbsd.bin: $(LINUX)
|
|
|
|
$(M68K_OBJCOPY) -I elf32-big -O binary -R .note -R .comment -S $(NETBSD) netbsd.bin
|
|
|
|
|
|
|
|
netbsd.gz: netbsd.bin
|
|
|
|
cp netbsd.bin netbsd.out
|
|
|
|
gzip -9 netbsd.out
|
|
|
|
mv netbsd.out.gz netbsd.gz
|
|
|
|
endif
|
|
|
|
|
2004-12-12 23:07:42 +00:00
|
|
|
first/first_floppy::
|
2005-05-10 10:51:04 +00:00
|
|
|
$(MAKE) -C first OBJCOPY=$(M68K_OBJCOPY) LD=$(M68K_LD) CC=$(M68K_CC) AS=$(M68K_AS) SIGNATURE="$(SIGNATURE)"
|
|
|
|
|
2005-11-16 01:29:57 +00:00
|
|
|
second/$(KARCH)-linux-floppy/second:: libmacos libunix libiso9660-m68k libgzip-m68k libfloppy
|
2005-05-10 10:51:04 +00:00
|
|
|
$(MAKE) -C second OBJCOPY=$(M68K_OBJCOPY) LD=$(M68K_LD) CC=$(M68K_CC) \
|
|
|
|
AS=$(M68K_AS) VERSION=$(VERSION) SIGNATURE="$(SIGNATURE)" \
|
2005-09-19 23:08:16 +00:00
|
|
|
TARGET=$(KARCH)-linux MEDIA=floppy
|
2004-02-15 20:46:45 +00:00
|
|
|
|
2005-11-16 01:29:57 +00:00
|
|
|
second/$(KARCH)-linux-scsi/second:: libmacos libunix libiso9660-m68k libgzip-m68k libfloppy
|
2005-05-10 10:51:04 +00:00
|
|
|
$(MAKE) -C second OBJCOPY=$(M68K_OBJCOPY) LD=$(M68K_LD) CC=$(M68K_CC) \
|
|
|
|
AS=$(M68K_AS) VERSION=$(VERSION) SIGNATURE="$(SIGNATURE)" \
|
2005-09-19 23:08:16 +00:00
|
|
|
TARGET=$(KARCH)-linux MEDIA=scsi
|
|
|
|
|
2005-11-16 01:29:57 +00:00
|
|
|
second/m68k-netbsd-floppy/second:: libmacos libunix libiso9660-m68k libgzip-m68k libfloppy
|
2005-09-19 23:08:16 +00:00
|
|
|
$(MAKE) -C second OBJCOPY=$(M68K_OBJCOPY) LD=$(M68K_LD) CC=$(M68K_CC) \
|
|
|
|
AS=$(M68K_AS) VERSION=$(VERSION) SIGNATURE="$(SIGNATURE)" \
|
|
|
|
TARGET=m68k-netbsd MEDIA=floppy
|
2004-05-19 00:09:58 +00:00
|
|
|
|
2005-11-08 02:19:46 +00:00
|
|
|
first-install:: first/first_floppy
|
|
|
|
$(MAKE) -C first install DESTDIR=$(DESTDIR) PREFIX=$(PREFIX)
|
|
|
|
|
|
|
|
first-uninstall::
|
|
|
|
$(MAKE) -C first uninstall DESTDIR=$(DESTDIR) PREFIX=$(PREFIX)
|
|
|
|
|
|
|
|
second-install:: second/$(KARCH)-floppy/second
|
|
|
|
$(MAKE) -C first install DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) \
|
|
|
|
KARCH=$(KARCH)
|
|
|
|
|
|
|
|
second-uninstall::
|
|
|
|
$(MAKE) -C first uninstall DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) \
|
|
|
|
KARCH=$(KARCH)
|
|
|
|
|
|
|
|
libmacos::
|
|
|
|
$(MAKE) -C libmacos all CC=$(M68K_CC) AS=$(M68K_AS)
|
|
|
|
|
|
|
|
libmacos-install:: libmacos
|
|
|
|
$(MAKE) -C libmacos install DESTDIR=$(DESTDIR) PREFIX=$(PREFIX)
|
|
|
|
|
|
|
|
libmacos-uninstall::
|
|
|
|
$(MAKE) -C libmacos uninstall DESTDIR=$(DESTDIR) PREFIX=$(PREFIX)
|
|
|
|
|
|
|
|
libunix::
|
|
|
|
$(MAKE) -C libunix all CC=$(M68K_CC) AS=$(M68K_AS)
|
|
|
|
|
2005-11-12 22:31:15 +00:00
|
|
|
libiso9660-m68k::
|
|
|
|
$(MAKE) -C libiso9660 all TARGET=$(KARCH)-linux LD=$(M68K_LD) CC=$(M68K_CC) AS=$(M68K_AS)
|
|
|
|
|
|
|
|
libiso9660::
|
|
|
|
$(MAKE) -C libiso9660 all TARGET=native
|
|
|
|
|
|
|
|
libiso9660-install:
|
|
|
|
$(MAKE) -C libiso9660 install TARGET=$(KARCH)-linux
|
|
|
|
|
|
|
|
libiso9660-uninstall:
|
|
|
|
$(MAKE) -C libiso9660 uninstall TARGET=$(KARCH)-linux
|
|
|
|
|
2005-11-16 01:29:57 +00:00
|
|
|
libgzip-m68k::
|
|
|
|
$(MAKE) -C libgzip all TARGET=$(KARCH)-linux LD=$(M68K_LD) CC=$(M68K_CC) AS=$(M68K_AS)
|
|
|
|
|
|
|
|
libgzip::
|
|
|
|
$(MAKE) -C libgzip all TARGET=native
|
|
|
|
|
2004-12-10 00:29:57 +00:00
|
|
|
libemile::
|
2005-05-10 20:20:15 +00:00
|
|
|
$(MAKE) -C libemile all VERSION=$(VERSION) SIGNATURE="$(SIGNATURE)" \
|
|
|
|
CROSS_COMPILE=$(CROSS_COMPILE)
|
2004-12-10 00:29:57 +00:00
|
|
|
|
2005-11-08 02:19:46 +00:00
|
|
|
libemile-install:: libemile
|
|
|
|
$(MAKE) -C libemile install DESTDIR=$(DESTDIR) PREFIX=$(PREFIX)
|
|
|
|
|
|
|
|
libemile-uninstall::
|
|
|
|
$(MAKE) -C libemile uninstall DESTDIR=$(DESTDIR) PREFIX=$(PREFIX)
|
|
|
|
|
2005-11-16 01:29:57 +00:00
|
|
|
libfloppy::
|
|
|
|
$(MAKE) -C libfloppy all CC=$(M68K_CC) AS=$(M68K_AS)
|
|
|
|
|
|
|
|
tools:: libemile libiso9660 libgzip
|
2004-12-16 23:30:35 +00:00
|
|
|
$(MAKE) -C tools all VERSION=$(VERSION) SIGNATURE="$(SIGNATURE)" \
|
2005-05-10 20:20:15 +00:00
|
|
|
PREFIX=$(PREFIX) CROSS_COMPILE=$(CROSS_COMPILE)
|
2004-05-19 00:09:58 +00:00
|
|
|
|
2005-11-08 02:19:46 +00:00
|
|
|
tools-install:: tools
|
|
|
|
$(MAKE) -C tools install DESTDIR=$(DESTDIR) PREFIX=$(PREFIX)
|
|
|
|
|
|
|
|
tools-uninstall::
|
|
|
|
$(MAKE) -C tools uninstall DESTDIR=$(DESTDIR) PREFIX=$(PREFIX)
|
|
|
|
|
|
|
|
docs-install:: docs
|
|
|
|
$(MAKE) -C docs install DESTDIR=$(DESTDIR) PREFIX=$(PREFIX)
|
|
|
|
|
|
|
|
docs-uninstall::
|
|
|
|
$(MAKE) -C docs uninstall DESTDIR=$(DESTDIR) PREFIX=$(PREFIX)
|
|
|
|
|
2005-06-16 05:27:49 +00:00
|
|
|
docs::
|
|
|
|
$(MAKE) -C docs all
|
2004-02-15 20:46:45 +00:00
|
|
|
|
2005-05-09 22:47:39 +00:00
|
|
|
dump: last.bin
|
|
|
|
dd if=last.bin of=$(FLOPPY) bs=512
|
2005-01-25 23:25:38 +00:00
|
|
|
# eject makes hanging my USB floppy device
|
2005-05-09 22:47:39 +00:00
|
|
|
#eject $(FLOPPY)
|
2004-02-15 20:46:45 +00:00
|
|
|
|
2005-11-08 02:19:46 +00:00
|
|
|
install: libmacos-install libemile-install tools-install first-install \
|
2005-11-12 22:31:15 +00:00
|
|
|
docs-install libiso9660-install
|
2005-11-08 02:19:46 +00:00
|
|
|
|
|
|
|
uninstall: libmacos-uninstall libemile-uninstall tools-uninstall \
|
2005-11-12 22:31:15 +00:00
|
|
|
first-uninstall docs-uninstall libiso9660-uninstall
|
2005-11-08 02:19:46 +00:00
|
|
|
|
|
|
|
libemile-clean:
|
2004-12-10 00:29:57 +00:00
|
|
|
$(MAKE) -C libemile clean
|
2005-11-08 02:19:46 +00:00
|
|
|
|
|
|
|
libmacos-clean:
|
|
|
|
$(MAKE) -C libmacos clean
|
|
|
|
|
|
|
|
libunix-clean:
|
|
|
|
$(MAKE) -C libunix clean
|
|
|
|
|
2005-11-16 01:29:57 +00:00
|
|
|
libfloppy-clean:
|
|
|
|
$(MAKE) -C libfloppy clean
|
|
|
|
|
2005-11-12 22:31:15 +00:00
|
|
|
libiso9660-clean::
|
|
|
|
$(MAKE) -C libiso9660 clean TARGET=native
|
|
|
|
$(MAKE) -C libiso9660 clean TARGET=$(KARCH)-linux
|
|
|
|
|
2005-11-16 01:29:57 +00:00
|
|
|
libgzip-clean::
|
|
|
|
$(MAKE) -C libgzip clean TARGET=native
|
|
|
|
$(MAKE) -C libgzip clean TARGET=$(KARCH)-linux
|
|
|
|
|
2005-11-08 02:19:46 +00:00
|
|
|
tools-clean:
|
2004-05-21 15:06:35 +00:00
|
|
|
$(MAKE) -C tools clean
|
2005-11-08 02:19:46 +00:00
|
|
|
|
|
|
|
first-clean:
|
2004-02-15 20:46:45 +00:00
|
|
|
$(MAKE) -C first clean
|
2005-11-08 02:19:46 +00:00
|
|
|
|
|
|
|
second-clean:
|
2004-02-15 20:46:45 +00:00
|
|
|
$(MAKE) -C second clean
|
2005-11-08 02:19:46 +00:00
|
|
|
|
|
|
|
docs-clean:
|
2005-06-16 05:27:49 +00:00
|
|
|
$(MAKE) -C docs clean
|
2005-11-08 02:19:46 +00:00
|
|
|
|
|
|
|
clean:: libemile-clean libmacos-clean libunix-clean tools-clean first-clean \
|
2005-11-16 01:29:57 +00:00
|
|
|
second-clean docs-clean libiso9660-clean libgzip-clean libfloppy-clean
|
2005-05-09 22:47:39 +00:00
|
|
|
rm -f floppy.bin floppy.bin.X floppy_ramdisk.bin \
|
|
|
|
floppy_ramdisk.bin.X rescue.bin rescue.bin.X \
|
|
|
|
debian-installer.bin debian-installer.bin.X \
|
|
|
|
netboot.bin netboot.bin.X boot.bin boot.bin.X \
|
|
|
|
vmlinuz vmlinux.bin last.bin
|
2004-02-15 20:46:45 +00:00
|
|
|
|
2005-11-08 02:19:46 +00:00
|
|
|
DISTFILES = AUTHORS ChangeLog COPYING Makefile README README.floppy \
|
|
|
|
README.scsi
|
2004-02-15 20:46:45 +00:00
|
|
|
|
|
|
|
dist:
|
|
|
|
rm -fr $(PACKAGE)-$(VERSION)
|
|
|
|
mkdir $(PACKAGE)-$(VERSION)
|
2005-11-08 02:19:46 +00:00
|
|
|
$(MAKE) -C tools dist DISTDIR=$(shell pwd)/$(PACKAGE)-$(VERSION)
|
|
|
|
$(MAKE) -C libemile dist DISTDIR=$(shell pwd)/$(PACKAGE)-$(VERSION)
|
|
|
|
$(MAKE) -C second dist DISTDIR=$(shell pwd)/$(PACKAGE)-$(VERSION)
|
|
|
|
$(MAKE) -C first dist DISTDIR=$(shell pwd)/$(PACKAGE)-$(VERSION)
|
|
|
|
$(MAKE) -C docs dist DISTDIR=$(shell pwd)/$(PACKAGE)-$(VERSION)
|
|
|
|
$(MAKE) -C libmacos dist DISTDIR=$(shell pwd)/$(PACKAGE)-$(VERSION)
|
|
|
|
$(MAKE) -C libunix dist DISTDIR=$(shell pwd)/$(PACKAGE)-$(VERSION)
|
2004-02-15 20:46:45 +00:00
|
|
|
for file in $(DISTFILES); do \
|
|
|
|
dir=$$(dirname $$file); \
|
|
|
|
if [ "$$dir" != "" ] ; then \
|
|
|
|
mkdir -p $(PACKAGE)-$(VERSION)/$$dir; \
|
|
|
|
fi; \
|
|
|
|
cp -p $$file $(PACKAGE)-$(VERSION)/$$file; \
|
|
|
|
done
|
|
|
|
rm -f $(PACKAGE)-$(VERSION).tar $(PACKAGE)-$(VERSION).tar.bz2
|
|
|
|
tar cvf $(PACKAGE)-$(VERSION).tar $(PACKAGE)-$(VERSION)
|
|
|
|
bzip2 -9 $(PACKAGE)-$(VERSION).tar
|
|
|
|
rm -fr $(PACKAGE)-$(VERSION)
|