Makefile: Cleanup (LIB_SRCS): Line wrap. (LIB_INCLUDES): List only the files, automatically prefix the dir. (LIB_MANS): Likewise.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
diff --git a/ChangeLog b/ChangeLog
index 5d5dd73..f22df17 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2006-02-14 Guillem Jover <guillem@debian.org>
+ * Makefile (LIB_SRCS): Line wrap.
+ (LIB_INCLUDES): List only the files, automatically prefix the dir.
+ (LIB_MANS): Likewise.
+
+2006-02-14 Guillem Jover <guillem@debian.org>
+
* Versions: Remove optreset.
2006-02-13 Robert Millan <rmh@aybabtu.com>
diff --git a/Makefile b/Makefile
index a028db0..bdef428 100644
--- a/Makefile
+++ b/Makefile
@@ -4,11 +4,15 @@
# $Id$
#
-LIB_SRCS = arc4random.c bsd_getopt.c err.c fgetln.c inet_net_pton.c strlcat.c strlcpy.c md5c.c fmtcheck.c
+LIB_SRCS = arc4random.c bsd_getopt.c err.c fgetln.c inet_net_pton.c \
+ strlcat.c strlcpy.c md5c.c fmtcheck.c
-LIB_INCLUDES = include/bsd/err.h include/bsd/getopt.h include/bsd/ip_icmp.h include/bsd/random.h include/bsd/queue.h include/bsd/md5.h include/bsd/string.h include/bsd/bsd.h include/bsd/stdlib.h
+LIB_INCLUDES := err.h getopt.h ip_icmp.h random.h queue.h md5.h string.h \
+ bsd.h stdlib.h
+LIB_INCLUDES := $(patsubst %,include/bsd/,$(LIB_INCLUDES))
-LIB_MANS = man/arc4random.3 man/strlcpy.3 man/fgetln.3 man/fmtcheck.3
+LIB_MANS := arc4random.3 strlcpy.3 fgetln.3 fmtcheck.3
+LIB_MANS := $(patsubst %,man/,$(LIB_MANS))
LIB_STATIC_OBJS = $(LIB_SRCS:%.c=%.o)
LIB_SHARED_OBJS = $(LIB_SRCS:%.c=%.lo)