# You can override this from command line
# Should be path to the distribution root
# (root of CD tree)
DISTROOT=../../..

all: update-root do-update do-make

do-update: update-boots update-modules

do-make: make-hdimage make-initrd

update-root:
	( cd ../anaconda; ./upd-instroot $(DISTROOT) )

update-boots:
	./updboots

update-modules:
	./updmodules $(DISTROOT)/RedHat/RPMS `rpm -qp --qf %{VERSION}-%{RELEASE} $(DISTROOT)/RedHat/RPMS/kernel-BOOT-*.alpha.rpm`

make-initrd:
	./mkinitrd -f

make-hdimage:
	./mkhdimage

clean:
	rm -rf hdimage *.img
