summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-02-16 08:08:20 +0000
committerThomas Bushnell <thomas@gnu.org>1999-02-16 08:08:20 +0000
commit68bdc004235a7ecd03bb45932ce935ea1d110b49 (patch)
tree19bafbbe698c02599acb686894dab28b8c878c27 /Makefile
parentcb37680cba43ab2803e376cef23c4381bbd4f034 (diff)
Tue Feb 16 02:31:06 1999 Thomas Bushnell, BSG <tb@mit.edu>
* Makeconf ($(libname).so): Include $(hurd-version) as part of the soname. ($(libdir)/$(libname).so.$(hurd-version)): New rule. ($(libdir)/$(libname).so): Only create a symlink to the version-numbered name. (install) [makemode == library]: Add the versioned name $(libdir)/$(libname.so).$(hurd-version). * version.h.in: New file. * versioh.h, sh-version.sed: Deleted files. * Makeconf (hurd-version): New variable. * Makefile ($(subdirs)): Depend on version.h. (version.h): New rule. (DIST_FILES): Delete version.h and sh-version.sed. Add version.h.in.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ef7a6f8e..49398695 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
#
-# Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998 Free Software Foundation
+# Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999 Free Software Foundation
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
@@ -22,7 +22,7 @@ include ./Makeconf
DIST_FILES = COPYING Makeconf config.make.in configure.in configure \
hurd.boot build.mk.in build.mkcf.in aclocal.m4 \
- README NEWS tasks INSTALL INSTALL-cross version.h sh-version.sed
+ README NEWS tasks INSTALL INSTALL-cross version.h.in
## Subdirectories of this directory should all be mentioned here
@@ -58,6 +58,11 @@ working-prog-subdirs := $(filter-out \
$(prog-subdirs))
+$(subdirs): version.h
+
+version.h: version.h.in
+ sed -e 's/MASTER_HURD_VERSION/\"$(hurd-version)\"/' < $< > $@
+
## GNU Coding Standards targets (not all are here yet), and some other
## similar sorts of things