chiark / gitweb /
Makefile.am: Include a pkgconfig file.
[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###
10### This file is part of the Sensble 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
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
97a9a385
MW
41###--------------------------------------------------------------------------
42### Subdirectories to build
43
44## The SOD translator.
45SUBDIRS += src
46
47## The runtime support library.
48SUBDIRS += lib
49
8d1d7d3e
MW
50## The tests and examples.
51SUBDIRS += test
52
5aeb3da7
MW
53###--------------------------------------------------------------------------
54### Distribution.
55
6d1b78e0
MW
56## Release number.
57dist-hook:
58 echo $(VERSION) >$(distdir)/RELEASE
59
5aeb3da7
MW
60## Additional build tools.
61EXTRA_DIST += config/auto-version
eddc126b 62EXTRA_DIST += config/confsubst
5aeb3da7 63
97a9a385 64###----- That's all, folks --------------------------------------------------