all:help
help:
	@echo 'make update        # generate access-rights upload.'
	@echo 'make generate      # make the new html files.'
	@echo 'make access-rights # set the access rights.'
	@echo 'make upload        # use sitecopy to upload the files.'

update:generate access-rights upload

generate:
	clisp -norc -q -ansi -on-error debug \
	-x '(prog1 (values) (setf *load-verbose* nil) (load "site.lisp"))' \
	-x '(prog1 (values) (com.ogamita.site:generate-site))'
	for f in about.html.?? ; do cp "$$f" "$${f/about/index}" ; done
	cp sorcerer-favicon.ico favicon.ico

access-rights:
	publish .
	chmod 755 quote.cgi
	chmod 755 bin/*/*

upload:
	sitecopy -oku com.ogamita.www
reset:
	sitecopy -i com.ogamita.www

clean:
	-rm -rf  *~

#(with-open-file (*STANDARD-OUTPUT* "index.html" :direction :output :if-exists :supersede :if-does-not-exist :create)
#### Makefile                         --                     --          ####
ViewGit