From: uz Date: Wed, 5 Aug 2009 14:31:33 +0000 (+0000) Subject: Remove the top-level Makefile's attempt to install the no-longer-external X-Git-Tag: V2.13.0rc1~258 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f5a2022f329071fd1e141fd7847b2861da59e1a8;p=cc65 Remove the top-level Makefile's attempt to install the no-longer-external start-up files. Let the makefile work with command-shells that don't recognize the "test" command's "-e" operator (the Minix OS has that shell). Patch by maintainer Greg King. git-svn-id: svn://svn.cc65.org/cc65/trunk@3997 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/make/gcc.mak b/make/gcc.mak index 1b39140c0..2c41415d7 100644 --- a/make/gcc.mak +++ b/make/gcc.mak @@ -1,8 +1,8 @@ #! /usr/bin/make -f -# -*- makefile -*- +# -*- make -*- # # Main gcc Makefile. -# This makefile is maintained by Greg King . +# This makefile is maintained by Greg King . # Goals that are supported by the cc65 package .PHONY: all bins libs docs samples tests clean zap @@ -63,7 +63,7 @@ libs: # This rule won't try to generate HTML files # if a host system doesn't have LinuxDoc Tools. docs: - @if sgmlcheck doc/index >/dev/null 2>&1; \ + @if linuxdoc -B check doc/index >/dev/null 2>&1; \ then $(MAKE) -C doc html; \ else echo '"LinuxDoc Tools" is not installed; skipping HTML documentation.'; \ fi @@ -72,10 +72,10 @@ docs: # So, these rules ignore errors. samples: - -@$(MAKE) -k -C samples $(SYS:%=SYS=%) + -@$(MAKE) -k -C samples prefix=$(prefix) $(SYS:%=SYS=%) tests: - -@$(MAKE) -k -C testcode/lib $(SYS:%=SYS=%) + -@$(MAKE) -k -C testcode/lib prefix=$(prefix) $(SYS:%=SYS=%) clean zap: $(MAKE) -C src -f make/gcc.mak $@ @@ -148,7 +148,7 @@ install-libs: do $(INSTALL_DATA) $$f $(CC65INC)/$$d || exit 1; \ done || exit 1; \ done - for f in libsrc/*.lib libsrc/*.o; \ + for f in libsrc/*.lib; \ do $(INSTALL_DATA) $$f $(CC65LIB) || exit 1; \ done for d in emd joy mou ser tgi; \ @@ -164,7 +164,7 @@ install-docs: for f in readme.1st compile.txt CREDITS BUGS internal.txt newvers.txt; \ do $(INSTALL_DATA) doc/$$f $(CC65DOC) || exit 1; \ done - if [ -e doc/index.htm* ]; \ + if [ -f doc/index.htm* ]; \ then for f in doc/*.htm*; \ do $(INSTALL_DATA) $$f $(CC65DOC) || exit 1; \ done; \