And tying everything together, we add a 'testiso' target to the makefile which builds an iso for testing the install. To use, run make DESTDIR=/tmp/anactest REPO=http://download.fedora.redhat.com/pub/fedora/linux/development/i386/os/ testiso and you'll get *your* current working directory together with the packages from REPO to create a netinst.iso in the current working directory (Note: you'll need to have sudo set up for your user) --- Makefile | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 2cb459e..85592fc 100644 --- a/Makefile +++ b/Makefile @@ -64,12 +64,19 @@ depend: for d in $(SUBDIRS); do make -C $$d depend; done clean: - rm -f *.o *.so *.pyc lang-names mini-wm ChangeLog + rm -f *.o *.so *.pyc lang-names mini-wm ChangeLog netinst.iso outiso for d in $(SUBDIRS); do make -C $$d clean; done subdirs: for d in $(SUBDIRS); do make -C $$d; [ $$? = 0 ] || exit 1; done +testiso: install + @if [ "$(REPO)" = "" ]; then echo "ERROR: Need a repo to pull packages from!" ; exit 1 ; fi + @pushd scripts ; sudo ./buildinstall --version $(VERSION) --product anaconda --release $(ANACONDA)-$(VERSION) --output $(shell pwd)/outiso --updates $(DESTDIR) $(REPO) ; popd ; cp outiso/images/netinst.iso ./netinst.iso ; sudo rm -rf outiso + @echo + @echo "Test iso is located at ./netinst.iso" + + # this rule is a hack install-python: cp -var $(PYFILES) $(DESTDIR)/$(PYTHONLIBDIR) -- 1.5.4.3 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list