Fix crash in Correlations
[pspp-builds.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in  -*- makefile -*-
2
3 AUTOMAKE_OPTIONS = std-options check-news 1.10.1 subdir-objects
4
5 SUBDIRS = gl po
6 DISTCLEANFILES = ./po/stamp-po xconfigure 
7 BUILT_SOURCES =
8
9 AM_CPPFLAGS = \
10         -I$(top_srcdir)/gl \
11         -I$(top_builddir)/gl \
12         -DINSTALLDIR=\"$(bindir)\"
13
14 AM_CFLAGS=
15
16 if cc_is_gcc
17 AM_CFLAGS+=-Wall -W -Wwrite-strings -Wstrict-prototypes \
18 -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes
19 endif
20
21 .q.c:
22         @$(MKDIR_P) `dirname $@`
23         ./src/language/lexer/q2c$(EXEEXT_FOR_BUILD) $< $@
24
25 $(all_q_sources:.q=.c): src/language/lexer/q2c$(EXEEXT_FOR_BUILD)
26 all_q_sources =
27
28 pkgsysconfdir = $(sysconfdir)/$(PACKAGE)
29
30
31 EXTRA_DIST = OChangeLog ONEWS pspp-mode.el
32
33 CLEANFILES = 
34 CLEAN_LOCAL =
35 ALL_LOCAL =
36 CHECK_LOCAL =
37 ACLOCAL_AMFLAGS = -I m4 -I gl/m4
38 noinst_LIBRARIES=
39 noinst_LTLIBRARIES=
40 noinst_PROGRAMS=
41 check_PROGRAMS=
42 bin_PROGRAMS=
43 DIST_HOOKS =
44 INSTALL_DATA_HOOKS = 
45 UNINSTALL_DATA_HOOKS =
46 PHONY =
47 SUFFIXES = .q
48 LDADD = gl/libgl.la
49
50 generate-changelog:
51         if test -d $(top_srcdir)/.git; then                     \
52           $(top_srcdir)/gitlog-to-changelog --since=2008-07-27  \
53             > $(distdir)/cl-t;                                  \
54           rm -f $(distdir)/ChangeLog;                           \
55           mv $(distdir)/cl-t $(distdir)/ChangeLog;              \
56         fi
57
58 DIST_HOOKS += generate-changelog
59
60
61 include $(top_srcdir)/po/automake.mk
62 include $(top_srcdir)/lib/automake.mk
63 include $(top_srcdir)/doc/automake.mk
64 include $(top_srcdir)/examples/automake.mk
65 include $(top_srcdir)/src/automake.mk
66 include $(top_srcdir)/utilities/automake.mk
67
68 include $(top_srcdir)/tests/automake.mk
69
70 if WITH_GUI_TOOLS
71 include $(top_srcdir)/glade/automake.mk
72 endif
73
74 if WITH_PERL_MODULE
75 include $(top_srcdir)/perl-module/automake.mk
76 endif
77
78 PHONY += $(DIST_HOOKS) $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS)
79
80 .PHONY: $(PHONY)
81
82 dist-hook: $(DIST_HOOKS)
83
84 install-data-hook: $(INSTALL_DATA_HOOKS)
85
86 uninstall-hook: $(UNINSTALL_DATA_HOOKS)
87
88 clean-local: $(CLEAN_LOCAL)
89 all-local: $(ALL_LOCAL)
90 check-local: $(CHECK_LOCAL)
91
92 # A convenience target to build all the binaries
93 programs: $(PROGRAMS)