Fix package name and install locations
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
This commit is contained in:
parent
21dab5b24c
commit
9931f5f4e7
@ -35,11 +35,11 @@ fence_virt: ${fence_virt_SOURCES:.c=.o}
|
||||
$(CC) $(CFLAGS) -c -o $@ $^ $(INCLUDES)
|
||||
|
||||
install: all
|
||||
if [ ! -d ${sbindir} ]; then \
|
||||
install -d ${sbindir} ; \
|
||||
if [ ! -d ${DESTDIR}/${sbindir} ]; then \
|
||||
install -d ${DESTDIR}/${sbindir} ; \
|
||||
fi
|
||||
install -m755 ${TARGET} ${sbindir}
|
||||
ln -snf ${sbindir}/${TARGET} ${sbindir}/${LINK}
|
||||
install -m755 ${TARGET} ${DESTDIR}/${sbindir}
|
||||
cp -a ${LINK} ${DESTDIR}/${sbindir}
|
||||
|
||||
clean:
|
||||
rm -f ${TARGET} ${LINK} *.o *.d *~
|
||||
|
@ -48,6 +48,6 @@ clean:
|
||||
rm -f ${TARGETS} *~ *.o testprog config.tab.c config.tab.h config.c
|
||||
|
||||
install:
|
||||
if [ ! -f /etc/fence_virt.conf ]; then \
|
||||
install -m 0644 example.conf /etc/fence_virt.conf; \
|
||||
if [ ! -f ${DESTDIR}/etc/fence_virt.conf ]; then \
|
||||
install -m 0644 example.conf ${DESTDIR}/etc/fence_virt.conf; \
|
||||
fi
|
||||
|
@ -2,7 +2,7 @@
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ(2.59)
|
||||
AC_INIT(fence_virt, 0.1, lon@metamorphism.com)
|
||||
AC_INIT(fence-virt, 0.1, lon@metamorphism.com)
|
||||
AC_CONFIG_SRCDIR([server/main.c])
|
||||
AC_CONFIG_HEADER([include/config.h])
|
||||
|
||||
|
@ -115,15 +115,15 @@ checkpoint.so: ${checkpoint_so_SOURCES:.c=.o}
|
||||
$(CC) $(CFLAGS) -c -o $@ $^ $(INCLUDES)
|
||||
|
||||
install: all
|
||||
if [ ! -d ${sbindir} ]; then \
|
||||
install -d ${sbindir} ; \
|
||||
if [ ! -d ${DESTDIR}/${sbindir} ]; then \
|
||||
install -d ${DESTDIR}/${sbindir} ; \
|
||||
fi
|
||||
install -m755 ${TARGETS} ${sbindir}
|
||||
install -m755 ${TARGETS} ${DESTDIR}/${sbindir}
|
||||
ifeq ($(with_modules),yes)
|
||||
if [ ! -d ${MODULE_PATH} ]; then \
|
||||
install -d ${MODULE_PATH} ; \
|
||||
if [ ! -d ${DESTDIR}/${MODULE_PATH} ]; then \
|
||||
install -d ${DESTDIR}/${MODULE_PATH} ; \
|
||||
fi
|
||||
install -m755 ${MODULES} ${MODULE_PATH}
|
||||
install -m755 ${MODULES} ${DESTDIR}/${MODULE_PATH}
|
||||
endif
|
||||
|
||||
clean:
|
||||
|
Loading…
Reference in New Issue
Block a user