Skip to content
Snippets Groups Projects
Commit 8065c043 authored by Mariano Montone's avatar Mariano Montone
Browse files

Build adjustments

parent b984e2d2
No related branches found
No related tags found
No related merge requests found
......@@ -6,4 +6,5 @@ auto-save-list
.\#*
# Output files
output/
\ No newline at end of file
output/
system-index.txt
all: generate
all: build
serve:
#cd output; python -m SimpleHTTPServer
cd output; python ../server.py
static:
mkdir -p output/static
cp -rf content/static/* output/static
generate: static
build: static
sbcl --load build.lisp --non-interactive
clean:
......
(push (uiop:getcwd) quicklisp:*local-project-directories*)
(ql:quickload :cl-site)
(funcall (symbol-function (intern "MAKE-SITE" :cl-site)))
(funcall (symbol-function (intern "MAKE-SITE" :cl-site)) (merge-pathnames "output/" (uiop:getcwd)))
;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
(in-package :cl-site)
(defun make-site ()
(progn
(defun make-site (&optional output-dir)
(let ((*output-dir* (or output-dir *output-dir*)))
(format t "Generating site in ~A.~%" *output-dir*)
(process-static)
(process-styles)
(process-pages)))
\ No newline at end of file
(process-pages)))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment