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)\"
19 AM_CFLAGS+=-Wall -W -Wwrite-strings -Wstrict-prototypes \
20 -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes
24 @$(MKDIR_P) `dirname $@`
25 $(AM_V_GEN)./src/language/lexer/q2c$(EXEEXT_FOR_BUILD) $< $@
27 $(all_q_sources:.q=.c): src/language/lexer/q2c$(EXEEXT_FOR_BUILD)
30 pkgsysconfdir = $(sysconfdir)/$(PACKAGE)
33 EXTRA_DIST = ONEWS pspp-mode.el
39 ACLOCAL_AMFLAGS = -I m4 -I gl/m4
48 UNINSTALL_DATA_HOOKS =
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)
60 if test -d $(top_srcdir)/.git; then \
61 $(top_srcdir)/build-aux/gitlog-to-changelog --since=2008-07-27 \
63 rm -f $(distdir)/ChangeLog; \
64 mv $(distdir)/cl-t $(distdir)/ChangeLog; \
67 DIST_HOOKS += generate-changelog
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
78 include $(top_srcdir)/tests/automake.mk
81 include $(top_srcdir)/glade/automake.mk
85 include $(top_srcdir)/perl-module/automake.mk
88 PHONY += $(DIST_HOOKS) $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS)
92 dist-hook: $(DIST_HOOKS)
94 install-data-hook: $(INSTALL_DATA_HOOKS)
96 uninstall-hook: $(UNINSTALL_DATA_HOOKS)
98 clean-local: $(CLEAN_LOCAL)
99 all-local: $(ALL_LOCAL)
100 check-local: $(CHECK_LOCAL)
102 # A convenience target to build all the binaries
103 programs: $(PROGRAMS)
105 # The following rules are from Open vSwitch. The original copyright notice
108 # Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc.
110 # Copying and distribution of this file, with or without modification,
111 # are permitted in any medium without royalty provided the copyright
112 # notice and this notice are preserved. This file is offered as-is,
113 # without warranty of any kind.
115 # If we're checked out from a Git repository, make sure that every
116 # file that is in Git is distributed.
117 ALL_LOCAL += dist-hook-git
118 dist-hook-git: distfiles
119 @if test -e $(srcdir)/.git && (git --version) >/dev/null 2>&1; then \
120 (cd $(srcdir) && git ls-files) \
121 | grep -vE '\.gitignore|README.Git|Smake' \
122 | LC_ALL=C sort -u > gitfiles; \
123 LC_ALL=C comm -1 -3 distfiles gitfiles > missing-distfiles; \
124 if test -s missing-distfiles; then \
125 echo "The distribution is missing the following files:"; \
126 cat missing-distfiles; \
130 # The following is based on commands for the Automake "distdir" target.
132 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
133 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
134 list='$(DISTFILES)'; \
135 for file in $$list; do echo $$file; done | \
136 sed -e "s|^$$srcdirstrip/||;t" \
137 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t" \
138 | LC_ALL=C sort -u > $@
139 CLEANFILES += distfiles gitfiles missing-distfiles
140 .PHONY: dist-hook-git