Added generation of README.pdf and compilation of the client with ccl.

Pascal J. Bourguignon [2015-08-07 06:40]
Added generation of README.pdf and compilation of the client with ccl.
Filename
ddns/Makefile
diff --git a/ddns/Makefile b/ddns/Makefile
index 26f4cc7..c41b693 100644
--- a/ddns/Makefile
+++ b/ddns/Makefile
@@ -32,7 +32,8 @@
 ####    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ####*****************************************************************************

-INSTALLDIR=/home/ddns/bin/
+SERVER_INSTALL_DIR=/home/ddns/bin/
+CLIENT_INSTALL_DIR=/usr/local/sbin/


 CCL            = ccl
@@ -41,7 +42,8 @@ CCL_LOAD       =  --load

 #CLISP          = /usr/local/bin/clisp
 #CLISP          = /data/languages/clisp/bin/clisp
-CLISP          = /usr/bin/clisp
+#CLISP          = /usr/bin/clisp
+CLISP          = clisp
 CLISP_LOAD     =
 CLISP_EVAL     = --quiet -repl -x

@@ -50,27 +52,38 @@ LOAD           = $(CLISP_LOAD)
 EVAL           = $(CLISP_EVAL)


-all: compile
+all: server client doc
+server:ddns-server
+client:ddns-client

+ddns-server:server.lisp generate-server.lisp
+	$(CLISP) --quiet -ansi -Kfull -x '(load "generate-server.lisp")'
+# 	$(LISP) $(LOAD) generate-server.lisp

-compile:server client
-install:compile
-	-mkdir -p $(INSTALLDIR)
-	[ -d $(INSTALLDIR) ] && install -m 755 ddns-server $(INSTALLDIR)
-	[ -d $(INSTALLDIR) ] && install -m 755 ddns-client $(INSTALLDIR)
+ddns-client-clisp:client.lisp generate-client.lisp
+	$(CLISP) --quiet -ansi -Kfull -x '(load "generate-client.lisp")'

+ddns-client:client.lisp generate-client.lisp
+	$(CCL) $(CCL_LOAD) generate-client.lisp

-# server:
-# 	$(LISP) $(LOAD) generate-server.lisp
-# client:
-# 	$(LISP) $(LOAD) generate-client.lisp
+install-server:
+	-mkdir -p $(SERVER_INSTALL_DIR)
+	[ -d $(SERVER_INSTALL_DIR) ] && install -m 755 ddns-server $(SERVER_INSTALL_DIR)
+
+install-client:
+	-mkdir -p $(CLIENT_INSTALL_DIR)
+	[ -d $(CLIENT_INSTALL_DIR) ] && install -m 755 ddns-client $(CLIENT_INSTALL_DIR)

-server:
-	$(CLISP) --quiet -ansi -x '(load "generate-server.lisp")'
-client:
-	$(CLISP) --quiet -ansi -x '(load "generate-client.lisp")'
+clean::
+	-rm -f ddns-server ddns-client

 variables:
 	which clisp

+doc: README.pdf
+
+README.pdf: README
+	rst2pdf README > README.pdf
+
+
 #### THE END ####
ViewGit