aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-06-01 23:18:59 +0000
committerBill Nottingham <notting@redhat.com>2000-06-01 23:18:59 +0000
commit4166f3966084a35071a32565d6f51b347b64e5ad (patch)
tree97f7663c9bd6d792c341f71d8b5ebcda3a4c5f50 /Makefile
parent79c214b69cb77a945a9deed3cb4efcd28d069b58 (diff)
downloadinitscripts-4166f3966084a35071a32565d6f51b347b64e5ad.tar
initscripts-4166f3966084a35071a32565d6f51b347b64e5ad.tar.gz
initscripts-4166f3966084a35071a32565d6f51b347b64e5ad.tar.bz2
initscripts-4166f3966084a35071a32565d6f51b347b64e5ad.tar.xz
initscripts-4166f3966084a35071a32565d6f51b347b64e5ad.zip
mandir stuff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c46717f5..1e673e8e 100644
--- a/Makefile
+++ b/Makefile
@@ -3,11 +3,13 @@ ROOT=/
VERSION=$(shell awk '/Version:/ { print $$2 }' initscripts.spec)
CVSTAG = r$(subst .,-,$(VERSION))
+mandir=/usr/share/man
+
all:
(cd src; make)
install:
mkdir -p $(ROOT)/etc/profile.d $(ROOT)/sbin $(ROOT)/usr/sbin
- mkdir -p $(ROOT)/usr/man/man8
+ mkdir -p $(ROOT)$(mandir)/man8
install -m644 inittab $(ROOT)/etc
install -m644 adjtime $(ROOT)/etc
install -m755 setsysfont $(ROOT)/sbin
@@ -15,7 +17,7 @@ install:
install -m755 lang.csh $(ROOT)/etc/profile.d
install -m755 service $(ROOT)/sbin
install -m755 sys-unconfig $(ROOT)/usr/sbin
- install -m644 sys-unconfig.8 $(ROOT)/usr/man/man8
+ install -m644 sys-unconfig.8 $(ROOT)$(mandir)/man8
( if uname -m | grep -q sparc ; then \
install -m644 sysctl.conf.sparc $(ROOT)/etc/sysctl.conf ; \
else \
@@ -33,7 +35,7 @@ install:
(cd $(ROOT)/etc/sysconfig/network-scripts; \
ln -sf ../../../sbin/ifup . ; \
ln -sf ../../../sbin/ifdown . )
- (cd src; make install ROOT=$(ROOT))
+ (cd src; make install ROOT=$(ROOT) mandir=$(mandir))
mkdir -p /var/run/netreport
chown root.root /var/run/netreport
chmod og=rwx,o=rx /var/run/netreport