Commit 8be64c50 authored by pj2m's avatar pj2m

dep2pict transition

git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/semagramme/dep2pict/trunk@291 7838e531-6607-4d57-9587-6c381814729c
parents
all: opt
include config/Makefile
byte :
@make -C src byte
opt :
ifeq (@BUILD_GUI@,yes)
@make -C src opt_gtk
else
@make -C src opt
endif
conf : config/configure.in
cd config && aclocal
autoconf -o configure config/configure.in
LAUNCHER=/usr/share/applications/dep2pict.desktop
REP=/usr/share/desktop-directories/calligramme.directory
DESKTOP=[Desktop Entry]\nName=Dep2pict\nName[fr]=Dep2pict\nComment=Draw dependencies\nComment[fr]=Graphes de dépendences\nExec=dep2pict\nIcon=$(DATA_DIR)dep2pict.png\nTerminal=false\nType=Application\nCategories=Calligramme;
FOLDER=[Desktop Entry]\nEncoding=UTF-8\nName=Calligramme\nComment=Calligramme App\nIcon=$(DATA_DIR)/calligramme.png\nType=Directory
install : opt
cp bin/dep2pict.opt $(INSTALL_DIR)/dep2pict
ifeq (@BUILD_GUI@,yes)
cp src/dep2pict.glade $(DATA_DIR)
cp img/* $(DATA_DIR)
ifeq (@SYSTEM@,Linux)
touch $(REP)
echo "$(FOLDER)" > $(REP)
if test -e $(LAUNCHER); then : rm -rf $(LAUNCHER) ; fi
touch $(LAUNCHER)
echo "$(DESKTOP)" > $(LAUNCHER)
xdg-desktop-menu install --novendor $(REP) $(LAUNCHER)
xdg-desktop-menu forceupdate --mode user
xdg-desktop-menu forceupdate --mode system
endif
endif
clean :
@make cleanup
@make -C config cleanup
@make -C src cleanup
purge_makefile :
@make purge
@make -C src purge
@make -C config purge
destroot:
mkdir -p $(DESTDIR)$(INSTALL_DIR)
mkdir -p $(DESTDIR)$(DATA_DIR)
cp bin/dep2pict.opt $(DESTDIR)$(INSTALL_DIR)/dep2pict
ifeq (@BUILD_GUI@,yes)
cp src/dep2pict.glade $(DESTDIR)$(DATA_DIR)
cp img/* $(DESTDIR)$(DATA_DIR)
endif
targz: clean conf
rm -rf dep2pict-$(VERSION)
mkdir -p dep2pict-$(VERSION)
cp -r src/ dep2pict-$(VERSION)/
cp -r config/ dep2pict-$(VERSION)/
cp -r img/ dep2pict-$(VERSION)/
cp configure dep2pict-$(VERSION)/
cp Makefile.in dep2pict-$(VERSION)/
tar -czvf packaging/dep2pict-$(VERSION).tar.gz dep2pict-$(VERSION)
rm -rf dep2pict-$(VERSION)
portfile: targz
cd packaging && sh create_portfile.sh $(VERSION)
pack_deb: targz
sh packaging/make_deb.sh $(VERSION) $(INSTALL_DIR) $(DATA_DIR) $(DOC_DIR)
VERSION = 2.5.2
INSTALL_DIR = @prefix@@bindir@
DATA_DIR = @prefix@@datarootdir@/dep2pict/
DOC_DIR = @docdir@dep2pict/
BYTE_FLAGS = -g -dtypes
OPT_FLAGS =
OCAMLLIB = @OCAMLLIB@
OCAMLYACC = @OCAMLYACC@
OCAMLLEX = @OCAMLLEX@
OCAMLFIND = @OCAMLFIND@
RSVG = @RSVG@
RSVG_CONVERT = @RSVG_CONVERT@
ANSITERMINAL_DIR = @ANSITERMINAL_LIB@
ANSITERMINAL_BYTE = $(ANSITERMINAL_DIR) ANSITerminal.cma
ANSITERMINAL_OPT = $(ANSITERMINAL_DIR) ANSITerminal.cmxa
XML_LIGHT_DIR = @XMLLIGHT_INCLUDE@
XML_LIGHT_BYTE = $(XML_LIGHT_DIR) xml-light.cma
XML_LIGHT_OPT = $(XML_LIGHT_DIR) xml-light.cmxa
LABLGTK_DIR = -I +lablgtk2
LABLGTK_BYTE = $(LABLGTK_DIR) lablgtk.cma lablglade.cma lablrsvg.cma -I +cairo cairo.cma cairo_lablgtk.cma
LABLGTK_OPT = $(LABLGTK_DIR) lablgtk.cmxa lablglade.cmxa lablrsvg.cmxa -I +cairo cairo.cmxa cairo_lablgtk.cmxa
LABLGTK_OPT_LIGHT = $(LABLGTK_DIR) lablgtk.cmxa -I +cairo cairo.cmxa cairo_lablgtk.cmxa
DEP2PICT_DIR = @DEP2PICT_LIB@
DEP2PICT_BYTE = $(DEP2PICT_DIR) dep2pict.cma
DEP2PICT_OPT = $(DEP2PICT_DIR) dep2pict.cmxa
LOG_DIR = @LOG_LIB@
LOG_BYTE = $(LOG_DIR) log.cma
LOG_OPT = $(LOG_DIR) log.cmxa
DEBUG = @DEBUG@
WARNING = @WARNING@
MESSAGE = @MESSAGE@
INFO = @INFO@
SYSTEM = @SYSTEM@
infos:
@echo ""
@echo "version -> " $(VERSION)
@echo ""
@echo "prefix -> " @prefix@
@echo "exec install dir -> " $(INSTALL_DIR)
@echo "data install dir -> " $(DATA_DIR)
@echo "doc install dir -> " $(DOC_DIR)
@echo ""
@echo ""
@echo "byte compil flags -> " $(BYTE_FLAGS)
@echo "native compil flags -> " $(OPT_FLAGS)
@echo ""
@echo "OCAMLLIB -> " $(OCAMLLIB)
@echo "OCAMLYACC -> " $(OCAMLYACC)
@echo "OCAMLLEX -> " $(OCAMLLEX)
@echo "OCAMLFIND -> " $(OCAMLFIND)
@echo "RSVG -> " $(RSVG)
@echo "RSVG_CONVERT -> " $(RSVG_CONVERT)
@echo "LABLGTK2 -> " $(LABLGTK_OPT)
@echo "DEP2PICT -> " $(DEP2PICT_OPT)
@echo "LOG -> " $(LOG_OPT)
@echo "ANSITERMINAL -> " $(ANSITERMINAL_OPT)
@echo "XML_LIGHT -> " $(XML_LIGHT_OPT)
@echo ""
@echo "DEBUG -> " $(DEBUG)
@echo "WARNING -> " $(WARNING)
@echo "MESSAGE -> " $(MESSAGE)
@echo "INFO -> " $(INFO)
@echo ""
@echo "SYSTEM -> " $(SYSTEM)
cleanup:
rm -rf *.cmo *.out *.cmi *.mli deplex.ml deppars.ml *.cmxa *.a *.cmx *~ *.o *.cmx *.cma test *.svg ui.ml *.status *.h *.log autom4te.cache config/autom4te.cache
purge:
rm -rf Makefile
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.63])
AC_INIT(dep2pict, 2.0.3, paul.masson@inria.fr)
AC_ARG_ENABLE(
[config],
[AS_HELP_STRING(
[--enable-config],
[Enable configuration check (default is yes)])],
[config=$enableval],
[config=yes])
if test "$config" = yes ; then
# Checks for programs.
AC_CHECK_PROGS(OCAMLC,ocamlc.opt ocamlc,no)
if test "$OCAMLC" = no ; then
AC_MSG_ERROR(Cannot find ocamlc.)
fi
# Checks for libraries.
AC_MSG_CHECKING(for ocaml library path)
OCAMLLIB=$($OCAMLC -where)
AC_MSG_RESULT($OCAMLLIB)
if test "$OCAMLLIB" = ""; then
AC_MSG_ERROR(Cannot find ocaml library path)
fi
# Look for camllex and camlyacc
AC_PATH_PROG(OCAMLLEX,ocamllex,no)
if test "$OCAMLLEX" = no ; then
AC_MSG_ERROR(Cannot find ocamllex)
fi
AC_PATH_PROG(OCAMLYACC,ocamlyacc,no)
if test "$OCAMLYACC" = no ; then
AC_MSG_ERROR(Cannot find ocamlyacc)
fi
AC_PATH_PROG(RSVG,rsvg,no)
if test "$RSVG" = no ; then
AC_MSG_WARN(Cannot find rsvg)
fi
AC_PATH_PROG(RSVG_CONVERT,rsvg-convert,no)
if test "$RSVG" = no ; then
AC_MSG_ERROR(Cannot find rsvg-convert)
fi
# Look for ocamlfind
AC_PATH_PROG(OCAMLFIND,ocamlfind,no)
if test "$OCAMLFIND" = no ; then
AC_MSG_WARN(Cannot find ocamlfind)
fi
AC_ARG_ENABLE(
[debug],
[AS_HELP_STRING([--enable-debug], [Display debug trace])],
[with_debug=$enableval],
[with_debug=no])
AC_ARG_ENABLE(
[warning],
[AS_HELP_STRING([--enable-warning], [Display warning trace])],
[with_warning=$enableval],
[with_warning=no])
AC_ARG_ENABLE(
[message],
[AS_HELP_STRING([--enable-message], [Display message trace])],
[with_message=$enableval],
[with_message=yes])
AC_ARG_ENABLE(
[info],
[AS_HELP_STRING([--enable-info], [Display info trace])],
[with_info=$enableval],
[with_info=yes])
# Look for cairo
AC_MSG_CHECKING([for cairo])
if test -f c_check_cairo.ml ; then
if test -w c_check_cairo.ml ; then
rm c_check_cairo.ml >& /dev/null
else
AC_MSG_ERROR(Cannot remove c_check_cairo.ml. Please change its right with chmod 666 c_check_cairo.ml)
fi
fi
echo "open Cairo;;" > c_check_cairo.ml
if (ocamlc -c -I +lablgtk2 lablgtk.cma -I +cairo cairo.cma c_check_cairo.ml >& /dev/null) ; then
AC_MSG_RESULT(standard)
CAIRO="yes"
else
if test "$OCAMLFIND" = no ; then
AC_MSG_ERROR(The cairo library is missing.)
CAIRO=no
else
if $OCAMLFIND query cairo > /dev/null 2>&1 ; then
AC_MSG_RESULT(ocamlfind)
else
AC_MSG_ERROR(The cairo library is missing.)
CAIRO=no
fi
fi
fi
rm c_check_cairo.ml >& /dev/null
rm c_check_cairo.cmo >& /dev/null
rm c_check_cairo.cmi >& /dev/null
# look for dep2pict$
AC_MSG_CHECKING([for dep2pict])
if test -f c_check_dep2pict.ml ; then
if test -w c_check_dep2pict.ml ; then
rm c_check_dep2pict.ml >& /dev/null
else
AC_MSG_ERROR(Cannot remove c_check_dep2pict.ml. Please change its right with chmod 666 c_check_dep2pict.ml)
fi
fi
echo "open Dep2pict;;" > c_check_dep2pict.ml
if (ocaml c_check_dep2pict.ml >& /dev/null) ; then
AC_MSG_RESULT(standard)
DEP2PICT="yes"
else
if test "$OCAMLFIND" = no ; then
AC_MSG_ERROR(The dep2pict lib is missing.)
DEP2PICT=no
else
if $OCAMLFIND query dep2pict > /dev/null 2>&1 ; then
DEP2PICT="yes"
DEP2PICT_LIB="-I `$OCAMLFIND query dep2pict`"
AC_MSG_RESULT(ocamlfind)
else
AC_MSG_ERROR(The dep2pict lib is missing.)
DEP2PICT=no
fi
fi
fi
rm c_check_dep2pict.ml >& /dev/null
# look for log$
AC_MSG_CHECKING([for log])
if test -f c_check_log.ml ; then
if test -w c_check_log.ml ; then
rm c_check_log.ml >& /dev/null
else
AC_MSG_ERROR(Cannot remove c_check_log.ml. Please change its right with chmod 666 c_check_log.ml)
fi
fi
echo "open Log;;" > c_check_log.ml
if (ocaml c_check_log.ml >& /dev/null) ; then
AC_MSG_RESULT(standard)
LOG="yes"
else
if test "$OCAMLFIND" = no ; then
AC_MSG_ERROR(The log lib is missing.)
LOG=no
else
if $OCAMLFIND query log > /dev/null 2>&1 ; then
LOG="yes"
LOG_LIB="-I `$OCAMLFIND query log`"
AC_MSG_RESULT(ocamlfind)
else
AC_MSG_ERROR(The log lib is missing.)
LOG=no
fi
fi
fi
rm c_check_log.ml >& /dev/null
# look for ansiterminal
AC_MSG_CHECKING([for ansiterminal])
if test -f c_check_ansiterminal.ml ; then
if test -w c_check_ansiterminal.ml ; then
rm c_check_ansiterminal.ml >& /dev/null
else
AC_MSG_ERROR(Cannot remove c_check_ansiterminal.ml. Please change its right with chmod 666 c_check_ansiterminal.ml)
fi
fi
echo "open ANSITerminal;;" > c_check_ansiterminal.ml
if (ocaml c_check_ansiterminal.ml >& /dev/null) ; then
AC_MSG_RESULT(standard)
ANSITERMINAL="yes"
else
if test "$OCAMLFIND" = no ; then
AC_MSG_ERROR(The ansiterminal lib is missing.)
ANSITERMINAL=no
else
if $OCAMLFIND query ansiterminal > /dev/null 2>&1 ; then
ANSITERMINAL="yes"
ANSITERMINAL_LIB="-I `$OCAMLFIND query ANSIterminal`"
AC_MSG_RESULT(ocamlfind)
else
AC_MSG_ERROR(The ansiterminal lib is missing.)
ANSITERMINAL=no
fi
fi
fi
rm c_check_ansiterminal.ml >& /dev/null
# Look for xml-light
AC_MSG_CHECKING([for Xml-light])
if test -f c_check_xml-light.ml ; then
if test -w c_check_xml-light.ml ; then
rm c_check_xml-light.ml >& /dev/null
else
AC_MSG_ERROR(Cannot remove c_check_xml-light.ml. Please change its right with chmod 666 c_check_xml-light.ml)
fi
fi
echo "open Xml;;" > c_check_xml-light.ml
if ($OCAML -I +xml-light xml-light.cma c_check_xml-light.ml >& /dev/null) ; then
XMLLIGHT_INCLUDE="-I +xml-light"
AC_MSG_RESULT(xml-light)
else
if test "$OCAMLFIND" = no ; then
AC_MSG_ERROR(The xml-light library is missing.)
else
if ocamlfind query xml-light > /dev/null 2>&1 ; then
XMLLIGHT_INCLUDE="-I `ocamlfind query xml-light`"
AC_MSG_RESULT(ocamlfind)
else
AC_MSG_ERROR(The xml-light ocamlfind library is missing.)
fi
fi
fi
rm c_check_xml-light.ml >& /dev/null
# Build GUI.
AC_ARG_ENABLE(
[gui],
[AS_HELP_STRING(
[--enable-gui],
[build GUI extension (default is yes)])],
[with_gui=$enableval],
[with_gui=yes])
if test "x$with_gui" != xno ; then
echo ""
echo "Trying to configure with gui enabled."
echo ""
# Look for lablgtk2
AC_PATH_PROG(LABLGTK2,lablgtk2,no)
if test "$LABLGTK2" = no ; then
AC_MSG_WARN(Cannot find lablgtk2.)
else
AC_SUBST(HAVE_GTK,yes)
fi
# Look for lablgtkrsvg with or without ocamlfind
AC_MSG_CHECKING([for lablrsvg])
if test -f c_check_lablrsvg.ml ; then
if test -w c_check_lablrsvg.ml ; then
rm c_check_lablrsvg.ml >& /dev/null
else
AC_MSG_ERROR(Cannot remove c_check_lablrsvg.ml. Please change its right with chmod 666 c_check_lablrsvg.ml)
fi
fi
echo "open Rsvg;;" > c_check_lablrsvg.ml
if (ocaml -I +lablgtk2 lablgtk.cma lablrsvg.cma c_check_lablrsvg.ml >& /dev/null) ; then
AC_MSG_RESULT(standard)
LABLRSVG="yes"
else
if test "$OCAMLFIND" = no ; then
AC_MSG_WARN(The lablrsvg library is missing.)
LABLRSVG="no"
else
if $OCAMLFIND query lablrsvg > /dev/null 2>&1 ; then
AC_MSG_RESULT(ocamlfind)
else
AC_MSG_WARN(The lablrsvg library is missing.)
LABLRSVG="no"
fi
fi
fi
rm c_check_lablrsvg.ml >& /dev/null
# Look for lablglade with or without ocamlfind
AC_MSG_CHECKING([for lablglade])
if test -f c_check_lablglade.ml ; then
if test -w c_check_lablglade.ml ; then
rm c_check_lablglade.ml >& /dev/null
else
AC_MSG_ERROR(Cannot remove c_check_lablglade.ml. Please change its right with chmod 666 c_check_lablglade.ml)
fi
fi
echo "open GMain;; open Glade;;" > c_check_lablglade.ml
if (ocamlc -I +lablgtk2 lablgtk.cma lablglade.cma c_check_lablglade.ml >& /dev/null) ; then
AC_MSG_RESULT(lablglade)
LABLGLADE="yes"
else
if test "$OCAMLFIND" = no ; then
AC_MSG_WARN(The lablglade library is missing.)
LABLGLADE="no"
else
if $OCAMLFIND query lablglade > /dev/null 2>&1 ; then
AC_MSG_RESULT(ocamlfind)
else
AC_MSG_WARN(The lablglade library is missing.)
LABLGLADE="no"
fi
fi
fi
rm c_check_lablglade.ml >& /dev/null
# Check whether build or not gui
if test "$LABLGTK2" = no || test "$DOT" = no || test "$LABLRSVG" = no || test $CAIRO = no || test $LABLGLADE = no; then
AC_MSG_WARN(Will not build leopar GUI extension.)
else
AC_SUBST(BUILD_GUI,yes)
fi
fi
if test "x$with_debug" != xno ; then
AC_SUBST(DEBUG,yes)
else
AC_SUBST(DEBUG,no)
fi
if test "x$with_warning" != xno ; then
AC_SUBST(WARNING,yes)
else
AC_SUBST(WARNING,no)
fi
if test "x$with_message" != xno ; then
AC_SUBST(MESSAGE,yes)
else
AC_SUBST(MESSAGE,no)
fi
if test "x$with_info" != xno ; then
AC_SUBST(INFO,yes)
else
AC_SUBST(INFO,no)
fi
#lib directory
LIB=`pwd`/lib
AC_SUBST(LIB)
# System
SYSTEM=`uname`
AC_SUBST(SYSTEM)
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_SUBST(OCAMLLIB)
AC_SUBST(OCAMLYACC)
AC_SUBST(OCAMLLEX)
AC_SUBST(OCAMLFIND)
AC_SUBST(RSVG)
AC_SUBST(XMLLIGHT_INCLUDE)
AC_SUBST(RSVG_CONVERT)
AC_SUBST(DEP2PICT_LIB)
AC_SUBST(LOG_LIB)
AC_SUBST(ANSITERMINAL_LIB)
AC_SUBST(DEBUG)
AC_SUBST(WARNING)
AC_SUBST(INFO)
AC_SUBST(MESSAGE)
AC_SUBST(LIB)
fi
AC_SUBST(SET_MAKE)
AC_CONFIG_FILES(config/Makefile Makefile src/Makefile)
AC_PROG_MAKE_SET
AC_OUTPUT
cd config && make infos
echo ""
This source diff could not be displayed because it is too large. You can view the blob instead.
Package: dep2pict
Version: @VERSION@
Section: base
Priority: optional
Architecture: all
Installed-Size: @SIZE@
Depends: ocaml (>=3.11), libcaml-log (=@libcaml-log-VERSION@), libcaml-dep2pict (=@libcaml-dep2pict-VERSION@), libcairo-ocaml-dev
Suggests: libc6, librsvg2-bin
Maintainer: Paul MASSON <paul.masson@inria.fr>
Description: Dep2pict is a program to draw dependencies structure.
#! /bin/sh
cd @DATA_DIR@src
tar -xf dep2pict-@VERSION@.tar.gz
cd dep2pict-@VERSION@
./configure > log.install
make >> log.install
make install >> log.install
cd ..
rm -rf dep2pict-@VERSION@
LAUNCHER="/usr/share/applications/dep2pict.desktop"
REP="/usr/share/desktop-directories/calligramme.directory"
DESKTOP="[Desktop Entry]\nName=Dep2pict\nName[fr]=Dep2pict\nComment=Draw dependencies\nComment[fr]=Graphes de dépendences\nExec=dep2pict\nIcon=@DATA_DIR@dep2pict.png\nTerminal=false\nType=Application\nCategories=Calligramme;"
FOLDER="[Desktop Entry]\nEncoding=UTF-8\nName=Calligramme\nComment=Calligramme App\nIcon=@DATA_DIR@/calligramme.png\nType=Directory"
touch $REP
echo "$FOLDER" > $REP
if test -e $LAUNCHER; then : rm -rf $LAUNCHER ; fi
touch $LAUNCHER
echo "$DESKTOP" > $LAUNCHER
xdg-desktop-menu install --novendor $REP $LAUNCHER
xdg-desktop-menu forceupdate --mode user
xdg-desktop-menu forceupdate --mode system
#! /bin/sh
rm -rf `which dep2pict`
#! /bin/sh
VERSION=$1
md5=`openssl md5 dep2pict-$VERSION.tar.gz | sed "s|MD5(dep2pict-$VERSION\.tar.gz)= ||"`
sha1=`openssl sha1 dep2pict-$VERSION.tar.gz | sed "s|SHA1(dep2pict-$VERSION\.tar.gz)= ||"`
rmd160=`openssl rmd160 dep2pict-$VERSION.tar.gz | sed "s|RIPEMD160(dep2pict-$VERSION\.tar.gz)= ||"`
cp portfile/Portfile.default Portfile
sed -i "s|@MD5_SUM@|$md5|" Portfile
sed -i "s|@SHA1_SUM@|$sha1|" Portfile
sed -i "s|@RMD160_SUM@|$rmd160|" Portfile
sed -i "s|@VERSION@|$VERSION|" Portfile
#! /bin/sh
VERSION=$1
INSTALL_DIR=$2
DATA_DIR=$3
DOC_DIR=$4
rm -rf packaging/dep2pict*.deb
mkdir -p packaging/deb/DEBIAN/
mkdir -p packaging/deb$DATA_DIR/src
cp packaging/dep2pict-$VERSION.tar.gz packaging/deb/$DATA_DIR/src
size="0"
cp packaging/DEBIAN/control packaging/deb/DEBIAN/control
cp packaging/DEBIAN/postinst packaging/deb/DEBIAN/postinst
cp packaging/DEBIAN/postrm packaging/deb/DEBIAN/postrm
chmod 755 packaging/deb/DEBIAN/postrm
chmod 755 packaging/deb/DEBIAN/postinst
sed -i "s|@VERSION@|$VERSION|" packaging/deb/DEBIAN/control
sed -i "s|@SIZE@|$size|" packaging/deb/DEBIAN/control
sed -i "s|@DATA_DIR@|$DATA_DIR|" packaging/deb/DEBIAN/postinst
sed -i "s|@VERSION@|$VERSION|" packaging/deb/DEBIAN/postinst
(cd packaging/ && dpkg-deb --build deb && cd -) || (echo "Fatal error : maybe the version number is null (make ... VERSION=...)" && exit 1)
mv packaging/deb.deb packaging/dep2pict-$VERSION-i386.deb
rm -rf packaging/deb
PortSystem 1.0
name dep2pict
version @VERSION@
categories graphics
platforms darwin
maintainers inria.fr:paul.masson
description Dep2pict
long_description Tool to draw dependencies graph
homepage http://wikilligramme.loria.fr
master_sites http://wikilligramme.loria.fr/macport/@repos@/archive/dep2pict
checksums md5 @MD5_SUM@ \
sha1 @SHA1_SUM@ \
rmd160 @RMD160_SUM@
depends_lib port:ocaml \
port:librsvg \
port:libcaml-cairo-ocaml \
port:lablgtk2 \
port:libcaml-dep2pict
use_parallel_build no
destroot {
system "cd ${worksrcpath} && make destroot DESTDIR=${destroot}"
}
include ../config/Makefile
LOG = -DDEBUG=\"@DEBUG@\" -DINFO=\"@INFO@\" -DMESSAGE=\"@MESSAGE@\" -DWARNING=\"@WARNING@\"
opt_gtk : ui.ml ui.cmx gui.cmx main.cmx ../bin/dep2pict.opt
opt : main.cmx ../bin/dep2pict.opt
ui.ml : dep2pict.glade
sed 's/<property name="invisible_char">&#x25CF;<\/property>//g' dep2pict.glade > glade.tmp
mv glade.tmp dep2pict.glade.ml
lablgladecc2 dep2pict.glade.ml > ui.ml
rm dep2pict.glade.ml
sed 's|dep2pict.glade.ml|$(DATA_DIR)dep2pict.glade|g' ui.ml > ui.tmp
mv ui.tmp ui.ml
ui.cmx : ui.ml
ocamlopt -c $(LABLGTK_OPT) ui.ml
DEP_OPT= unix.cmxa str.cmxa $(LABLGTK_OPT) $(XML_LIGHT_OPT) $(DEP2PICT_OPT) $(ANSITERMINAL_OPT) $(LOG_OPT)
DEP_OPT_LIGHT= unix.cmxa str.cmxa $(LABLGTK_OPT_LIGHT) $(XML_LIGHT_OPT) $(DEP2PICT_OPT) $(ANSITERMINAL_OPT) $(LOG_OPT)
gui.cmx : gui.ml ui.cmx
ocamlopt -c -pp 'camlp4o pa_macro.cmo -DBUILD_GUI -DDATA_DIR=\"$(DATA_DIR)\" $(LOG) -DVERSION=\"$(VERSION)\"' $(DEP_OPT) ui.cmx gui.ml
main.cmx : main.ml
ifeq (@BUILD_GUI@,yes)
ocamlopt -c -pp 'camlp4o pa_macro.cmo -DBUILD_GUI -DDATA_DIR=\"$(DATA_DIR)\" $(LOG) -DVERSION=\"$(VERSION)\"' $(DEP_OPT) ui.cmx gui.cmx main.ml
else
ocamlopt -c -pp 'camlp4o pa_macro.cmo -DDATA_DIR=\"$(DATA_DIR)\" $(LOG) -DVERSION=\"$(VERSION)\"' $(DEP_OPT) main.ml
endif
../bin/dep2pict.opt : main.cmx
mkdir -p ../bin
ifeq (@BUILD_GUI@,yes)