From 56061ef3efdb74c04a852af1cce44df501438a2b Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Fri, 16 Oct 2015 12:49:18 +0800 Subject: build: Split Out Source Listing Move the source listing into another Makefile module so that it can be shared with other Makefile-based build mechanisms. --- Makefile.am | 10 ++-------- Makefile.sources | 8 ++++++++ 2 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 Makefile.sources diff --git a/Makefile.am b/Makefile.am index e46c798..be35ee2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -29,14 +29,8 @@ AM_CFLAGS = \ bin_PROGRAMS = pkg-config pkg_config_LDADD = $(GLIB_LIBS) -pkg_config_SOURCES= \ - pkg.h \ - pkg.c \ - parse.h \ - parse.c \ - rpmvercmp.c \ - rpmvercmp.h \ - main.c + +include Makefile.sources if HOST_TOOL host_tool = $(host)-pkg-config$(EXEEXT) diff --git a/Makefile.sources b/Makefile.sources new file mode 100644 index 0000000..62a3f41 --- /dev/null +++ b/Makefile.sources @@ -0,0 +1,8 @@ +pkg_config_SOURCES = \ + pkg.h \ + pkg.c \ + parse.h \ + parse.c \ + rpmvercmp.c \ + rpmvercmp.h \ + main.c -- cgit v1.2.1