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-private/makefile | |
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-private/makefile')
-rw-r--r-- | apt-private/makefile | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/apt-private/makefile b/apt-private/makefile index 09736c6d3..9a3fbdb29 100644 --- a/apt-private/makefile +++ b/apt-private/makefile @@ -8,9 +8,6 @@ HEADER_TARGETDIRS = apt-private # Bring in the default rules include ../buildlib/defaults.mak -# The library name and version (indirectly used from init.h) -include ../buildlib/libversion.mak - # The library name LIBRARY=apt-private MAJOR=0.0 @@ -18,12 +15,7 @@ MINOR=0 SLIBS=$(PTHREADLIB) -lapt-pkg CXXFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden -PRIVATES=list install download output cachefile cacheset update upgrade cmndline moo search show main utils sources -SOURCE += $(foreach private, $(PRIVATES), private-$(private).cc) -HEADERS += $(foreach private, $(PRIVATES), private-$(private).h) - -SOURCE+= acqprogress.cc -HEADERS+= acqprogress.h private-cacheset.h +SOURCE = $(wildcard *.cc) +HEADERS = $(addprefix apt-private/,$(wildcard *.h)) -HEADERS := $(addprefix apt-private/,$(HEADERS)) include $(LIBRARY_H) |