From 09b958b99d1303cfd8c37047a7decc1a4312a9f2 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 14 Jan 2008 05:32:39 +0000 Subject: [PATCH] add shortcuts for generating symlinks --- src/rc/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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