#
# Makefile - Template Makefile for Platon SDG documents
#
# Developed by Lubomir Host 'rajo' <rajo AT platon.sk>
# Copyright (c) 2004 Platon SDG
# Licensed under terms of GNU General Public License.
# All rights reserved.
#
# $Platon: Platon.SK/office/produkty/Metafox/Makefile,v 1.2 2005/01/06 17:45:54 rajo Exp $
#

# here specify name of your document
PACKAGE = @DIRNAME@
VERSION = $(shell date "+%y-%m-%d-%H-%M")
distdir = $(PACKAGE)-$(VERSION)
TOP_DIR = ../..

# define next variable, if you wish use autoprefix
PREFIX  = Metafox
# Uncomment next line if you wish automaticaly add directory name to the
# name of output file
#APPEND_DIRNAME = 1

# Nazov vystupneho PostScriptoveho suboru (alebo PDF suboro[v])
# sa pise do suborov ps__OUTPUT a pdf_OUTPUT 
ps__OUTPUT        = $(shell cat ps__OUTPUT 2>/dev/null)
pdf_OUTPUT        = $(shell cat pdf_OUTPUT 2>/dev/null) 

# Dalsie pridavne obrazky alebo vstupne subory, ktore sa nijako nevytvaraju

IMAGES =


# dalsie subory, ktore su potrebne pre vysadzanie
DEPEND = Makefile 00-macros.tex

DISTFILES = Makefile \
			00-macros.tex \
			prezentacia-04-07-19.tex \
			cennik-04-07-19.tex \
			ps__OUTPUT \
			pdf_OUTPUT \
			$(DEPEND)
			#$(OUTPUT)

#LATEX          = cslatex
LATEX          = latex
LATEX_BATCH    = $(LATEX) -interaction=batchmode
PDFLATEX       = pdflatex
PDFLATEX_BATCH = $(PDFLATEX) -interaction=batchmode
DVIPS          = dvips
PS2PDF         = ps2pdf
GV             = gv
GNUPLOT        = gnuplot
CC             = gcc
TAR            = tar
GZIP_ENV       = --best


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

$(PREFIX)%.pdf:: $(PREFIX)%.ps
	$(PS2PDF) $<

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

ps2pdf__INPUT = $(patsubst %.ps,%.pdf,$(ps__OUTPUT))
ps2pdf_OUTPUT = $(patsubst %,$(PREFIX)-%,$(ps2pdf__INPUT))

#all: ps2pdf
all:

ps2pdf: $(ps2pdf_OUTPUT)

clean: clean-ps2pdf

clean-ps2pdf:
	rm -f $(ps2pdf_OUTPUT)

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

