Ticket #2129: fix build with static GLib.
[midnight-commander.git] / Makefile.am
blobd971d339d40206a16402fc2cedb7b45b7a8efd39
1 ## Process this file with automake to create Makefile.in.
2 AUTOMAKE_OPTIONS = 1.5
4 SUBDIRS = intl po lib src doc contrib misc
6 if HAVE_TESTS
7     SUBDIRS += tests
8 endif
10 EXTRA_DIST = 
12 dist_noinst_SCRIPTS = build-glib2.sh
14 dist_noinst_HEADERS = $(top_srcdir)/version.h
16 ACLOCAL_AMFLAGS = -I m4
18 CONFIG_STATUS_DEPENDENCIES = $(top_srcdir)/version.h
20 .PHONY: update-version
22 update-version:
23         @if test -x $(top_srcdir)/maint/utils/version.sh; then \
24             $(top_srcdir)/maint/utils/version.sh "$(top_srcdir)" 2>&1 >/dev/null; \
25         else \
26             if test ! -e $(top_srcdir)/version.h; then \
27                 echo "File not found: $(top_srcdir)/maint/utils/version.sh"; \
28                 exit 1; \
29             fi; \
30         fi
32 $(top_srcdir)/version.h: update-version