| 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 | ### Subdirectories to build |
| 43 | |
| 44 | ## The SOD translator. |
| 45 | SUBDIRS += src |
| 46 | |
| 47 | ## The runtime support library. |
| 48 | SUBDIRS += lib |
| 49 | |
| 50 | ## The manual. |
| 51 | SUBDIRS += doc |
| 52 | |
| 53 | ## The tests and examples. |
| 54 | SUBDIRS += test |
| 55 | |
| 56 | ###-------------------------------------------------------------------------- |
| 57 | ### Additional random things useful during development. |
| 58 | |
| 59 | ## ASDF hacking for finding the system definitions. |
| 60 | EXTRA_DIST += asdf-hack.lisp.in |
| 61 | noinst_DATA += asdf-hack.lisp |
| 62 | asdf-hack.lisp: asdf-hack.lisp.in Makefile |
| 63 | $(SUBST) $(srcdir)/asdf-hack.lisp.in >$@.new $(SUBSTITUTIONS) && \ |
| 64 | mv $@.new $@ |
| 65 | |
| 66 | ## Emacs hacking for indentation. |
| 67 | EXTRA_DIST += emacs-hacks.el |
| 68 | |
| 69 | ###-------------------------------------------------------------------------- |
| 70 | ### Distribution. |
| 71 | |
| 72 | ## Release number. |
| 73 | dist-hook: |
| 74 | echo $(VERSION) >$(distdir)/RELEASE |
| 75 | |
| 76 | ## The `STYLE' document. |
| 77 | EXTRA_DIST += STYLE |
| 78 | |
| 79 | ## Additional build tools. |
| 80 | EXTRA_DIST += config/auto-version |
| 81 | EXTRA_DIST += config/confsubst |
| 82 | |
| 83 | ###-------------------------------------------------------------------------- |
| 84 | ### Debian. |
| 85 | |
| 86 | EXTRA_DIST += debian/rules debian/copyright |
| 87 | EXTRA_DIST += debian/control debian/changelog |
| 88 | EXTRA_DIST += debian/compat |
| 89 | |
| 90 | ## libsod |
| 91 | EXTRA_DIST += debian/libsod.install |
| 92 | |
| 93 | ## libsod-dev |
| 94 | EXTRA_DIST += debian/libsod-dev.install |
| 95 | |
| 96 | ## sod |
| 97 | EXTRA_DIST += debian/sod.install |
| 98 | |
| 99 | ## sod-doc |
| 100 | EXTRA_DIST += debian/sod-doc.install |
| 101 | |
| 102 | ## sod-dev |
| 103 | EXTRA_DIST += debian/sod-dev.install |
| 104 | |
| 105 | ###----- That's all, folks -------------------------------------------------- |