xref: /original-bsd/contrib/bib/Makefile (revision 1bc89ff7)
1*1bc89ff7Sbostic#	@(#)Makefile	2.4 (Berkeley) 06/07/93
2f3e47418Smckusick#
3f59d5e0aSbostic# all executables go in DEST_BIN
4f59d5e0aSbostic# all man pages go in DEST_MAN
5f59d5e0aSbostic# the bib libraries go in DEST_LIB
6f59d5e0aSbostic
7f59d5e0aSbostic# At UCB, the file structures have diverged, resulting in the following
8f59d5e0aSbostic# choice:
9f59d5e0aSbostic
10f59d5e0aSbostic# UNIX on VAX machines:
11f59d5e0aSbosticDEST_BASE=/usr/contrib
12*1bc89ff7SbosticDEST_BIN=$(DEST_BASE)/bin
13*1bc89ff7SbosticDEST_MAN=/usr/contrib/man
14f59d5e0aSbostic
15f59d5e0aSbostic# UNIX on Suns, etc
16f59d5e0aSbostic#DEST_BASE=/usr/local
17f59d5e0aSbostic#DEST_BIN=$(DEST_BASE)/bin
18f59d5e0aSbostic#DEST_MAN=$(DEST_BASE)/man
19f59d5e0aSbostic
20f59d5e0aSbostic# the software expects the following to be true
21f59d5e0aSbosticDEST_LIB=$(DEST_BASE)/lib
22f59d5e0aSbostic
23f59d5e0aSbosticDESTDIRS=DEST_BASE=$(DEST_BASE) DEST_BIN=$(DEST_BIN) \
24f59d5e0aSbostic	 DEST_MAN=$(DEST_MAN)   DEST_LIB=$(DEST_LIB)
25f3e47418Smckusick
26f3e47418Smckusickall:
27f59d5e0aSbostic	cd src; make ${MFLAGS} $(DESTDIRS)
28f3e47418Smckusick
29f59d5e0aSbosticinstall: all installsrc installmacs installman
30f59d5e0aSbostic
31f59d5e0aSbosticinstallman:
32f59d5e0aSbostic	cd man; make ${MFLAGS} $(DESTDIRS) install
33f59d5e0aSbostic
34f59d5e0aSbosticinstallsrc:
35f59d5e0aSbostic	cd src; make ${MFLAGS} $(DESTDIRS) install
36f59d5e0aSbostic
37f59d5e0aSbosticinstallmacs:
38f59d5e0aSbostic	cd macs; make ${MFLAGS} $(DESTDIRS) install
39f3e47418Smckusick
40f3e47418Smckusickclean:
41f59d5e0aSbostic	cd src; make ${MFLAGS} $(DESTDIRS) clean
42