#
# Makefile - Main Makefile for documents of Platon SDG
#
# Developed by Lubomir Host 'rajo' <rajo AT platon.sk>
# Copyright (c) 2003-2005 Platon SDG, http://platon.sk/
# Licensed under terms of GNU General Public License.
# All rights reserved.
#
# $Platon: Platon.SK/office/Makefile,v 1.21 2005/05/30 22:29:19 rajo Exp $
#

PACKAGE = Platon.SK-office
VERSION = 0.2-$(shell date "+%Y-%m-%d")

TOP_DIR			= .
srcdir			= .
distdir			= $(PACKAGE)-$(VERSION)
packname_core	= $(PACKAGE)-core-$(VERSION)
packname_doc	= $(PACKAGE)-documents-$(VERSION)

# Extension of archives
ZIP_EXT         = .zip
TGZ_EXT         = .tar.gz


# DISTFILES_CORE {{{
DISTFILES_CORE = \
				 SUBDIRS \
				 Makefile \
				 _doc/ \
				 _doc/README \
				 _doc/README.sk \
				 _templates/ \
				 _templates/Makefile \
				 _templates/Rules.make \
				 _templates/platon.sty \
				 _templates/platon-core.sty \
				 _templates/platon-logo.eps \
				 _templates/platon-logo.fig \
				 _templates/platon-logo.png \
				 _templates/template.tex \
				 _scripts/ \
				 _scripts/build-struct \
				 _scripts/colorgcc \
				 _scripts/create-document \
				 test/ \
				 test/Makefile \
				 test/pdf_OUTPUT \
				 test/ps__OUTPUT \
				 test/htm_OUTPUT \
				 test/rtf_OUTPUT \
				 test/01-test.tex \
				 test/test-invoice.tex

# }}}
# DISTFILES_DOCUMENTS_HTML {{{
DISTFILES_DOCUMENTS_HTML = \
						   prednasky/Lugcon/10-Vim-html/index.html \
						   prednasky/Lugcon/10-Vim-html/img0.html \
						   prednasky/Lugcon/10-Vim-html/img1.html \
						   prednasky/Lugcon/10-Vim-html/img2.html \
						   prednasky/Lugcon/10-Vim-html/img3.html \
						   prednasky/Lugcon/10-Vim-html/img4.html \
						   prednasky/Lugcon/10-Vim-html/img5.html \
						   prednasky/Lugcon/10-Vim-html/img6.html \
						   prednasky/Lugcon/10-Vim-html/img7.html \
						   prednasky/Lugcon/10-Vim-html/img8.html \
						   prednasky/Lugcon/10-Vim-html/img9.html \
						   prednasky/Lugcon/10-Vim-html/img10.html \
						   prednasky/Lugcon/10-Vim-html/img11.html \
						   prednasky/Lugcon/10-Vim-html/img12.html \
						   prednasky/Lugcon/10-Vim-html/img13.html \
						   prednasky/Lugcon/10-Vim-html/img14.html \
						   prednasky/Lugcon/10-Vim-html/img15.html \
						   prednasky/Lugcon/10-Vim-html/img16.html \
						   prednasky/Lugcon/10-Vim-html/img17.html \
						   prednasky/Lugcon/10-Vim-html/img18.html \
						   prednasky/Lugcon/10-Vim-html/img19.html \
						   prednasky/Lugcon/10-Vim-html/img20.html \
						   prednasky/Lugcon/10-Vim-html/img21.html \
						   prednasky/Lugcon/10-Vim-html/img22.html \
						   prednasky/Lugcon/10-Vim-html/img23.html \
						   prednasky/Lugcon/10-Vim-html/img24.html \
						   prednasky/Lugcon/10-Vim-html/img25.html \
						   prednasky/Lugcon/10-Vim-html/img26.html \
						   prednasky/Lugcon/10-Vim-html/img27.html \
						   prednasky/Lugcon/10-Vim-html/img28.html \
						   prednasky/Lugcon/10-Vim-html/img29.html \

# }}}
# DISTFILES_DOCUMENTS {{{
DISTFILES_DOCUMENTS = \
					  open-projekt/ \
					  open-projekt/2003-Platon.SK-prihlaska.tex \
					  open-projekt/2003-phpMyEdit-prihlaska.tex \
					  open-projekt/Makefile \
					  open-projekt/pdf_OUTPUT \
					  open-projekt/ps__OUTPUT \
					  open-projekt/htm_OUTPUT \
					  prednasky/ \
					  prednasky/Makefile \
					  prednasky/SUBDIRS \
					  prednasky/Lugcon/ \
					  prednasky/Lugcon/10-Vim-content.tex \
					  prednasky/Lugcon/10-Vim-preview.tex \
					  prednasky/Lugcon/10-Vim-prihlaska.tex \
					  prednasky/Lugcon/10-Vim-slides.tex \
					  prednasky/Lugcon/Makefile \
					  prednasky/Lugcon/pdf_OUTPUT \
					  prednasky/Lugcon/ps__OUTPUT \
					  prednasky/Lugcon/uvodzovky.sty \
					  prednasky/Lugcon/10-Vim-html/ \
					  $(DISTFILES_DOCUMENTS_HTML) \
					  prednasky/Lugcon/10-Vim-html/first0.gif \
					  prednasky/Lugcon/10-Vim-html/first1.gif \
					  prednasky/Lugcon/10-Vim-html/index.gif \
					  prednasky/Lugcon/10-Vim-html/last0.gif \
					  prednasky/Lugcon/10-Vim-html/last1.gif \
					  prednasky/Lugcon/10-Vim-html/next0.gif \
					  prednasky/Lugcon/10-Vim-html/next1.gif \
					  prednasky/Lugcon/10-Vim-html/prev0.gif \
					  prednasky/Lugcon/10-Vim-html/prev1.gif \
					  prednasky/Lugcon/10-Vim-html/0-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/1-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/2-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/3-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/4-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/5-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/6-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/7-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/8-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/9-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/10-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/11-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/12-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/13-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/14-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/15-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/16-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/17-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/18-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/19-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/20-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/21-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/22-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/23-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/24-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/25-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/26-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/27-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/28-Platon-Lugcon-10-Vim-preview.jpg \
					  prednasky/Lugcon/10-Vim-html/29-Platon-Lugcon-10-Vim-preview.jpg \
					  products/ \
					  products/Makefile \
					  products/SUBDIRS \
					  products/Metafox \
					  products/Metafox/00-macros.tex \
					  products/Metafox/Makefile \
					  products/Metafox/pdf_OUTPUT \
					  products/Metafox/presentation-04-12-20.tex \
					  products/Metafox/pricelist-04-12-20.tex \
					  products/Metafox/ps__OUTPUT \
					  products/phpMyEdit \
					  products/phpMyEdit/00-macros.tex \
					  products/phpMyEdit/Makefile \
					  products/phpMyEdit/export-05-03-28.tex \
					  products/phpMyEdit/pdf_OUTPUT \
					  products/phpMyEdit/ps__OUTPUT \
					  produkty/ \
					  produkty/Makefile \
					  produkty/SUBDIRS \
					  produkty/Metafox \
					  produkty/Metafox/00-macros.tex \
					  produkty/Metafox/Makefile \
					  produkty/Metafox/cennik-04-07-19.tex \
					  produkty/Metafox/pdf_OUTPUT \
					  produkty/Metafox/prezentacia-04-07-19.tex \
					  produkty/Metafox/ps__OUTPUT \
					  server-specification/ \
					  server-specification/00-macros.tex \
					  server-specification/Makefile \
					  server-specification/pdf_OUTPUT \
					  server-specification/ps__OUTPUT \
					  server-specification/server-specification.tex \
					  server-specification/server-terms-of-use.tex

 # }}}

########################################
########################################
## END of user setup
########################################
########################################

# include rules from Rules.make:
include $(TOP_DIR)/_templates/Rules.make

# 'make dist': do nothing for these distfiles
$(DISTFILES_DOCUMENTS_HTML)::  ;

dist: dist-core dist-documents

dist-core: distdir-core
	GZIP=$(GZIP_ENV) $(TAR) chozf $(packname_core)$(TGZ_EXT) $(distdir)
#	ZIP=$(ZIP_ENV) $(ZIP) $(packname_core)$(ZIP_EXT) $(distdir)
	-rm -rf $(distdir)

dist-documents: distdir-documents
	GZIP=$(GZIP_ENV) $(TAR) chozf $(packname_doc)$(TGZ_EXT) $(distdir)
#	ZIP=$(ZIP_ENV) $(ZIP) $(packname_doc)$(ZIP_EXT) $(distdir)
	-rm -rf $(distdir)

distdir-core:
	@make distdir DISTFILES="$(DISTFILES_CORE)";

distdir-documents:
	@make distdir DISTFILES="$(DISTFILES_DOCUMENTS)";

clean: clean-dist

clean-dist:
	-rm -f  $(packname_core)$(TGZ_EXT) $(packname_doc)$(TGZ_EXT)

# vim: ts=4 isk+=- ft=make
# vim600: fdm=marker fdc=3

