perl: remove references to Memory::Usage module for perl module tests
[pspp] / Makefile.am
1 ## PSPP - a program for statistical analysis.
2 ## Copyright (C) 2019, 2020 Free Software Foundation, Inc.
3 ##
4 ## This program is free software: you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published by
6 ## the Free Software Foundation, either version 3 of the License, or
7 ## (at your option) any later version.
8 ##
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 ## GNU General Public License for more details.
13 ##
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
17 ## Process this file with automake to produce Makefile.in  -*- makefile -*-
18
19 AUTOMAKE_OPTIONS = std-options check-news 1.14 subdir-objects
20
21 SUBDIRS = po
22 DISTCLEANFILES = ./po/stamp-po xconfigure
23 BUILT_SOURCES =
24 built-sources: $(BUILT_SOURCES)
25
26 AM_CPPFLAGS = \
27         -I"$(top_srcdir)/gl" \
28         -I"$(top_builddir)/gl" \
29         -DINSTALLDIR=\"$(bindir)\"
30
31 AM_V_P ?= :
32
33 AM_CFLAGS=$(WARNING_FLAGS)
34
35 pkgsysconfdir = $(sysconfdir)/$(PACKAGE)
36
37
38 EXTRA_DIST = ONEWS
39
40 CLEANFILES =
41 MOSTLYCLEANDIRS =
42 MOSTLYCLEANFILES =
43 MAINTAINERCLEANFILES =
44
45 CLEAN_LOCAL =
46 ALL_LOCAL =
47 CHECK_LOCAL =
48 ACLOCAL_AMFLAGS = -I m4 -I gl/m4
49 noinst_LIBRARIES=
50 noinst_LTLIBRARIES=
51 noinst_PROGRAMS=
52 check_PROGRAMS=
53 bin_PROGRAMS=
54 dist_man_MANS =
55 DIST_HOOKS =
56 INSTALL_DATA_HOOKS =
57 UNINSTALL_DATA_HOOKS =
58 PHONY =
59 SUFFIXES =
60 LDADD = gl/libgl.la
61
62 # This ensures that files added to EXTRA_DIST are always distributed,
63 # even if they are inside an Automake if...endif conditional block that is
64 # disabled by some particular "configure" run.  For more information, see:
65 # http://article.gmane.org/gmane.comp.sysutils.automake.general/10891
66 noinst_HEADERS = $(EXTRA_DIST)
67
68 generate-changelog:
69         if test -d $(top_srcdir)/.git; then                     \
70           $(top_srcdir)/build-aux/gitlog-to-changelog --since=2008-07-27  --srcdir=$(top_srcdir) \
71             > $(distdir)/cl-t || exit 1;                                        \
72           rm -f $(distdir)/ChangeLog;                           \
73           mv $(distdir)/cl-t $(distdir)/ChangeLog;              \
74         fi
75
76 DIST_HOOKS += generate-changelog
77
78 GL_CFLAG_GNULIB_WARNINGS = -Wno-missing-prototypes -Wno-unused-parameter
79
80 include $(top_srcdir)/build-aux/automake.mk
81 include $(top_srcdir)/gl/automake.mk
82 include $(top_srcdir)/po/automake.mk
83 include $(top_srcdir)/lib/automake.mk
84 include $(top_srcdir)/examples/automake.mk
85 include $(top_srcdir)/src/automake.mk
86 include $(top_srcdir)/utilities/automake.mk
87 include $(top_srcdir)/tests/automake.mk
88 include $(top_srcdir)/doc/automake.mk
89 include $(top_srcdir)/Windows/automake.mk
90
91 if WITH_PERL_MODULE
92 include $(top_srcdir)/perl-module/automake.mk
93 endif
94
95 PHONY += $(DIST_HOOKS) $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS)
96
97 .PHONY: $(PHONY)
98
99 dist-hook: $(DIST_HOOKS)
100
101 install-data-hook: $(INSTALL_DATA_HOOKS)
102
103 uninstall-hook: $(UNINSTALL_DATA_HOOKS)
104
105 clean-local: $(CLEAN_LOCAL)
106 all-local: $(ALL_LOCAL)
107 check-local: $(CHECK_LOCAL)
108
109 # A convenience target to build all the binaries
110 programs: $(PROGRAMS)
111
112 # The following rules are from Open vSwitch.  The original copyright notice
113 # and license are:
114 #
115 # Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc.
116 #
117 # Copying and distribution of this file, with or without modification,
118 # are permitted in any medium without royalty provided the copyright
119 # notice and this notice are preserved.  This file is offered as-is,
120 # without warranty of any kind.
121
122 # If we're checked out from a Git repository, make sure that every
123 # file that is in Git is distributed.
124 # The debian package is now also maintained in git and that contains
125 # the distribution files. Do not run this check if we are
126 # in a debian package git repository, because the check fails there
127 ALL_LOCAL += dist-hook-git
128 dist-hook-git: distfiles
129         @if test -e $(srcdir)/.git &&                                       \
130             test ! -d $(srcdir)/debian &&                                   \
131             (git --version) >/dev/null 2>&1; then                           \
132           (cd $(srcdir) && git ls-files)                                    \
133             | grep -vE '\.gitignore|README.Git|Smake|Bug-administration'    \
134             | grep -vE '\.gitattributes'                                    \
135             | LC_ALL=C sort -u > gitfiles;                                  \
136           LC_ALL=C comm -1 -3 distfiles gitfiles > missing-distfiles;       \
137           if test -s missing-distfiles; then                                \
138             echo "The distribution is missing the following files:";        \
139             cat missing-distfiles;                                          \
140             exit 1;                                                         \
141           fi;                                                               \
142         fi
143 # The following is based on commands for the Automake "distdir" target.
144 distfiles: Makefile
145         @srcdirstrip=`echo "$(srcdir)" | $(SED) 's/[].[^$$\\*]/\\\\&/g'`; \
146         topsrcdirstrip=`echo "$(top_srcdir)" | $(SED) 's/[].[^$$\\*]/\\\\&/g'`; \
147         list='$(DISTFILES)'; \
148         for file in $$list; do echo $$file; done | \
149           $(SED) -e "s|^$$srcdirstrip/||;t" \
150               -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t" \
151           | LC_ALL=C sort -u > $@
152 CLEANFILES += distfiles gitfiles missing-distfiles
153 PHONY += dist-hook-git
154
155 $(bin_PROGRAMS) $(RECURSIVE_TARGETS) dist: $(BUILT_SOURCES) config.h
156
157 \f
158
159 mimedir = $(datadir)/mime/packages
160 mime_DATA = org.fsf.pspp.xml
161 EXTRA_DIST += org.fsf.pspp.xml
162