aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-01-14 05:32:39 +0000
committerMike Frysinger <vapier@gentoo.org>2008-01-14 05:32:39 +0000
commit09b958b99d1303cfd8c37047a7decc1a4312a9f2 (patch)
treeee6d8f29749b5a604f697c5af4c71fb682bba4cb
parent6aab712cb4220c5a8471ba581c06676af19fae07 (diff)
add shortcuts for generating symlinks
-rw-r--r--src/rc/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rc/Makefile b/src/rc/Makefile
index 45212e74..1168b3f2 100644
--- a/src/rc/Makefile
+++ b/src/rc/Makefile
@@ -6,7 +6,7 @@ SRCS= checkpath.c fstabinfo.c mountinfo.c rc.c rc-depend.c \
CLEANFILES= version.h
LDFLAGS+= -L../librc -L../libeinfo
-LDADD+= -lutil -lrc -leinfo
+LDADD+= -lutil -lrc -leinfo -Wl,-rpath,../librc -Wl,-rpath,../libeinfo
CFLAGS+= -I../includes -I../librc -I../libeinfo
BINDIR?= /sbin
@@ -62,3 +62,8 @@ install: all
${INSTALL} -d ${DESTDIR}${PAMDIR}; \
${INSTALL} -m ${PAMMODE} start-stop-daemon.pam ${DESTDIR}${PAMDIR}/start-stop-daemon; \
fi
+
+ALL_LINKS = $(BINLINKS) $(SBINLINKS) $(RC_BINLINKS) $(RC_SBINLINKS)
+CLEANFILES += $(ALL_LINKS)
+links: rc
+ for l in $(ALL_LINKS) ; do ln -sf rc $$l || exit $$? ; done