source: trunk/packs/update/Makefile @ 12279

Revision 12279, 1.3 KB checked in by ghudson, 26 years ago (diff)
IRIX 5.3 is gone; don't ignore mkdir -p exit status.
Line 
1# $Id: Makefile,v 1.8 1998-12-26 15:51:54 ghudson Exp $
2
3SHELL=/bin/sh
4UPDATE=/usr/athena/lib/update
5CFLAGS=-g
6
7all: upvers
8        cd os/${OS} && ${MAKE} $@
9
10upvers: upvers.o
11        ${CC} ${LDFLAGS} -o upvers upvers.o ${LIBS}
12
13check:
14        cd os/${OS} && ${MAKE} $@
15
16# We're going to cheat and rely on the state of the source tree to find version
17# scripts in vers; the alternative is editing this Makefile for every patch
18# release, which would make it very hard to track actual changes to this file.
19install:
20        mkdir -p ${DESTDIR}${UPDATE}
21        install -c -m 0555 do-update.sh ${DESTDIR}${UPDATE}/do-update
22        install -c -m 0555 finish-update.sh ${DESTDIR}${UPDATE}/finish-update
23        install -c -m 0555 update-environment.sh \
24                                ${DESTDIR}${UPDATE}/update-environment
25        install -c -m 0555 update_ws.sh ${DESTDIR}/update_ws
26        install -c -m 0555 upvers ${DESTDIR}${UPDATE}
27        rm -f ${DESTDIR}/auto_update
28        ln -s update_ws ${DESTDIR}/auto_update
29        cd os/${OS} && ${MAKE} $@
30        install -c -m 0555 vers/irix52-53 ${DESTDIR}${UPDATE}
31        install -c -m 0555 vers/solaris24-251 ${DESTDIR}${UPDATE}
32        install -c -m 0555 vers/solaris251-26 ${DESTDIR}${UPDATE}
33        for i in vers/*.*.*; do \
34                install -c -m 0555 $$i ${DESTDIR}${UPDATE}; \
35        done
36
37clean:
38        rm -f upvers.o upvers
39        cd os/${OS} && ${MAKE} $@
40
41distclean:
42        rm -f upvers.o upvers
43        cd os/${OS} && ${MAKE} $@
Note: See TracBrowser for help on using the repository browser.