# -*- Automake -*-
#
# Makefile for the XMLF90 package
#
# Copyright (C) 2017 Yann Pouillon
#
# This file is part of the XMLF90 software package. For license information,
# please see the COPYING file in the top-level directory of the source
# distribution.
#

                    # ------------------------------------ #

#
# Top makefile
#

# Autotools parameters
ACLOCAL_AMFLAGS = -I config/m4

# Subdirectories containing makefiles
SUBDIRS = src doc

# Support for pkg-config (see http://pkg-config.freedesktop.org/wiki/)
pkgconfigdir = $(prefix)/lib/pkgconfig
pkgconfig_DATA = config/data/xmlf90.pc

# Support for SIESTA's .mk files
siestadir = $(datarootdir)/org.siesta-project
siesta_DATA = config/data/xmlf90.mk

# Files to distribute in the source package
EXTRA_DIST = \
  COPYING \
  KNOWN_ISSUES \
  LICENSE \
  README.md \
  config/data/xmlf90.mk.in \
  config/data/xmlf90.pc.in \
  config/data/xmlf90-config.yml.in \
  CMakeLists.txt \
  config/cmake/CMakeLists.txt \
  config/cmake/template.cmake \
  config/cmake/template.pkgconf \
  doc/Tutorial/UserGuide.pdf \
  doc/Examples/sax/features/CMakeLists.txt \
  src/CMakeLists.txt \
  src/cml/CMakeLists.txt \
  src/dom/CMakeLists.txt \
  src/sax/CMakeLists.txt \
  src/wxml/CMakeLists.txt \
  src/xpath/CMakeLists.txt 


# Custom targets
distclean-local:
	rm -f $(distdir).tar.bz2 $(distdir).tar.gz $(distdir).tar.xz
