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

(LK_STD): Make `all' depend on includes, stamp-depend, libraries and binaries.

(stamp-depend): New target.
(depend): No longer depends on includes.
(dodistclean): Remove stamp-depend.
(dist): Remove stamp-* from the distribution.
parent f54eb7bc
# $Id: Makefile.src,v 1.10 1994/03/06 20:31:44 ceder Exp $
# $Id: Makefile.src,v 1.11 1994/03/06 22:01:28 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -22,15 +22,13 @@
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
LK_STD
[SUBDIRS = doc scripts src run-support # config # junk
SERVER-VER = 1.6
all: msg includes libraries binaries end-msg]
LK_STD([msg includes stamp-depend libraries binaries end-msg])
[SUBDIRS = doc scripts src run-support
SERVER-VER = 1.6]
define([dodistclean],dnl
[[ $(RM) $(GENERIC-DISTCLEAN) config.status
$(RM) lib/lib*.a
$(RM) lib/lib*.a stamp-depend
rmdir lib
]])dnl
dnl
......@@ -47,7 +45,6 @@ define([doinstall],dnl
]])dnl
[
includes: $(INCLUDEDIR)
depend: $(INCLUDEDIR) msg includes
libraries: lib
lib:
......@@ -56,6 +53,13 @@ lib:
$(srcdir)/configure: configure.in
autoconf $(srcdir)/configure.in > $(srcdir)/configure
# Make depend must be run once before we start to compile, but since
# it takes a long time we don't want to run it everytime somebody says
# "make". If you make big changes you should run "make depend".
stamp-depend:
$(MAKE) depend
touch stamp-depend
.PHONY: dist
dist: $(srcdir)/configure
[ ! -f $(srcdir)/Makefile ]
......@@ -102,7 +106,7 @@ dist: $(srcdir)/configure
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 Makefile.in2 -o -name 'stamp-*' \) \
-print -exec rm -rf "{}" \; -prune
tar cvf lyskom-$(SERVER-VER).tar lyskom-$(SERVER-VER)
$(RM) lyskom-$(SERVER-VER).tar.gz
......
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