source: trunk/athena/bin/xmore/Makefile @ 1139

Revision 1139, 1.9 KB checked in by shanzer, 36 years ago (diff)
fixed man page install.
Line 
1#      This is the Makefile for Xmore, a file browsing utility
2#      built upon Xlib and the XToolkit.
3#     
4#      Created:         October 22, 1987
5#      By:              Chris D. Peterson
6#     
7#      $Source: /afs/dev.mit.edu/source/repository/athena/bin/xmore/Makefile,v $
8#      $Author: shanzer $
9#      $Header: /afs/dev.mit.edu/source/repository/athena/bin/xmore/Makefile,v 1.4 1988-05-25 13:14:58 shanzer Exp $
10#     
11#         Copyright 1987, 1988 by the Massachusetts Institute of Technology.
12#     
13#      For further information on copyright and distribution
14#      see the file mit-copyright.h
15
16# Directories to put the things into on install.
17
18DESTDIR=
19
20#The directory for the executables.
21
22INSTDIR= /usr/athena
23
24#The directory to put the help file into.       
25
26LIBDIR=/usr/athena/lib
27
28#The directory to put the manual pages into
29
30MANDIR=/usr/man
31#The specific section to put xmore's manual page into, can be one of:
32# 0 - 8, n or l (small L).
33MANSECT=1
34
35CFLAGS= -g -DATHENA -DHELPFILE=\"${LIBDIR}/xmore.help\" ${INCFLAGS}
36INCFLAGS=
37LIBES= -lXaw -lXt -lX
38OBJS= globals.o help.o main.o pages.o ${XTKOBJS}
39XTKOBJS= ScrollByLine.o
40XTKFILES= ScrollByLine.c
41INCLUDE= defs.h globals.h more.h mit-copyright.h
42CFILES= globals.c help.c main.c pages.c ${XTKFILES}
43
44all:            xmore
45xmore:          ${OBJS}
46                cc ${CFLAGS} ${LDFLAGS} ${OBJS} -o xmore ${LIBES}
47globals.o:      globals.c ${INCLUDE}
48help.o:         help.c ${INCLUDE}
49main.o:         main.c ${INCLUDE}
50pages.o:        pages.c ${INCLUDE}
51ScrollByLine.c: ScrollByLine.c ScrollByLineP.h ScrollByLine.h
52
53install: ;
54         strip xmore
55         cp xmore ${DESTDIR}${INSTDIR}
56         cp xmore.help ${DESTDIR}${LIBDIR}
57         cp xmore.man ${DESTDIR}${MANDIR}/man${MANSECT}/xmore.${MANSECT}
58
59clean:  ;
60        rm -f *~ *.o xmore xmore.shar core xmore.cat
61
62saber: ;
63        saber ${INCFLAGS} ${LDFLAGS} ${CFILES} ${LIBES}
64
65shar:   ;
66        shar README Makefile xmore.help xmore.man \
67             ${CFILES} ${XTKFILES} > xmore.shar
68
69manual: ;
70        nroff -man xmore.man > xmore.cat
71
Note: See TracBrowser for help on using the repository browser.