cmd: Tidy up -help output
[openafs.git] / src / bu_utils / Makefile.in
index afe22bf..4330472 100644 (file)
@@ -7,32 +7,34 @@
 
 srcdir=@srcdir@
 include @TOP_OBJDIR@/src/config/Makefile.config
+include @TOP_OBJDIR@/src/config/Makefile.lwp
+
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
 
 all: fms
 
 FMSLIBS=${TOP_LIBDIR}/libcmd.a \
-       ${TXLIBS} \
         ${TOP_LIBDIR}/libusd.a \
-       ${TOP_LIBDIR}/libtermlib.a ${XLIBS} \
+       ${XLIBS} \
        ${TOP_LIBDIR}/util.a
 
 fms: fms.o
-       ${CC} ${LDFLAGS} -o fms fms.o ${FMSLIBS}
+       $(AFS_LDRULE) fms.o ${FMSLIBS} $(LIB_roken)
 
 fms.o:  fms.c AFS_component_version_number.o
 
-install: ${DESTDIR}${sbindir}/fms
+install: fms
+       ${INSTALL} -d ${DESTDIR}${sbindir}
+       ${INSTALL_PROGRAM} fms ${DESTDIR}${sbindir}/fms
 
-${DEST}/etc/fms: fms
-       ${INSTALL} $? $@
+dest: fms
+       ${INSTALL} -d ${DEST}/etc
+       ${INSTALL_PROGRAM} fms ${DEST}/etc/fms
 
 clean:
        $(RM) -f *.o fms AFS_component_version_number.c
 
 include ../config/Makefile.version
-
-${DESTDIR}${sbindir}/fms: fms
-       ${INSTALL} $? $@
-
-dest: ${DEST}/etc/fms
-