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

(SERVER-VER): Definition removed.

(dodistclean): Remove makedist.
(dist): Use makedist instead of a long embedded shellscript.
(makedist): New target, built from scripits/makedist.sh.
parent fbbf4559
# $Id: Makefile.src,v 1.24 1994/11/19 14:48:41 ceder Exp $
# $Id: Makefile.src,v 1.25 1994/12/31 11:31:06 ceder Exp $
# Copyright (C) 1991, 1993, 1994 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -23,12 +23,11 @@
#
LK_STD([msg includes stamp-depend libraries binaries end-msg])
[SUBDIRS = doc scripts src run-support
SERVER-VER = 1.6.6]
[SUBDIRS = doc scripts src run-support]
define([dodistclean],dnl
[[ $(RM) $(GENERIC-DISTCLEAN) config.status
$(RM) lib/lib*.a stamp-depend
$(RM) lib/lib*.a stamp-depend *.tmp makedist
rmdir lib
]])dnl
dnl
......@@ -61,62 +60,20 @@ stamp-depend:
touch stamp-depend
.PHONY: dist
dist: $(srcdir)/configure
[ ! -f $(srcdir)/Makefile ]
cd $(srcdir); ./mkmi
-$(RM) -r lyskom-$(SERVER-VER)
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 Makefile.in \
Makefile.src mkmi NEWS; \
do cp $(srcdir)/$$i lyskom-$(SERVER-VER)/||exit 1; done
cp $(srcdir)/src/Makefile.in lyskom-$(SERVER-VER)/src/
cp $(srcdir)/src/Makefile.src lyskom-$(SERVER-VER)/src/
cp $(srcdir)/src/libraries/Makefile.in \
lyskom-$(SERVER-VER)/src/libraries/
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 Makefile.src; \
do \
cp $(srcdir)/doc/$$i lyskom-$(SERVER-VER)/doc/$i||exit 1;\
done
cp -r $(srcdir)/doc/man lyskom-$(SERVER-VER)/doc/man
$(RM) -r lyskom-$(SERVER-VER)/doc/man/man?
for i in mkmi.m4 Makefile.src Makefile.in mkinstalldirs; do\
cp $(srcdir)/scripts/$$i lyskom-$(SERVER-VER)/scripts/||exit 1; \
done
cp -r $(srcdir)/run-support lyskom-$(SERVER-VER)/run-support
for i in libansi libcommon libisc-new libmisc regex ; do \
cp -r $(srcdir)/src/libraries/$$i \
lyskom-$(SERVER-VER)/src/libraries \
|| exit 1 ; \
done
cp -r $(srcdir)/src/server lyskom-$(SERVER-VER)/src
$(RM) lyskom-$(SERVER-VER)/src/server/cache-database.h
$(RM) lyskom-$(SERVER-VER)/src/server/cache-database.c
$(RM) lyskom-$(SERVER-VER)/src/server/cache.c
cp -r $(srcdir)/src/include lyskom-$(SERVER-VER)/src/include
$(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 -o -name '*~' -o -name '#*#' -o -name 'lib*.a' \
-o -name '*.o' -o -name '.#*' -o -name core \
-o -name Makefile.in2 -o -name 'stamp-*' -o -name 'TAGS' \
-o -name '*.orig' \) \
-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
$(RM) -r lyskom-$(SERVER-VER)
dist: $(srcdir)/configure makedist
srcdir="$(srcdir)" RM="$(RM)" ./makedist
makedist: $(srcdir)/scripts/makedist.sh $(srcdir)/versions
$(RM) $@.tmp
echo '#!/bin/sh' > $@.tmp
echo '# Do not edit -- this file is generated automatically' >> $@.tmp
sed 's/\$$(SERVER-VER)/'`sed -n 's/SERVER-VERSION: //p' \
<$(srcdir)/versions`/g \
< $(srcdir)/scripts/makedist.sh >> $@.tmp
echo '# Do not edit -- this file is generated automatically' >> $@.tmp
chmod 555 $@.tmp
$(RM) $@
mv $@.tmp $@
.PHONY: msg
msg:
......
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