1 ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
7 # Normally we'd want glib to be part of DIST_SUBDIRS unconditionally,
8 # but distclean gets broken unless we always run glib's configure
9 SUBDIRS = $(GLIB_SUBDIR) . check
10 DIST_SUBDIRS = $(SUBDIRS)
12 # Escape paths properly on windows
15 -DPKG_CONFIG_PC_PATH="\"$(subst /,\/,$(pc_path))\"" \
16 -DPKG_CONFIG_SYSTEM_INCLUDE_PATH="\"$(subst /,\/,$(system_include_path))\"" \
17 -DPKG_CONFIG_SYSTEM_LIBRARY_PATH="\"$(subst /,\/,$(system_library_path))\""
20 -DPKG_CONFIG_PC_PATH="\"$(pc_path)\"" \
21 -DPKG_CONFIG_SYSTEM_INCLUDE_PATH="\"$(system_include_path)\"" \
22 -DPKG_CONFIG_SYSTEM_LIBRARY_PATH="\"$(system_library_path)\""
30 bin_PROGRAMS = pkg-config
31 pkg_config_LDADD = $(GLIB_LIBS)
40 host_tool = $(host)-pkg-config$(EXEEXT)
42 cd $(DESTDIR)$(bindir) && $(LN) pkg-config$(EXEEXT) $(host_tool)
44 cd $(DESTDIR)$(bindir) && rm -f $(host_tool)
48 m4dir = $(datadir)/aclocal
50 dist_doc_DATA = pkg-config-guide.html
51 dist_man_MANS = pkg-config.1
52 EXTRA_DIST = README.win32
56 -$(MAKE) $(AM_MAKEFLAGS) -k check
57 $(GCOV) $(pkg_config_SOURCES)
58 CLEANFILES = *.gcda *.gcno *.gcov
60 # Since we can't always have glib in DIST_SUBDIRS, we need to make sure
61 # glib is configured when we want to run dist. Unfortunately, there's no
62 # DIST_CONFIGURE_FLAGS.
63 DISTCHECK_CONFIGURE_FLAGS = --with-internal-glib
66 @echo "error: --with-internal-glib is required to include glib in dist"