Commit | Line | Data |
---|---|---|
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 |
26 | include $(top_srcdir)/vars.am |
27 | ||
97a9a385 MW |
28 | SUBDIRS = |
29 | ||
dfc03582 MW |
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 | ||
0fafa094 MW |
41 | ###-------------------------------------------------------------------------- |
42 | ### Autoconf machinery. | |
43 | ||
44 | aclocaldir = $(datadir)/aclocal | |
45 | dist_aclocal_DATA = sod.m4 | |
46 | ||
97a9a385 MW |
47 | ###-------------------------------------------------------------------------- |
48 | ### Subdirectories to build | |
49 | ||
50 | ## The SOD translator. | |
51 | SUBDIRS += src | |
52 | ||
53 | ## The runtime support library. | |
54 | SUBDIRS += lib | |
55 | ||
3f725f73 MW |
56 | ## The manual. |
57 | SUBDIRS += doc | |
58 | ||
8d1d7d3e MW |
59 | ## The tests and examples. |
60 | SUBDIRS += test | |
61 | ||
e7de01bc MW |
62 | ###-------------------------------------------------------------------------- |
63 | ### Additional random things useful during development. | |
64 | ||
8aff54a1 MW |
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 | ||
e7de01bc MW |
72 | ## Emacs hacking for indentation. |
73 | EXTRA_DIST += emacs-hacks.el | |
74 | ||
5aeb3da7 MW |
75 | ###-------------------------------------------------------------------------- |
76 | ### Distribution. | |
77 | ||
6d1b78e0 MW |
78 | ## Release number. |
79 | dist-hook: | |
80 | echo $(VERSION) >$(distdir)/RELEASE | |
81 | ||
722aeb62 MW |
82 | ## The `STYLE' document. |
83 | EXTRA_DIST += STYLE | |
84 | ||
5aeb3da7 MW |
85 | ## Additional build tools. |
86 | EXTRA_DIST += config/auto-version | |
eddc126b | 87 | EXTRA_DIST += config/confsubst |
5aeb3da7 | 88 | |
259726f3 MW |
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 | ||
3f725f73 MW |
105 | ## sod-doc |
106 | EXTRA_DIST += debian/sod-doc.install | |
107 | ||
259726f3 MW |
108 | ## sod-dev |
109 | EXTRA_DIST += debian/sod-dev.install | |
110 | ||
97a9a385 | 111 | ###----- That's all, folks -------------------------------------------------- |