From: Philippe Brochard Date: Fri, 30 Nov 2012 23:37:54 +0000 (+0100) Subject: Don not use GNU specific command in Makefile X-Git-Tag: R-1212~2 X-Git-Url: https://repo.or.cz/w/clfswm.git/commitdiff_plain/cc4e002203efa86c4bc39852a7bbd063494bedf2 Don not use GNU specific command in Makefile --- diff --git a/Makefile b/Makefile index 58e778a..9e37bd4 100644 --- a/Makefile +++ b/Makefile @@ -1,26 +1,17 @@ DESTDIR=/usr/local/ -CLISP=$(shell which clisp) -SBCL=$(shell which sbcl) -CMUCL=$(shell which cmucl || which lisp) -CCL=$(shell which ccl) -ECL=$(shell which ecl) LOAD=load.lisp -SRC=$(wildcard *.lisp src/*.lisp) - all: clfswm -clfswm: $(SRC) +clfswm: @echo "Please, tweak the file load.lisp to fit your needs." - @if test -f "$(CLISP)"; then echo "Building with CLISP"; $(CLISP) -E iso-8859-1 $(LOAD); \ - elif test -f "$(SBCL)"; then echo "Building with SBCL"; $(SBCL) --load $(LOAD); \ - elif test -f "$(CMUCL)"; then echo "Building with CMUCL"; $(CMUCL) -load $(LOAD); \ - elif test -f "$(CCL)"; then echo "Building with CCL"; $(CCL) --load $(LOAD); \ - elif test -f "$(ECL)"; then echo "Building with ECL"; $(ECL) -load $(LOAD); \ - else echo "No Lisp found. Please, install one of CLISP, SBCL, CMUCL, CCL or ECL"; \ - fi - + @clisp -E iso-8859-1 $(LOAD) || \ + sbcl --load $(LOAD) || \ + cmucl -load $(LOAD) || lisp -load $(LOAD) || \ + ccl --load $(LOAD) || \ + ecl -load $(LOAD) || \ + echo "No Lisp found. Please, install one of CLISP, SBCL, CMUCL, CCL or ECL" install: clfswm