- put RCD Id on bxversion.
- in bochs-docs, bochs-dlx replace /usr/local with the $(prefix) so that the scripts can work wherever they are installed
This commit is contained in:
parent
b33e0800e0
commit
e1968fb8e3
@ -190,7 +190,10 @@ $(BX_OBJS): $(BX_INCLUDES)
|
||||
|
||||
bxversion.h:
|
||||
$(RM) -f bxversion.h
|
||||
echo '// This file is generated by "make bxversion.h"' > bxversion.h
|
||||
echo '/////////////////////////////////////////////////////////////////////////' > bxversion.h
|
||||
echo '// $$Id: Makefile.in,v 1.54 2001-11-10 01:35:58 bdenney Exp $$' >> bxversion.h
|
||||
echo '/////////////////////////////////////////////////////////////////////////' >> bxversion.h
|
||||
echo '// This file is generated by "make bxversion.h"' >> bxversion.h
|
||||
echo "#define VER_STRING \"$(VER_STRING)\"" >> bxversion.h
|
||||
echo "#define REL_STRING \"$(REL_STRING)\"" >> bxversion.h
|
||||
|
||||
@ -295,7 +298,7 @@ install_bin::
|
||||
-mkdir -p $(DESTDIR)$(bindir)
|
||||
test -d $(DESTDIR)$(VERSIONDIR)
|
||||
test -w $(DESTDIR)$(VERSIONDIR)
|
||||
for i in bochs-docs; do cat $(srcdir)/build/linux/$$i | $(SED) -e 's/@VERSION@/$(VERSION)/g' > $(DESTDIR)$(bindir)/$$i; $(CHMOD) 755 $(DESTDIR)$(bindir)/$$i; done
|
||||
for i in bochs-docs; do cat $(srcdir)/build/linux/$$i | $(SED) -e 's/@VERSION@/$(VERSION)/g' -e 's,/usr/local,$(prefix),g' > $(DESTDIR)$(bindir)/$$i; $(CHMOD) 755 $(DESTDIR)$(bindir)/$$i; done
|
||||
for i in $(INSTALL_LIST_SED); do cat $(srcdir)/build/linux/$$i | $(SED) -e 's/@VERSION@/$(VERSION)/g' > $(DESTDIR)$(VERSIONDIR)/$$i; $(CHMOD) 644 $(DESTDIR)$(VERSIONDIR)/$$i; done
|
||||
for i in $(INSTALL_LIST); do if test -f $$i; then cp $$i $(DESTDIR)$(VERSIONDIR); else cp $(srcdir)/$$i $(DESTDIR)$(VERSIONDIR); fi; done
|
||||
$(LN_S) $(VERSIONDIR)/bochs $(DESTDIR)$(bindir)/bochs
|
||||
@ -325,18 +328,18 @@ install_dlx::
|
||||
$(GUNZIP) -c $(DLXLINUX_TAR) | (cd $(BOCHSDIR); tar -xvf -)
|
||||
test -d $(BOCHSDIR)/dlxlinux
|
||||
$(GZIP) $(BOCHSDIR)/dlxlinux/hd10meg.img
|
||||
(cd $(BOCHSDIR)/dlxlinux; $(MV) bochsrc.txt bochsrc.txt.orig; $(SED) -e "s/1\.1\.2/$(VERSION)/g"< bochsrc.txt.orig > bochsrc.txt; rm -f bochsrc.txt.orig)
|
||||
(cd $(BOCHSDIR)/dlxlinux; $(MV) bochsrc.txt bochsrc.txt.orig; $(SED) -e "s/1\.1\.2/$(VERSION)/g" -e 's,/usr/local,$(prefix),g' < bochsrc.txt.orig > bochsrc.txt; rm -f bochsrc.txt.orig)
|
||||
$(CHOWN) -R root.root $(BOCHSDIR)/dlxlinux
|
||||
$(CHMOD) 755 $(BOCHSDIR)/dlxlinux
|
||||
$(CHMOD) 644 $(BOCHSDIR)/dlxlinux/*
|
||||
for i in bochs-dlx; do cat $(srcdir)/build/linux/$$i | $(SED) -e 's/@VERSION@/$(VERSION)/g' > $(bindir)/$$i; $(CHMOD) 755 $(bindir)/$$i; done
|
||||
for i in bochs-dlx; do cat $(srcdir)/build/linux/$$i | $(SED) -e 's/@VERSION@/$(VERSION)/g' -e 's,/usr/local,$(prefix),g' > $(bindir)/$$i; $(CHMOD) 755 $(bindir)/$$i; done
|
||||
|
||||
uninstall::
|
||||
$(RM) -rf $(VERSIONDIR)
|
||||
$(RM) -rf $(BOCHSDIR)/dlxlinux
|
||||
$(RM) -rf $(BOCHSDIR)/latest
|
||||
-$(RMDIR) $(BOCHSDIR)
|
||||
for i in bochs bximage bochs-dlx $(BOCHS_SCRIPTS); do rm -f /usr/local/bin/$$i; done
|
||||
for i in bochs bximage bochs-dlx $(BOCHS_SCRIPTS); do rm -f $(DESTDIR)$(bindir)/$$i; done
|
||||
for i in $(MAN_PAGE_LIST); do $(RM) -f $(man1dir)/$$i.1; done
|
||||
|
||||
################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user