Skip to content
Snippets Groups Projects
Makefile.src 3.21 KiB
Newer Older
Per Cederqvist's avatar
Per Cederqvist committed
#
# $Id: Makefile.src,v 1.3 1993/10/16 18:08:03 ceder Exp $
Per Cederqvist's avatar
Per Cederqvist committed
# Copyright (C) 1991  Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
# 
# LysKOM is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by 
# the Free Software Foundation; either version 1, or (at your option) 
# any later version.
# 
# LysKOM is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
# 
# You should have received a copy of the GNU General Public License
# along with LysKOM; see the file COPYING.  If not, write to
# Lysator, c/o ISY, Linkoping University, S-581 83 Linkoping, SWEDEN,
# or the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, 
# MA 02139, USA.
#
# Please mail bug reports to bug-lyskom@lysator.liu.se. 
#

srcdir = @srcdir@
VPATH = @srcdir@
Per Cederqvist's avatar
Per Cederqvist committed
@STDLYSKOM@

SUBDIRS = doc scripts src # config # junk
SERVER-VER = 1.4.1

all: msg includes libraries binaries end-msg

@ALL_DESCEND@

doincludes:;
dolibraries:;
dobinaries:;
doinstall:;
dodepend:;
dopure: dorealclean
	$(RM) configure
dorealclean: dodistclean;
dodistclean: doclean
	$(RM) $(GENERIC-DISTCLEAN) config.status
doclean: domostlyclean;
domostlyclean:
	$(RM) $(GENERIC-MOSTLYCLEAN)
Per Cederqvist's avatar
Per Cederqvist committed

includes: $(INCLUDEDIR)
depend: $(INCLUDEDIR) msg includes
libraries: lib
Per Cederqvist's avatar
Per Cederqvist committed

lib:
	mkdir lib

configure: configure.in
	autoconf

distribution: distclean configure
Per Cederqvist's avatar
Per Cederqvist committed
	find . -name '#*#' -print
	-$(RM) -r lyskom-$(SERVER-VER)
	$(MKDIR) lyskom-$(SERVER-VER)
	cp README-serverrelease lyskom-$(SERVER-VER)/README
	cp COPYING INSTALL configure configure.in Build Makefile.in \
		lyskom-$(SERVER-VER)/
Per Cederqvist's avatar
Per Cederqvist committed
	$(MKDIR) lyskom-$(SERVER-VER)/src
	cp src/Makefile.in lyskom-$(SERVER-VER)/src/
Per Cederqvist's avatar
Per Cederqvist committed
	$(MKDIR) lyskom-$(SERVER-VER)/src/libraries
	cp src/libraries/Makefile.in lyskom-$(SERVER-VER)/src/libraries/
Per Cederqvist's avatar
Per Cederqvist committed
	$(MKDIR) lyskom-$(SERVER-VER)/doc
	for i in ADMINISTRATION Makefile.in misc_items prot-A.txt	\
Per Cederqvist's avatar
Per Cederqvist committed
		server-async.extend server.extend what-is-unread.swe; 	\
	do 								\
		cp doc/$$i lyskom-$(SERVER-VER)/doc/$i;			\
	done
	cp -r doc/man lyskom-$(SERVER-VER)/doc/man
	cp -r scripts lyskom-$(SERVER-VER)/scripts
	$(RM) lyskom-$(SERVER-VER)/scripts/import.make
	cp -r run-support lyskom-$(SERVER-VER)/run-support
	cp -r src/libraries/libansi lyskom-$(SERVER-VER)/src/libraries
	cp -r src/libraries/libcommon lyskom-$(SERVER-VER)/src/libraries
	cp -r src/libraries/libisc-new lyskom-$(SERVER-VER)/src/libraries
	cp -r src/libraries/libmisc lyskom-$(SERVER-VER)/src/libraries
	cp -r src/libraries/regex lyskom-$(SERVER-VER)/src/libraries
	cp -r src/server lyskom-$(SERVER-VER)/src
	cp -r src/include lyskom-$(SERVER-VER)/src/include
	cp -r db-crypt lyskom-$(SERVER-VER)
	cp -r db-nocrypt lyskom-$(SERVER-VER)
	find lyskom-$(SERVER-VER) -name CVS -print -exec rm -rf "{}" \; -prune
Per Cederqvist's avatar
Per Cederqvist committed
	tar cvf lyskom-$(SERVER-VER).tar lyskom-$(SERVER-VER)
	$(RM) lyskom-$(SERVER-VER).tar.gz
	gzip lyskom-$(SERVER-VER).tar
Per Cederqvist's avatar
Per Cederqvist committed
	$(RM) -r lyskom-$(SERVER-VER)

msg:
	@echo Top-level source directory is believed to be @TOPDIR@
	@date
	@echo

end-msg:
	@echo
	@echo Finished at
	@date

$(INCLUDEDIR):
	mkdir $(INCLUDEDIR)