New module value-variant
[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_V_P ?= :
15
16 AM_CFLAGS=
17
18 if cc_is_gcc
19 AM_CFLAGS+=-Wall -W -Wwrite-strings -Wstrict-prototypes \
20 -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes
21 endif
22
23 .q.c:
24         @$(MKDIR_P) `dirname $@`
25         $(AM_V_GEN)./src/language/lexer/q2c$(EXEEXT_FOR_BUILD) $< $@
26
27 $(all_q_sources:.q=.c): src/language/lexer/q2c$(EXEEXT_FOR_BUILD)
28 all_q_sources =
29
30 pkgsysconfdir = $(sysconfdir)/$(PACKAGE)
31
32
33 EXTRA_DIST = ONEWS pspp-mode.el
34
35 CLEANFILES = 
36 CLEAN_LOCAL =
37 ALL_LOCAL =
38 CHECK_LOCAL =
39 ACLOCAL_AMFLAGS = -I m4 -I gl/m4
40 noinst_LIBRARIES=
41 noinst_LTLIBRARIES=
42 noinst_PROGRAMS=
43 check_PROGRAMS=
44 bin_PROGRAMS=
45 dist_man_MANS =
46 DIST_HOOKS =
47 INSTALL_DATA_HOOKS = 
48 UNINSTALL_DATA_HOOKS =
49 PHONY =
50 SUFFIXES = .q
51 LDADD = gl/libgl.la
52
53 # This ensures that files added to EXTRA_DIST are always distributed,
54 # even if they are inside an Automake if...endif conditional block that is
55 # disabled by some particular "configure" run.  For more information, see:
56 # http://article.gmane.org/gmane.comp.sysutils.automake.general/10891
57 noinst_HEADERS = $(EXTRA_DIST)
58
59 generate-changelog:
60         if test -d $(top_srcdir)/.git; then                     \
61           $(top_srcdir)/build-aux/gitlog-to-changelog --since=2008-07-27  --srcdir=$(top_srcdir) \
62             > $(distdir)/cl-t || exit 1;                                        \
63           rm -f $(distdir)/ChangeLog;                           \
64           mv $(distdir)/cl-t $(distdir)/ChangeLog;              \
65         fi
66
67 DIST_HOOKS += generate-changelog
68
69
70 include $(top_srcdir)/build-aux/automake.mk
71 include $(top_srcdir)/po/automake.mk
72 include $(top_srcdir)/lib/automake.mk
73 include $(top_srcdir)/doc/automake.mk
74 include $(top_srcdir)/examples/automake.mk
75 include $(top_srcdir)/src/automake.mk
76 include $(top_srcdir)/utilities/automake.mk
77 include $(top_srcdir)/tests/automake.mk
78
79 if WITH_GUI_TOOLS
80 include $(top_srcdir)/glade/automake.mk
81 endif
82
83 if WITH_PERL_MODULE
84 include $(top_srcdir)/perl-module/automake.mk
85 endif
86
87 PHONY += $(DIST_HOOKS) $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS)
88
89 .PHONY: $(PHONY)
90
91 dist-hook: $(DIST_HOOKS)
92
93 install-data-hook: $(INSTALL_DATA_HOOKS)
94
95 uninstall-hook: $(UNINSTALL_DATA_HOOKS)
96
97 clean-local: $(CLEAN_LOCAL)
98 all-local: $(ALL_LOCAL)
99 check-local: $(CHECK_LOCAL)
100
101 # A convenience target to build all the binaries
102 programs: $(PROGRAMS)
103
104 # The following rules are from Open vSwitch.  The original copyright notice
105 # and license are:
106 #
107 # Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc.
108 #
109 # Copying and distribution of this file, with or without modification,
110 # are permitted in any medium without royalty provided the copyright
111 # notice and this notice are preserved.  This file is offered as-is,
112 # without warranty of any kind.
113
114 # If we're checked out from a Git repository, make sure that every
115 # file that is in Git is distributed.
116 ALL_LOCAL += dist-hook-git
117 dist-hook-git: distfiles
118         @if test -e $(srcdir)/.git && (git --version) >/dev/null 2>&1; then \
119           (cd $(srcdir) && git ls-files)                                    \
120             | grep -vE '\.gitignore|README.Git|Smake|Bug-administration'    \
121             | LC_ALL=C sort -u > gitfiles;                                  \
122           LC_ALL=C comm -1 -3 distfiles gitfiles > missing-distfiles;       \
123           if test -s missing-distfiles; then                                \
124             echo "The distribution is missing the following files:";        \
125             cat missing-distfiles;                                          \
126             exit 1;                                                         \
127           fi;                                                               \
128         fi
129 # The following is based on commands for the Automake "distdir" target.
130 distfiles: Makefile
131         @srcdirstrip=`echo "$(srcdir)" | $(SED) 's/[].[^$$\\*]/\\\\&/g'`; \
132         topsrcdirstrip=`echo "$(top_srcdir)" | $(SED) 's/[].[^$$\\*]/\\\\&/g'`; \
133         list='$(DISTFILES)'; \
134         for file in $$list; do echo $$file; done | \
135           $(SED) -e "s|^$$srcdirstrip/||;t" \
136               -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t" \
137           | LC_ALL=C sort -u > $@
138 CLEANFILES += distfiles gitfiles missing-distfiles
139 .PHONY: dist-hook-git