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 --srcdir=$(top_srcdir) \
62 > $(distdir)/cl-t || exit 1; \
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
77 include $(top_srcdir)/tests/automake.mk
80 include $(top_srcdir)/glade/automake.mk
84 include $(top_srcdir)/perl-module/automake.mk
87 PHONY += $(DIST_HOOKS) $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS)
91 dist-hook: $(DIST_HOOKS)
93 install-data-hook: $(INSTALL_DATA_HOOKS)
95 uninstall-hook: $(UNINSTALL_DATA_HOOKS)
97 clean-local: $(CLEAN_LOCAL)
98 all-local: $(ALL_LOCAL)
99 check-local: $(CHECK_LOCAL)
101 # A convenience target to build all the binaries
102 programs: $(PROGRAMS)
104 # The following rules are from Open vSwitch. The original copyright notice
107 # Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc.
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.
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; \
129 # The following is based on commands for the Automake "distdir" target.
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