diff options
author | David Kalnischkies <david@kalnischkies.de> | 2014-03-23 13:17:24 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2014-04-11 08:58:36 +0200 |
commit | 53c3a8fa16351f35b7b7d359c81dfbe36ab04444 (patch) | |
tree | 7a8b70799095f0372253f45e54a4fb22046bfd72 /apt-inst | |
parent | 291a386f1e65c40a1acb01a9a5614ad00efc509d (diff) |
use wildcard to get files in our library makefiles
The explicit listing is a pain every time you want to add a file to the
list and serves no propose as we list all files there anyway, so this is
not only easier but also documents this fact.
Git-Dch: Ignore
Diffstat (limited to 'apt-inst')
-rw-r--r-- | apt-inst/makefile | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/apt-inst/makefile b/apt-inst/makefile index da983df5f..af887bba8 100644 --- a/apt-inst/makefile +++ b/apt-inst/makefile @@ -20,15 +20,7 @@ SLIBS=$(PTHREADLIB) -lapt-pkg APT_DOMAIN:=libapt-inst$(MAJOR) LIBRARYDEPENDS=$(LIB)/libapt-pkg.so -# Source code for the contributed non-core things -SOURCE = contrib/extracttar.cc contrib/arfile.cc +SOURCE = $(wildcard *.cc */*.cc) +HEADERS = $(addprefix apt-pkg/,$(notdir $(wildcard *.h */*.h))) -# Source code for the main library -SOURCE+= filelist.cc dirstream.cc extract.cc deb/debfile.cc - -# Public header files -HEADERS = extracttar.h arfile.h filelist.h extract.h \ - dirstream.h debfile.h - -HEADERS := $(addprefix apt-pkg/,$(HEADERS)) include $(LIBRARY_H) |