During installation, don't unconditionally create an empty `modules-old' directory.
This commit is contained in:
parent
c8e67ef406
commit
e131a2ed68
|
@ -46,6 +46,7 @@ CFLAGS = @CFLAGS@
|
||||||
# the system one.
|
# the system one.
|
||||||
#CFLAGS= -DNDEBUG -g -O2 -D"FD_SETSIZE=1024"
|
#CFLAGS= -DNDEBUG -g -O2 -D"FD_SETSIZE=1024"
|
||||||
SHELL=/bin/sh
|
SHELL=/bin/sh
|
||||||
|
# `extensions' must be after `modules' for proper creation of $(moduledir).
|
||||||
SUBDIRS=libratbox modules extensions src tools ssld bandb doc help
|
SUBDIRS=libratbox modules extensions src tools ssld bandb doc help
|
||||||
CLEANDIRS = ${SUBDIRS}
|
CLEANDIRS = ${SUBDIRS}
|
||||||
RSA_FILES=rsa_respond/README rsa_respond/respond.c rsa_respond/Makefile
|
RSA_FILES=rsa_respond/README rsa_respond/respond.c rsa_respond/Makefile
|
||||||
|
@ -127,9 +128,6 @@ install-mkdirs:
|
||||||
-@if test ! -d $(DESTDIR)$(mandir); then \
|
-@if test ! -d $(DESTDIR)$(mandir); then \
|
||||||
mkdir $(DESTDIR)$(mandir); \
|
mkdir $(DESTDIR)$(mandir); \
|
||||||
fi
|
fi
|
||||||
-@if test ! -d $(DESTDIR)$(moduledir); then \
|
|
||||||
mkdir $(DESTDIR)$(moduledir); \
|
|
||||||
fi
|
|
||||||
-@if test ! -d $(DESTDIR)$(helpdir); then \
|
-@if test ! -d $(DESTDIR)$(helpdir); then \
|
||||||
mkdir $(DESTDIR)$(helpdir); \
|
mkdir $(DESTDIR)$(helpdir); \
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -153,9 +153,6 @@ libmodules.a: $(S_OBJS) static_modules.o
|
||||||
|
|
||||||
install-mkdirs:
|
install-mkdirs:
|
||||||
@echo "ircd: setting up modular directory structure"
|
@echo "ircd: setting up modular directory structure"
|
||||||
-@if test ! -d $(DESTDIR)$(moduledir); then \
|
|
||||||
mkdir $(DESTDIR)$(moduledir); \
|
|
||||||
fi
|
|
||||||
-@if test -d $(DESTDIR)$(moduledir)-old; then \
|
-@if test -d $(DESTDIR)$(moduledir)-old; then \
|
||||||
rm -rf $(DESTDIR)$(moduledir)-old; \
|
rm -rf $(DESTDIR)$(moduledir)-old; \
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue