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

(SUBDIRS): Added run-support.

(doinstall): New target.
(dist): Partially rewritten.
parent e2d662aa
# $Id: Makefile.src,v 1.8 1994/03/05 18:15:26 ceder Exp $
# $Id: Makefile.src,v 1.9 1994/03/06 20:04:17 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -23,16 +23,32 @@
#
LK_STD
[SUBDIRS = doc scripts src # config # junk
[SUBDIRS = doc scripts src run-support # config # junk
SERVER-VER = 1.6
all: msg includes libraries binaries end-msg]
LK_DESCEND
define([dodistclean],dnl
[[ $(RM) $(GENERIC-DISTCLEAN) config.status
$(RM) lib/lib*.a
rmdir lib]])
rmdir lib
]])dnl
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)
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)
depend: $(INCLUDEDIR) msg includes
......@@ -48,30 +64,36 @@ $(srcdir)/configure: configure.in
dist: $(srcdir)/configure
[ ! -f $(srcdir)/Makefile ]
cd $(srcdir); ./mkmi
find $(srcdir) -name '#*#' -print
-$(RM) -r lyskom-$(SERVER-VER)
$(MKDIR) lyskom-$(SERVER-VER)
cp $(srcdir)/README-serverrelease lyskom-$(SERVER-VER)/README
for i in COPYING INSTALL configure configure.in Build Makefile.in ; \
do cp $(srcdir)/$$i lyskom-$(SERVER-VER)/; done
$(MKDIR) lyskom-$(SERVER-VER)/src
for i in "" /src /src/libraries /doc /scripts; do\
$(MKDIR) lyskom-$(SERVER-VER)$$i||exit 1;\
done
if [ -f $(srcdir)/README-serverrelease ] ;then \
cp $(srcdir)/README-serverrelease lyskom-$(SERVER-VER)/README;\
else\
cp $(srcdir)/README lyskom-$(SERVER-VER)/README;\
fi
for i in COPYING INSTALL configure configure.in Build Makefile.in \
Makefile.src mkmi; \
do cp $(srcdir)/$$i lyskom-$(SERVER-VER)/||exit 1; done
cp $(srcdir)/src/Makefile.in lyskom-$(SERVER-VER)/src/
$(MKDIR) lyskom-$(SERVER-VER)/src/libraries
cp $(srcdir)/src/Makefile.src lyskom-$(SERVER-VER)/src/
cp $(srcdir)/src/libraries/Makefile.in \
lyskom-$(SERVER-VER)/src/libraries/
$(MKDIR) lyskom-$(SERVER-VER)/doc
cp $(srcdir)/src/libraries/Makefile.src \
lyskom-$(SERVER-VER)/src/libraries/
for i in ADMINISTRATION Makefile.in misc_items prot-A.txt \
server-async.extend server.extend what-is-unread.swe; \
server-config.extend \
server-async.extend server.extend what-is-unread.swe \
server-config.extend Makefile.src; \
do \
cp $(srcdir)/doc/$$i lyskom-$(SERVER-VER)/doc/$i; \
cp $(srcdir)/doc/$$i lyskom-$(SERVER-VER)/doc/$i||exit 1;\
done
cp -r $(srcdir)/doc/man lyskom-$(SERVER-VER)/doc/man
cp -r $(srcdir)/scripts lyskom-$(SERVER-VER)/scripts
# Nothing in scripts should be necessary!
$(RM) lyskom-$(SERVER-VER)/scripts/import.make
for i in mkmi.m4 Makefile.src Makefile.in; do\
cp $(srcdir)/scripts/$$i lyskom-$(SERVER-VER)/scripts/||exit 1; \
done
cp -r $(srcdir)/run-support lyskom-$(SERVER-VER)/run-support
if i in libansi libcommon libisc-new libmisc regex ; do \
for i in libansi libcommon libisc-new libmisc regex ; do \
cp -r $(srcdir)/src/libraries/$$i \
lyskom-$(SERVER-VER)/src/libraries \
|| exit 1 ; \
......@@ -81,7 +103,11 @@ dist: $(srcdir)/configure
$(RM) -r lyskom-$(SERVER-VER)/src/include/ansi
cp -r $(srcdir)/db-crypt lyskom-$(SERVER-VER)
cp -r $(srcdir)/db-nocrypt lyskom-$(SERVER-VER)
find lyskom-$(SERVER-VER) -name CVS -print -exec rm -rf "{}" \; -prune
find lyskom-$(SERVER-VER) \
\( -name CVS -o -name '*~' -o -name '#*#' -o -name 'lib*.a' \
-o -name '*.o' -o -name '.#*' -o -name core \
-o -name Makefile.in2 \) \
-print -exec rm -rf "{}" \; -prune
tar cvf lyskom-$(SERVER-VER).tar lyskom-$(SERVER-VER)
$(RM) lyskom-$(SERVER-VER).tar.gz
gzip -9v lyskom-$(SERVER-VER).tar
......@@ -101,3 +127,4 @@ end-msg:
$(INCLUDEDIR):
mkdir $(INCLUDEDIR)
]
LK_DESCEND
Markdown is supported
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