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

New method to set TOPDIR.

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