chiark / gitweb /
sod.m4: The ACTION-IF-LIBRARY-FOUND should replace the default.
[sod] / Makefile.am
CommitLineData
97a9a385
MW
1### -*-makefile-*-
2###
3### Build script for SOD
4###
5### (c) 2015 Straylight/Edgeware
6###
7
8###----- Licensing notice ---------------------------------------------------
9###
e0808c47 10### This file is part of the Sensible Object Design, an object system for C.
97a9a385
MW
11###
12### SOD is free software; you can redistribute it and/or modify
13### it under the terms of the GNU General Public License as published by
14### the Free Software Foundation; either version 2 of the License, or
15### (at your option) any later version.
16###
17### SOD is distributed in the hope that it will be useful,
18### but WITHOUT ANY WARRANTY; without even the implied warranty of
19### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20### GNU General Public License for more details.
21###
22### You should have received a copy of the GNU General Public License
23### along with SOD; if not, write to the Free Software Foundation,
24### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
b5d086c2
MW
26include $(top_srcdir)/vars.am
27
97a9a385
MW
28SUBDIRS =
29
dfc03582
MW
30###--------------------------------------------------------------------------
31### Package-configuration file.
32
33pkgconfigdir = $(libdir)/pkgconfig
34pkgconfig_DATA = sod.pc
35CLEANFILES += sod.pc
36EXTRA_DIST += sod.pc.in
37
38sod.pc: sod.pc.in Makefile
39 $(SUBST) $(srcdir)/sod.pc.in >$@.new $(SUBSTITUTIONS) && mv $@.new $@
40
0fafa094
MW
41###--------------------------------------------------------------------------
42### Autoconf machinery.
43
44aclocaldir = $(datadir)/aclocal
45dist_aclocal_DATA = sod.m4
46
97a9a385
MW
47###--------------------------------------------------------------------------
48### Subdirectories to build
49
50## The SOD translator.
51SUBDIRS += src
52
53## The runtime support library.
54SUBDIRS += lib
55
3f725f73
MW
56## The manual.
57SUBDIRS += doc
58
8d1d7d3e
MW
59## The tests and examples.
60SUBDIRS += test
61
e7de01bc
MW
62###--------------------------------------------------------------------------
63### Additional random things useful during development.
64
8aff54a1
MW
65## ASDF hacking for finding the system definitions.
66EXTRA_DIST += asdf-hack.lisp.in
67noinst_DATA += asdf-hack.lisp
68asdf-hack.lisp: asdf-hack.lisp.in Makefile
69 $(SUBST) $(srcdir)/asdf-hack.lisp.in >$@.new $(SUBSTITUTIONS) && \
70 mv $@.new $@
71
e7de01bc
MW
72## Emacs hacking for indentation.
73EXTRA_DIST += emacs-hacks.el
74
5aeb3da7
MW
75###--------------------------------------------------------------------------
76### Distribution.
77
6d1b78e0
MW
78## Release number.
79dist-hook:
80 echo $(VERSION) >$(distdir)/RELEASE
81
722aeb62
MW
82## The `STYLE' document.
83EXTRA_DIST += STYLE
84
5aeb3da7
MW
85## Additional build tools.
86EXTRA_DIST += config/auto-version
eddc126b 87EXTRA_DIST += config/confsubst
5aeb3da7 88
259726f3
MW
89###--------------------------------------------------------------------------
90### Debian.
91
92EXTRA_DIST += debian/rules debian/copyright
93EXTRA_DIST += debian/control debian/changelog
94EXTRA_DIST += debian/compat
95
96## libsod
97EXTRA_DIST += debian/libsod.install
98
99## libsod-dev
100EXTRA_DIST += debian/libsod-dev.install
101
102## sod
103EXTRA_DIST += debian/sod.install
104
3f725f73
MW
105## sod-doc
106EXTRA_DIST += debian/sod-doc.install
107
259726f3
MW
108## sod-dev
109EXTRA_DIST += debian/sod-dev.install
110
97a9a385 111###----- That's all, folks --------------------------------------------------