death-to-pinstall-20060801
[openafs.git] / src / dir / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
4 # This software has been released under the terms of the IBM Public
5 # License.  For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10
11 all: \
12         ${TOP_LIBDIR}/libdir.a \
13         depinstall
14
15 depinstall: \
16         ${TOP_INCDIR}/afs/dir.h 
17
18 ${TOP_INCDIR}/afs/dir.h: dir.h
19         ${INSTALL_DATA} $? $@
20
21 ${TOP_LIBDIR}/libdir.a: libdir.a
22         ${INSTALL_DATA} $? $@
23
24 libdir.a: buffer.o dir.o salvage.o AFS_component_version_number.o
25         $(RM) -f $@
26         $(AR) crv $@ buffer.o dir.o salvage.o  AFS_component_version_number.o
27         $(RANLIB) $@
28
29 test: 
30         cd test; $(MAKE)
31
32 buffer.o: buffer.c
33
34 dir.o: dir.c dir.h
35
36 salvage.o: salvage.c dir.h
37
38
39 #
40 # Install targets
41 #
42 install: libdir.a dir.h
43         ${INSTALL} -d ${DESTDIR}${libdir}/afs
44         ${INSTALL} -d ${DESTDIR}${includedir}/afs
45         ${INSTALL_DATA} libdir.a ${DESTDIR}${libdir}/afs/libdir.a
46         ${INSTALL_DATA} dir.h ${DESTDIR}${includedir}/afs/dir.h
47
48 dest: libdir.a dir.h
49         ${INSTALL} -d ${DEST}/lib/afs
50         ${INSTALL} -d ${DEST}/include/afs
51         ${INSTALL_DATA} libdir.a ${DEST}/lib/afs/libdir.a
52         ${INSTALL_DATA} dir.h ${DEST}/include/afs/dir.h
53
54 #
55 # Misc. targets
56 #
57 clean:
58         $(RM) -f *.o *.a core AFS_component_version_number.c
59
60 include ../config/Makefile.version