- add make target "download_dlx" which runs wget to download the

DLXlinux tar file, unless it is already there.  Before, you had to
  download the 1meg+ tar file every single time you build the RPM, which
  was annoying.
This commit is contained in:
Bryce Denney 2001-10-03 12:55:00 +00:00
parent 49aad8c1b1
commit 40ac2e6f89
1 changed files with 17 additions and 2 deletions

View File

@ -272,9 +272,15 @@ install_man::
-mkdir -p $(DESTDIR)$(man1dir)
for i in $(MAN_PAGE_LIST); do cat $(srcdir)/doc/man/$$i.1 | $(SED) -e 's/@VERSION@/$(VERSION)/g' > $(DESTDIR)$(man1dir)/$$i.1; chmod 644 $(DESTDIR)$(man1dir)/$$i.1; done
install_dlx::
download_dlx: $(DLXLINUX_TAR)
$(DLXLINUX_TAR):
$(RM) -f $(DLXLINUX_TAR)
$(WGET) $(DLXLINUX_TAR_URL)
test -f $(DLXLINUX_TAR)
install_dlx::
make download_dlx
$(RM) -rf $(BOCHSDIR)/dlxlinux
$(GUNZIP) -c $(DLXLINUX_TAR) | (cd $(BOCHSDIR); tar -xvf -)
$(RM) -f $(DLXLINUX_TAR)
@ -294,7 +300,16 @@ uninstall::
for i in bochs bximage bochs-dlx $(BOCHS_SCRIPTS); do rm -f /usr/local/bin/$$i; done
for i in $(MAN_PAGE_LIST); do $(RM) -f $(man1dir)/$$i.1; done
rpm:: dist-clean
################################################################
# Building an RPM on Linux
#
# This must be done as root on a linux box.
# The command is:
# sh .conf.linux; make rpm
# The binary rpm will appear in /usr/src/redhat/RPMS/i386/bochs-nnnnn.i386.rpm
# The source rpm will be in /usr/src/redhat/SRPMS/bochs-nnnnn.src.rpm
################################################################
rpm:: dist-clean download_dlx
test -w $(SOURCES)
test -w $(SPECS)
rm -f /usr/src/redhat/SPECS/bochs.spec