1 ## Process this file with automake to produce Makefile.in -*- makefile -*-
3 AUTOMAKE_OPTIONS = std-options check-news 1.10.1 subdir-objects
6 DISTCLEANFILES = ./po/stamp-po xconfigure
11 -I$(top_builddir)/gl \
12 -DINSTALLDIR=\"$(bindir)\"
17 AM_CFLAGS+=-Wall -W -Wwrite-strings -Wstrict-prototypes \
18 -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes
22 @$(MKDIR_P) `dirname $@`
23 ./src/language/lexer/q2c$(EXEEXT_FOR_BUILD) $< $@
25 $(all_q_sources:.q=.c): src/language/lexer/q2c$(EXEEXT_FOR_BUILD)
28 pkgsysconfdir = $(sysconfdir)/$(PACKAGE)
31 EXTRA_DIST = ONEWS pspp-mode.el
37 ACLOCAL_AMFLAGS = -I m4 -I gl/m4
46 UNINSTALL_DATA_HOOKS =
51 # This ensures that files added to EXTRA_DIST are always distributed,
52 # even if they are inside an Automake if...endif conditional block that is
53 # disabled by some particular "configure" run. For more information, see:
54 # http://article.gmane.org/gmane.comp.sysutils.automake.general/10891
55 noinst_HEADERS = $(EXTRA_DIST)
58 if test -d $(top_srcdir)/.git; then \
59 $(top_srcdir)/build-aux/gitlog-to-changelog --since=2008-07-27 \
61 rm -f $(distdir)/ChangeLog; \
62 mv $(distdir)/cl-t $(distdir)/ChangeLog; \
65 DIST_HOOKS += generate-changelog
68 include $(top_srcdir)/build-aux/automake.mk
69 include $(top_srcdir)/po/automake.mk
70 include $(top_srcdir)/lib/automake.mk
71 include $(top_srcdir)/doc/automake.mk
72 include $(top_srcdir)/examples/automake.mk
73 include $(top_srcdir)/src/automake.mk
74 include $(top_srcdir)/utilities/automake.mk
76 include $(top_srcdir)/tests/automake.mk
79 include $(top_srcdir)/glade/automake.mk
83 include $(top_srcdir)/perl-module/automake.mk
86 PHONY += $(DIST_HOOKS) $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS)
90 dist-hook: $(DIST_HOOKS)
92 install-data-hook: $(INSTALL_DATA_HOOKS)
94 uninstall-hook: $(UNINSTALL_DATA_HOOKS)
96 clean-local: $(CLEAN_LOCAL)
97 all-local: $(ALL_LOCAL)
98 check-local: $(CHECK_LOCAL)
100 # A convenience target to build all the binaries
101 programs: $(PROGRAMS)
103 # The following rules are from Open vSwitch. The original copyright notice
106 # Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc.
108 # Copying and distribution of this file, with or without modification,
109 # are permitted in any medium without royalty provided the copyright
110 # notice and this notice are preserved. This file is offered as-is,
111 # without warranty of any kind.
113 # If we're checked out from a Git repository, make sure that every
114 # file that is in Git is distributed.
115 ALL_LOCAL += dist-hook-git
116 dist-hook-git: distfiles
117 @if test -e $(srcdir)/.git && (git --version) >/dev/null 2>&1; then \
118 (cd $(srcdir) && git ls-files) \
119 | grep -vE '\.gitignore|README.Git|Smake' \
120 | LC_ALL=C sort -u > gitfiles; \
121 LC_ALL=C comm -1 -3 distfiles gitfiles > missing-distfiles; \
122 if test -s missing-distfiles; then \
123 echo "The distribution is missing the following files:"; \
124 cat missing-distfiles; \
128 # The following is based on commands for the Automake "distdir" target.
130 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
131 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
132 list='$(DISTFILES)'; \
133 for file in $$list; do echo $$file; done | \
134 sed -e "s|^$$srcdirstrip/||;t" \
135 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t" \
136 | LC_ALL=C sort -u > $@
137 CLEANFILES += distfiles gitfiles missing-distfiles
138 .PHONY: dist-hook-git