diff --git a/Makefile.top.in b/Makefile.top.in index d0cadd1..98b1b12 100644 --- a/Makefile.top.in +++ b/Makefile.top.in @@ -8,6 +8,7 @@ YACC=@YACC@ prefix=@prefix@ exec_prefix=@exec_prefix@ +sysconfdir=@sysconfdir@ sbindir=@sbindir@ libdir=@libdir@ diff --git a/config/Makefile.in b/config/Makefile.in index 9fae536..bc1e382 100644 --- a/config/Makefile.in +++ b/config/Makefile.in @@ -48,6 +48,9 @@ clean: rm -f ${TARGETS} *~ *.o testprog config.tab.c config.tab.h config.c install: - if [ ! -f ${DESTDIR}/etc/fence_virt.conf ]; then \ - install -m 0644 example.conf ${DESTDIR}/etc/fence_virt.conf; \ + if [ ! -d ${DESTDIR}/${sysconfdir} ]; then \ + install -d ${DESTDIR}/${sysconfdir} ; \ + fi + if [ ! -f ${DESTDIR}/${sysconfdir}/fence_virt.conf ]; then \ + install -m 0644 example.conf ${DESTDIR}/${sysconfdir}/fence_virt.conf; \ fi