Merge tag 'upstream/6.33.1_b2+dfsg.1'
[debian_inform6.git] / config / Makefile.inc
blob32ee66341ac0131de40c09e41294ca3339314b2b
1 # Common makefile targets, in -*- Makefile -*- mode.
3 # Version-specific installation directory.
4 installdir = $(pkgdatadir)/$(INFORM_VERSION)
6 # Place to put include files.
7 includedir = $(installdir)/include
9 # Place to put modules and headers.
10 moduledir = $(installdir)/module
12 # Place for users to put local include files.
13 localincdir = $(pkgdatadir)/include
15 # Place for users to put local modules and headers.
16 localmoddir = $(pkgdatadir)/module
18 # Place to put Z-code files.
19 zcodedir = $(datadir)/zcode
21 # Etags pattern to match Inform tags.
22 TYPES = \(Class\|Object\|Nearby\)
23 ETAGS_INFORM = -l none -r '/$(TYPES)\([ \t]+->\)*[ \t]+\([^ \t]+\)/\3/' \
24 -r '/\[[ \t]+\([^ \t;]+\)/\1/'
26 # Program to run to build Z-code files.
27 INFORM = $(top_builddir)/src/inform
29 # Include and module paths.
30 INCPATH = $(top_srcdir)/lib,$(top_builddir)/lib
31 MODPATH = $(top_srcdir)/lib,$(top_builddir)/lib
33 # Build flags.
34 INFFLAGS = -ix -~D -E1 +include_path=$(INCPATH) +module_path=$(MODPATH)
36 MODFLAGS = -x +include_path=$(srcdir)/ +module_path=$(srcdir)/  \
37 +language_name=english
39 # How to build things.
40 SUFFIXES = .inf .h .z5
42 .inf.z5:; $(INFORM) $(INFFLAGS) $<
44 #.h.m5:;        $(INFORM) $(MODFLAGS) -M $< $@