From 06634f6309f07613cd6a086a6b383daad65192c0 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 9 Jan 2008 11:44:43 +0000 Subject: Style updates. --- src/rc/Makefile | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'src/rc/Makefile') diff --git a/src/rc/Makefile b/src/rc/Makefile index 2f1c4ca4..b6ae45a2 100644 --- a/src/rc/Makefile +++ b/src/rc/Makefile @@ -3,18 +3,17 @@ SRCS= checkpath.c fstabinfo.c mountinfo.c rc.c rc-depend.c \ rc-logger.c rc-misc.c rc-plugin.c rc-status.c rc-update.c \ runscript.c start-stop-daemon.c -SCRIPTS= version.h CLEANFILES= version.h TOPDIR= .. -LDFLAGS+= -L$(TOPDIR)/librc -L$(TOPDIR)/libeinfo +LDFLAGS+= -L${TOPDIR}/librc -L${TOPDIR}/libeinfo LDADD+= -lutil -lrc -leinfo -CFLAGS+= -I$(TOPDIR) -I$(TOPDIR)/librc -I$(TOPDIR)/libeinfo +CFLAGS+= -I${TOPDIR} -I${TOPDIR}/librc -I${TOPDIR}/libeinfo BINDIR?= /sbin -LINKDIR= $(LIBNAME)/$(PROG) +LINKDIR= ${LIBNAME}/${PROG} BINLINKS= rc-status SBINLINKS= rc-update runscript start-stop-daemon RC_BINLINKS= einfon einfo ewarnn ewarn eerrorn eerror ebegin eend ewend \ @@ -33,15 +32,16 @@ RC_SBINLINKS= mark_service_starting mark_service_started \ mark_service_coldplugged mark_service_failed \ rc-abort -include $(TOPDIR)/os.mk -CFLAGS+= -DLIB=\"$(LIBNAME)\" -include $(TOPDIR)/cc.mk -include $(TOPDIR)/prog.mk +include ${TOPDIR}/os.mk +CFLAGS+= -DLIB=\"${LIBNAME}\" +include ${TOPDIR}/cc.mk +include ${TOPDIR}/prog.mk -include $(TOPDIR)/$(TERMCAP).mk +include ${TOPDIR}/${TERMCAP}.mk LDADD+= ${LIBDL} ${LIBKVM} -include $(TOPDIR)/$(PAM).mk +include ${TOPDIR}/${PAM}.mk +${SRCS}: version.h version.h: sed -n -e 's/^VERSION =[[:space:]]*\([^[:space:]]*\).*/#define VERSION "\1\"/p' ../../Makefile > version.h if test -n "${BRANDING}"; then \ @@ -52,14 +52,14 @@ install: all ${INSTALL} -d ${DESTDIR}${BINDIR} ${INSTALL} ${PROG} ${DESTDIR}${BINDIR} ${INSTALL} -d ${DESTDIR}/bin - for x in $(BINLINKS); do ln -fs ${BINDIR}/${PROG} $(DESTDIR)/bin/$$x; done + for x in ${BINLINKS}; do ln -fs ${BINDIR}/${PROG} ${DESTDIR}/bin/$$x; done ${INSTALL} -d ${DESTDIR}/bin - for x in $(SBINLINKS); do ln -fs ${BINDIR}/${PROG} $(DESTDIR)${BINDIR}/$$x; done - $(INSTALL) -d $(DESTDIR)/$(LIBNAME)/$(PROG)/bin - for x in $(RC_BINLINKS); do ln -fs ${BINDIR}/${PROG} $(DESTDIR)/$(LIBNAME)/$(PROG)/bin/$$x; done - $(INSTALL) -d $(DESTDIR)/$(LIBNAME)/$(PROG)/sbin - for x in $(RC_SBINLINKS); do ln -fs ${BINDIR}/${PROG} $(DESTDIR)/$(LIBNAME)/$(PROG)/sbin/$$x; done - if test "$(PAM)" = pam; then \ + for x in ${SBINLINKS}; do ln -fs ${BINDIR}/${PROG} ${DESTDIR}${BINDIR}/$$x; done + ${INSTALL} -d ${DESTDIR}/${LIBNAME}/${PROG}/bin + for x in $(RC_BINLINKS); do ln -fs ${BINDIR}/${PROG} $(DESTDIR)/${LIBNAME}/${PROG}/bin/$$x; done + ${INSTALL} -d ${DESTDIR}/${LIBNAME}/${PROG}/sbin + for x in ${RC_SBINLINKS}; do ln -fs ${BINDIR}/${PROG} ${DESTDIR}/${LIBNAME}/${PROG}/sbin/$$x; done + if test "${PAM}" = pam; then \ ${INSTALL} -d ${DESTDIR}${PAMDIR}; \ - ${INSTALL} -m ${PAMMODE} start-stop-daemon.pam $(DESTDIR)${PAMDIR}/start-stop-daemon; \ + ${INSTALL} -m ${PAMMODE} start-stop-daemon.pam ${DESTDIR}${PAMDIR}/start-stop-daemon; \ fi -- cgit v1.2.3