Commit 7bd6e03ae0a4d2b039ba6e8fc3b53104dba24512

Guillem Jover 2006-02-14T05:26:48

Makefile: Cleanup (LIB_SRCS): Line wrap. (LIB_INCLUDES): List only the files, automatically prefix the dir. (LIB_MANS): Likewise.

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)