#### -*- mode:makefile-gmake;coding:utf-8 -*-
####****************************************************************************
####FILE:               Makefile
####LANGUAGE:           makefile-gmake
####SYSTEM:             POSIX
####USER-INTERFACE:     NONE
####DESCRIPTION
####
####    Makefile for www.informatimago.com
####
####AUTHORS
####    <PJB> Pascal J. Bourguignon <pjb@informatimago.com>
####MODIFICATIONS
####    2013-01-12 <PJB> Added this header.
####BUGS
####LEGAL
####    AGPL3
####
####    Copyright Pascal J. Bourguignon 2013 - 2013
####
####    This program is free software: you can redistribute it and/or modify
####    it under the terms of the GNU Affero General Public License as published by
####    the Free Software Foundation, either version 3 of the License, or
####    (at your option) any later version.
####
####    This program is distributed in the hope that it will be useful,
####    but WITHOUT ANY WARRANTY; without even the implied warranty of
####    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
####    GNU Affero General Public License for more details.
####
####    You should have received a copy of the GNU Affero General Public License
####    along with this program.  If not, see <http://www.gnu.org/licenses/>.
####****************************************************************************

all:help

help::
	@echo 'make help            # This message.'


help::
	@echo 'make regen           # Reprocess nodes in pjb.'
	@echo 'make upload          # sitecopy to the mirrors.'
regen: html documentation update-nodes
update-nodes:
	../bin/html-update nodes.el
	-find . -name \*~ -exec rm -f {} \;
	../bin/publish     .
	$(MAKE) $(MFLAGS) -C blog feeds
upload:
	sitecopy -a -k -o -u
.PHONY::regen update-nodes upload



tidy-m:
	@find . -name \*.html -exec tidy -m {} \;
tidy-e:
	@find . -name \*.html -exec tidy -e {} \;


help::
	@echo 'make clean           # remove backup files.'
clean:
	@find . -name \*~ -exec rm -f {} \;



help::
	@echo 'make html            # generate html pages.'
	@echo 'make documentation   # generate documentation.'
html::
	$(MAKE) $(MFLAGS) -C develop/lisp/com/informatimago/ html
doc::documentation
documentation::
	-rm -rf develop/lisp/doc
	-$(MAKE) $(MFLAGS) -C develop/lisp/com/informatimago documentation
	-$(MAKE) $(MFLAGS) -C develop/lisp/com/informatimago lispdoc
.PHONY::doc documentation html



help::
	@echo 'make git-clone       # get informatimago lisp code.'
	@echo 'make git-pull        # update informatimago lisp code.'
	@echo 'make git-show        # shows git remotes.'
git-clone:
	-mkdir -p develop/lisp/com develop/emacs
	-rm -rf develop/emacs/emacs develop/lisp/com/informatimago develop/lisp/l99
	git clone git@gitlab.com:com-informatimago/emacs.git                develop/emacs/emacs
	git clone git@gitlab.com:com-informatimago/com-informatimago.git    develop/lisp/com/informatimago
	git clone git@gitlab.com:common-lisp-exercises/l99.git              develop/lisp/l99
git-pull:
	cd develop/lisp/com/informatimago ; git pull
	cd develop/lisp/l99               ; git pull
	cd develop/emacs/emacs            ; git pull
git-show:
	cd develop/lisp/com/informatimago ; git-show-remotes
	cd develop/lisp/l99               ; git-show-remotes
	cd develop/emacs/emacs            ; git-show-remotes
.PHONY::git-clone git-pull git-show

### THE END ###
ViewGit