Merge 'master' into 'gtk3'.
[pspp] / 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_man_MANS =
44 DIST_HOOKS =
45 INSTALL_DATA_HOOKS = 
46 UNINSTALL_DATA_HOOKS =
47 PHONY =
48 SUFFIXES = .q
49 LDADD = gl/libgl.la
50
51 generate-changelog:
52         if test -d $(top_srcdir)/.git; then                     \
53           $(top_srcdir)/build-aux/gitlog-to-changelog --since=2008-07-27        \
54             > $(distdir)/cl-t;                                  \
55           rm -f $(distdir)/ChangeLog;                           \
56           mv $(distdir)/cl-t $(distdir)/ChangeLog;              \
57         fi
58
59 DIST_HOOKS += generate-changelog
60
61
62 include $(top_srcdir)/build-aux/automake.mk
63 include $(top_srcdir)/po/automake.mk
64 include $(top_srcdir)/lib/automake.mk
65 include $(top_srcdir)/doc/automake.mk
66 include $(top_srcdir)/examples/automake.mk
67 include $(top_srcdir)/src/automake.mk
68 include $(top_srcdir)/utilities/automake.mk
69
70 include $(top_srcdir)/tests/automake.mk
71
72 if WITH_GUI_TOOLS
73 include $(top_srcdir)/glade/automake.mk
74 endif
75
76 if WITH_PERL_MODULE
77 include $(top_srcdir)/perl-module/automake.mk
78 endif
79
80 PHONY += $(DIST_HOOKS) $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS)
81
82 .PHONY: $(PHONY)
83
84 dist-hook: $(DIST_HOOKS)
85
86 install-data-hook: $(INSTALL_DATA_HOOKS)
87
88 uninstall-hook: $(UNINSTALL_DATA_HOOKS)
89
90 clean-local: $(CLEAN_LOCAL)
91 all-local: $(ALL_LOCAL)
92 check-local: $(CHECK_LOCAL)
93
94 # A convenience target to build all the binaries
95 programs: $(PROGRAMS)