Makefile.am 1.3 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE).
#
# This file is part of Olena.
#
# Olena 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, version 2 of the License.
#
# Olena 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 Olena.  If not, see <http://www.gnu.org/licenses/>.

17
SUBDIRS = tests src
Guillaume Lazzara's avatar
Guillaume Lazzara committed
18
19
20
21
22

.PHONY: bin

bin:
	make -C src
23
24
25
26

# Regen files recursively.
include $(top_srcdir)/build-aux/regen-recursive.mk
REGEN_SUBDIRS += tests
Guillaume Lazzara's avatar
Guillaume Lazzara committed
27
28

regen-am:
29
30
	cd $(srcdir)							\
	  && $(abs_top_srcdir)/build-aux/generate_dist_headers.sh	\
31
	       . headers.mk nodist-headers scribo scribo
Guillaume Lazzara's avatar
Guillaume Lazzara committed
32
33
34
35
36

# FIXME: Change generate_dist_headers.sh so that the action looks like this:
#
#	$< $@.tmp && mv -f $@.tmp $@ && chmod -w $@
#
37
$(srcdir)/headers.mk: $(top_srcdir)/build-aux/generate_dist_headers.sh
38
39
	cd $(srcdir)							\
	  && $(abs_top_srcdir)/build-aux/generate_dist_headers.sh	\
40
	       . headers.mk nodist-headers scribo scribo
Guillaume Lazzara's avatar
Guillaume Lazzara committed
41
42

include $(srcdir)/headers.mk