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