Commit fe7dadc2 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(doinstall): Use mkinstalldirs.

parent a54e202d
# $Id: Makefile.src,v 1.9 1994/03/06 20:04:17 ceder Exp $
# $Id: Makefile.src,v 1.10 1994/03/06 20:31:44 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -37,17 +37,13 @@ dnl
dnl Most of the real installation is done from various other Makefiles, but
dnl most directories are created here.
define([doinstall],dnl
[[ [ -d $(prefix) ] || mkdir $(prefix)
[ -d $(exec_prefix) ] || mkdir $(exec_prefix)
[ -d $(bindir) ] || mkdir $(bindir)
[ -d $(dbdir) ] || mkdir $(dbdir)
[[ $(SCRIPTDIR)/mkinstalldirs $(prefix) $(exec_prefix) $(bindir) $(dbdir)\
$(etcdir) $(coredir)
chmod 700 $(dbdir)
if [ ! -f $(dbdir)/lyskomd-data ] && [ ! -f $(dbdir)/lyskomd-texts ];\
then cp $(srcdir)/db-crypt/db/lyskomd-data $(dbdir)/lyskomd-data && \
cp $(srcdir)/db-crypt/db/lyskomd-texts $(dbdir)/lyskomd-texts ;\
else true; fi
[ -d $(etcdir) ] || mkdir $(etcdir)
[ -d $(coredir) ] || mkdir $(coredir)
]])dnl
[
includes: $(INCLUDEDIR)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment