Commit 1a9ed9c8 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

New method to set TOPDIR.

parent 4cc145a2
#!/bin/sh
# $Id: Config,v 1.6 1991/09/08 02:14:33 ceder Exp $
# $Id: Config,v 1.7 1991/09/08 21:05:05 ceder Exp $
x=
......@@ -22,23 +22,25 @@ esac
case "$x" in
error) false;;
*)
for i in `find . -type d -print`
do echo TOPDIR=`pwd` > $i/Topdir.make
done
rm -f scripts/import.make
ln -s ../config/${x}-config.h include/m-config.h
ln -s ../config/${x}-defs.make scripts/import.make
ln -s ../src/include/ansi/${x} include/ansi
cd include/ansi
cat links | while read link target; do \
echo ${link}; \
rm -f ${link};
[ "" = "${target}" ] && target=Templates; \
ln -s ../${target}/${link} ${link}; \
cat links | while read link target; do
rm -f ${link}
[ "" = "${target}" ] && target=Templates
ln -s ../${target}/${link} ${link}
done
cd sys
cat links | while read link target; do \
echo ${link}; \
rm -f ${link}; \
[ "" = "${target}" ] && target=Templates; \
ln -s ../../${target}/sys/${link} ${link}; \
cat links | while read link target; do
rm -f ${link};
[ "" = "${target}" ] && target=Templates;
ln -s ../../${target}/sys/${link} ${link};
done;;
esac
TOPDIR := $(shell pwd)
include Topdir.make
SCRIPTDIR = $(TOPDIR)/scripts
include $(SCRIPTDIR)/import.make
......
TOPDIR = /usr/lyskom
include Topdir.make
SCRIPTDIR = $(TOPDIR)/scripts
include $(SCRIPTDIR)/import.make
......
# $Id: balance-defs.make,v 1.2 1991/09/03 22:11:32 ceder Exp $
# $Id: balance-defs.make,v 1.3 1991/09/08 21:09:06 ceder Exp $
# This file is included by all Makefiles in the LysKOM hierarchy.
# It gives default values for all variables that is normally used.
# TOPDIR and SCRIPTDIR must be set before this file is included.
......@@ -40,7 +40,7 @@ LYSKOMUSRBIN = /usr/local/bin
GENERIC-CLEAN = *~ *.o lib*.a dependencies core TAGS temp-Makefile \
temp-?-Makefile
temp-?-Makefile Topdir.make
EXPORTS =
......
# $Id: sun4os4-defs.make,v 1.2 1991/09/03 22:11:30 ceder Exp $
# $Id: sun4os4-defs.make,v 1.3 1991/09/08 21:09:02 ceder Exp $
# This file is included by all Makefiles in the LysKOM hierarchy.
# It gives default values for all variables that is normally used.
# TOPDIR and SCRIPTDIR must be set before this file is included.
......@@ -41,7 +41,7 @@ LYSKOMUSRBIN = /usr/local/bin
GENERIC-CLEAN = *~ *.o lib*.a dependencies core TAGS temp-Makefile \
temp-?-Makefile
temp-?-Makefile Topdir.make
EXPORTS =
......
TOPDIR = /usr/lyskom
include Topdir.make
SCRIPTDIR = $(TOPDIR)/scripts
include $(SCRIPTDIR)/import.make
......
TOPDIR = /usr/lyskom/src
include Topdir.make
SCRIPTDIR = $(TOPDIR)/scripts
include $(SCRIPTDIR)/import.make
......
TOPDIR = /usr/lyskom
include Topdir.make
SCRIPTDIR = $(TOPDIR)/scripts
include $(SCRIPTDIR)/import.make
......
TOPDIR = /usr/lyskom/src
include Topdir.make
SCRIPTDIR = $(TOPDIR)/scripts
include $(SCRIPTDIR)/import.make
......
TOPDIR = /usr/lyskom
include Topdir.make
SCRIPTDIR = $(TOPDIR)/scripts
include $(SCRIPTDIR)/import.make
......
TOPDIR = /usr/lyskom/src
include Topdir.make
SCRIPTDIR = $(TOPDIR)/scripts
include $(SCRIPTDIR)/import.make
......
TOPDIR = /usr/lyskom/src
include Topdir.make
SCRIPTDIR = $(TOPDIR)/scripts
include $(SCRIPTDIR)/import.make
......
TOPDIR = /usr/lyskom/src
include Topdir.make
SCRIPTDIR = $(TOPDIR)/scripts
include $(SCRIPTDIR)/import.make
......
TOPDIR = /usr/lyskom/src
include Topdir.make
SCRIPTDIR = $(TOPDIR)/scripts
include $(SCRIPTDIR)/import.make
......@@ -14,13 +14,13 @@ all: $(LIBRARIES)
client-dir:
mkdir client-dir
ln -s `echo $(LIBOBJS) $(INSTALL-HDRS) dependencies| tr ' ' '\012' | \
sed 's/.o$$/.c/' | sed 's:^:\.\./:' ` client-dir/
ln -s `echo $(LIBOBJS) $(INSTALL-HDRS) dependencies Topdir.make | \
tr ' ' '\012' | sed 's/.o$$/.c/' | sed 's:^:\.\./:' ` client-dir/
server-dir:
mkdir server-dir
ln -s `echo $(LIBOBJS) $(INSTALL-HDRS) dependencies| tr ' ' '\012' | \
sed 's/.o$$/.c/' | sed 's:^:\.\./:' ` server-dir/
ln -s `echo $(LIBOBJS) $(INSTALL-HDRS) dependencies Topdir.make | \
tr ' ' '\012' | sed 's/.o$$/.c/' | sed 's:^:\.\./:' ` server-dir/
.PHONY: liblyskom-server.a
liblyskom-server.a: server-dir
......
TOPDIR = /usr/lyskom/src
include Topdir.make
SCRIPTDIR = $(TOPDIR)/scripts
include $(SCRIPTDIR)/import.make
......
# $Id: Makefile,v 0.11 1991/09/01 21:26:14 linus Exp $
# $Id: Makefile,v 0.12 1991/09/08 21:08:47 ceder Exp $
TOPDIR = /usr/lyskom/src
include Topdir.make
SCRIPTDIR = $(TOPDIR)/scripts
include $(SCRIPTDIR)/import.make
......
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