# -*- makefile -*-
#
# Copyright (C) 2011 Alexis Bienvenue <paamc@passoire.fr>
#
# This file is part of Auto-Multiple-Choice
#
# Auto-Multiple-Choice 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, either version 2 of
# the License, or (at your option) any later version.
#
# Auto-Multiple-Choice 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 Auto-Multiple-Choice.  If not, see
# <http://www.gnu.org/licenses/>.

# SYSTEM FOR INSTALLATION

SYSTEM_TYPE ?= portable

LATEX_FREE=0

INSTREP ?= /tmp/AMC

# INSTALLATION : where to install parts of the package ?

# directory for executable
BINDIR=$(INSTREP)/bin
# directory for perl modules
PERLDIR=$(INSTREP)/perl
# directory for some AMC executables, not to be used by end-user
MODSDIR=$(INSTREP)/lib
# directory for LaTeX style file
TEXDIR=$(INSTREP)/latex
# directory for LaTeX doc
TEXDOCDIR=$(INSTREP)/doc
# directory for man (1) files
MAN1DIR=$(INSTREP)/doc/man/man1
# directory for desktop file 
DESKTOPDIR=$(INSTREP)/applications
# directory for icons (svg)
ICONSDIR=$(INSTREP)/icons
# directory for icons (xpm)
PIXDIR=$(INSTREP)/icons
# directory for locales (MO files will be put in
#                        $(LOCALEDIR)/fr/LC_MESSAGES for example)
LOCALEDIR=$(INSTREP)/locale
# directory for AMC packaged models
MODELSDIR=$(INSTREP)/models
# directory for documentation (will use html/auto-multiple-choice.* subdirs for HTML docs)
DOCDIR=$(INSTREP)/doc/auto-multiple-choice

# BUILD : where to find some files used for building AMC ?
# URLs can be used if XML catalogs are present.

#DOCBOOK_MAN_XSL=/usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl
DOCBOOK_MAN_XSL=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
#DOCBOOK_XHTML_XSL=/usr/share/xml/docbook/stylesheet/nwalsh/xhtml/chunk.xsl
DOCBOOK_XHTML_XSL=http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl
#DOCBOOK_DTD=/usr/share/xml/docbook/schema/dtd/4.5/docbookx.dtd
DOCBOOK_DTD=http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd

# No syntax highlighting gor gedit
SHARED_MIMEINFO_DIR=
LANG_GTKSOURCEVIEW_DIR=

# BUILD : options to compile with netpbm / opencv libraries

#CFLAGS=-O2 -m32 -march=i386
#CXXFLAGS=-O2 -m32 -march=i386

GCC_NETPBM=-lnetpbm

GCC_OPENCV=-I /usr/include/opencv -lcv -lhighgui -lcxcore

# INFO IN DESKTOP FILE

DESKTOP_CAT=Education;

# INSTALL USER AND GROUP

INSTALL_USER=
INSTALL_GROUP=

