#
# PlanFacile (Easy plan, in french) is a small tool to help people to
# write a document on a particular subject.
# Copyright (C) 2005  Julien BRUGUIER
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
#

.PHONY: all html pdf clean

#PLFFLAGS=-ae
PLFFLAGS=-Aucd -O 'sans gnrique'

all: html

html: standard.html

pdf: standard.pdf

%.html: %.plf
	planfacile $(PLFFLAGS) -O HTML -o $@ $^

%.tex: %.plf
	planfacile $(PLFFLAGS) -O LaTeX -O rapport -O 11pt -o $@ $^

%.dvi: %.tex
	latex $^
	latex $^

%.ps: %.dvi
	dvips $^ -o $@

%.pdf: %.ps
	ps2pdf $^ $@

clean:
	@rm -vf *.{tex,dvi,ps,aux,log,toc,pdf,html}
