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.
This commit is contained in:
Chun-wei Fan 2015-10-16 12:49:18 +08:00 committed by Dan Nicholson
parent dd57ff3547
commit 56061ef3ef
2 changed files with 10 additions and 8 deletions

View file

@ -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)

8
Makefile.sources Normal file
View file

@ -0,0 +1,8 @@
pkg_config_SOURCES = \
pkg.h \
pkg.c \
parse.h \
parse.c \
rpmvercmp.c \
rpmvercmp.h \
main.c