2 PROJECT_NAME=+PROJECT_NAME+
16 $(LISP) $(CORE) $(EVAL_OPT) '(progn (pushnew :BUILD *features*) (load "load.lisp") (quit))'
18 @echo "Type 'make install' to install $(PROJECT_NAME) in '$(DESTDIR)/bin/$(PROJECT_NAME)'"
22 @echo "1) Installing: Creating directories"
23 mkdir -p $(DESTDIR)/lib/$(PROJECT_NAME)/src
24 mkdir -p $(DESTDIR)/lib/$(PROJECT_NAME)/contrib
25 mkdir -p $(DESTDIR)/bin
26 @echo "2) Installing: Copying files"
27 cp -R `pwd`/load.lisp $(DESTDIR)/lib/$(PROJECT_NAME)/
28 cp -R `pwd`/clfswm.asd $(DESTDIR)/lib/$(PROJECT_NAME)/
29 cp -R `pwd`/src/*.lisp $(DESTDIR)/lib/$(PROJECT_NAME)/src
30 cp -R `pwd`/contrib/* $(DESTDIR)/lib/$(PROJECT_NAME)/contrib
32 cp -R `pwd`/src/*.$(EXT) $(DESTDIR)/lib/$(PROJECT_NAME)/src
33 @echo "3) Installing: Creating starter script"
34 echo "#!/bin/sh" > $(DESTDIR)/bin/$(PROJECT_NAME)
35 echo "$(LISP) $(CORE) $(LOAD_OPT) $(DESTDIR)/lib/$(PROJECT_NAME)/load.lisp" >> $(DESTDIR)/bin/$(PROJECT_NAME)
36 chmod a+x $(DESTDIR)/bin/$(PROJECT_NAME)
38 @echo "$(PROJECT_NAME) has been installed in '$(DESTDIR)/bin/$(PROJECT_NAME)'"
43 rm -rf $(DESTDIR)/bin/$(PROJECT_NAME)
44 rm -rf $(DESTDIR)/lib/$(PROJECT_NAME)/
47 find . \( -name "*~" -o -name "*.fas" -o -name "*.fasl" -o -name "*.lib" -o -name "*.lx32fsl" -o -name "*.x86f" \) -print0 | xargs -0 rm -f
50 cd .. && tar czvf $(PROJECT_NAME)-`date +%y%m%d`.tar.gz $(PROJECT_NAME)