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