chiark / gitweb /
sod.m4: The ACTION-IF-LIBRARY-FOUND should replace the default.
[sod] / Makefile.am
1 ### -*-makefile-*-
2 ###
3 ### Build script for SOD
4 ###
5 ### (c) 2015 Straylight/Edgeware
6 ###
7
8 ###----- Licensing notice ---------------------------------------------------
9 ###
10 ### This file is part of the Sensible Object Design, an object system for C.
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
26 include $(top_srcdir)/vars.am
27
28 SUBDIRS                  =
29
30 ###--------------------------------------------------------------------------
31 ### Package-configuration file.
32
33 pkgconfigdir             = $(libdir)/pkgconfig
34 pkgconfig_DATA           = sod.pc
35 CLEANFILES              += sod.pc
36 EXTRA_DIST              += sod.pc.in
37
38 sod.pc: sod.pc.in Makefile
39         $(SUBST) $(srcdir)/sod.pc.in >$@.new $(SUBSTITUTIONS) && mv $@.new $@
40
41 ###--------------------------------------------------------------------------
42 ### Autoconf machinery.
43
44 aclocaldir               = $(datadir)/aclocal
45 dist_aclocal_DATA        = sod.m4
46
47 ###--------------------------------------------------------------------------
48 ### Subdirectories to build
49
50 ## The SOD translator.
51 SUBDIRS                 += src
52
53 ## The runtime support library.
54 SUBDIRS                 += lib
55
56 ## The manual.
57 SUBDIRS                 += doc
58
59 ## The tests and examples.
60 SUBDIRS                 += test
61
62 ###--------------------------------------------------------------------------
63 ### Additional random things useful during development.
64
65 ## ASDF hacking for finding the system definitions.
66 EXTRA_DIST              += asdf-hack.lisp.in
67 noinst_DATA             += asdf-hack.lisp
68 asdf-hack.lisp: asdf-hack.lisp.in Makefile
69         $(SUBST) $(srcdir)/asdf-hack.lisp.in >$@.new $(SUBSTITUTIONS) && \
70                 mv $@.new $@
71
72 ## Emacs hacking for indentation.
73 EXTRA_DIST              += emacs-hacks.el
74
75 ###--------------------------------------------------------------------------
76 ### Distribution.
77
78 ## Release number.
79 dist-hook:
80         echo $(VERSION) >$(distdir)/RELEASE
81
82 ## The `STYLE' document.
83 EXTRA_DIST              += STYLE
84
85 ## Additional build tools.
86 EXTRA_DIST              += config/auto-version
87 EXTRA_DIST              += config/confsubst
88
89 ###--------------------------------------------------------------------------
90 ### Debian.
91
92 EXTRA_DIST              += debian/rules debian/copyright
93 EXTRA_DIST              += debian/control debian/changelog
94 EXTRA_DIST              += debian/compat
95
96 ## libsod
97 EXTRA_DIST              += debian/libsod.install
98
99 ## libsod-dev
100 EXTRA_DIST              += debian/libsod-dev.install
101
102 ## sod
103 EXTRA_DIST              += debian/sod.install
104
105 ## sod-doc
106 EXTRA_DIST              += debian/sod-doc.install
107
108 ## sod-dev
109 EXTRA_DIST              += debian/sod-dev.install
110
111 ###----- That's all, folks --------------------------------------------------