Build system: Move install definitions to include
[openafs.git] / src / libacl / 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 include @TOP_OBJDIR@/src/config/Makefile.lwp
11
12
13 #
14 # Main targets
15 #
16 all: \
17         ${TOP_LIBDIR}/libacl.a \
18         depinstall
19
20 depinstall: \
21         ${TOP_INCDIR}/afs/acl.h \
22         ${TOP_INCDIR}/afs/prs_fs.h 
23
24 ${TOP_LIBDIR}/libacl.a: libacl.a
25         ${INSTALL_DATA} $? $@
26
27 ${TOP_INCDIR}/afs/acl.h: acl.h
28         ${INSTALL_DATA} $? $@
29
30 ${TOP_INCDIR}/afs/prs_fs.h: prs_fs.h
31         ${INSTALL_DATA} $? $@
32
33 libacl.a: aclprocs.o netprocs.o AFS_component_version_number.o
34         $(RM) -f $@
35         $(AR) crv $@ aclprocs.o netprocs.o AFS_component_version_number.o
36         $(RANLIB) $@
37
38 aclprocs.o: aclprocs.c acl.h
39
40 netprocs.o: netprocs.c acl.h
41
42 #
43 # Installation targets
44 #
45 install: libacl.a acl.h prs_fs.h
46         ${INSTALL} -d ${DESTDIR}${libdir}/afs
47         ${INSTALL} -d ${DESTDIR}${includedir}/afs
48         ${INSTALL_DATA} libacl.a ${DESTDIR}${libdir}/afs/libacl.a
49         ${INSTALL_DATA} ${srcdir}/acl.h ${DESTDIR}${includedir}/afs/acl.h
50         ${INSTALL_DATA} ${srcdir}/prs_fs.h ${DESTDIR}${includedir}/afs/prs_fs.h
51
52 dest: libacl.a acl.h prs_fs.h
53         ${INSTALL} -d ${DEST}/lib/afs
54         ${INSTALL} -d ${DEST}/include/afs
55         ${INSTALL_DATA} libacl.a ${DEST}/lib/afs/libacl.a
56         ${INSTALL_DATA} ${srcdir}/acl.h ${DEST}/include/afs/acl.h
57         ${INSTALL_DATA} ${srcdir}/prs_fs.h ${DEST}/include/afs/prs_fs.h
58
59 #
60 # Misc. targets
61 #
62 test:
63         cd test; $(MAKE)
64
65 clean: 
66         $(RM) -f acltest *.o *.a core AFS_component_version_number.c
67
68 include ../config/Makefile.version