summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: 6cad2e3cec542b1cc12787861602e0706085372d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
###########################################################################
## Copyright (C) 2009-2011 Tavian Barnes <tavianator@tavianator.com>     ##
##                                                                       ##
## This file is part of The Dimension Build Suite.                       ##
##                                                                       ##
## The Dimension Build Suite 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 3 of the    ##
## License, or (at your option) any later version.                       ##
##                                                                       ##
## The Dimension Build Suite 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 this program.  If not, see <http://www.gnu.org/licenses/>. ##
###########################################################################

ACLOCAL_AMFLAGS = -I m4
SUBDIRS = .                                                                    \
          libdimension                                                         \
          libdimension-python                                                  \
          dimension

EXTRA_DIST = autogen.sh

# Set up ./dimension as a python package for tests
$(abs_builddir)/dimension/__init__.py:
	ln -sf "$(abs_top_srcdir)/dimension/__init__.py" dimension/__init__.py
$(abs_builddir)/dimension/preview.py:
	ln -sf "$(abs_top_srcdir)/dimension/preview.py" dimension/preview.py
$(abs_builddir)/dimension/wrapper.so:
	ln -sf ../libdimension-python/.libs/wrapper.so dimension/wrapper.so
all-local: $(abs_builddir)/dimension/__init__.py $(abs_builddir)/dimension/preview.py $(abs_builddir)/dimension/wrapper.so

bench:
	cd libdimension && $(MAKE) $(AM_MAKEFLAGS) bench

doc:
	cd libdimension && $(MAKE) $(AM_MAKEFLAGS) doc
	cd libdimension-python && $(MAKE) $(AM_MAKEFLAGS) doc

.PHONY: bench doc