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

Revision 1139, 1.9 KB checked in by shanzer, 36 years ago (diff)
fixed man page install.
RevLine 
[1103]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 $
[1139]9#      $Header: /afs/dev.mit.edu/source/repository/athena/bin/xmore/Makefile,v 1.4 1988-05-25 13:14:58 shanzer Exp $
[1103]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
[1104]22INSTDIR= /usr/athena
[1103]23
24#The directory to put the help file into.       
25
[1104]26LIBDIR=/usr/athena/lib
[1103]27
28#The directory to put the manual pages into
29
[1139]30MANDIR=/usr/man
[1103]31#The specific section to put xmore's manual page into, can be one of:
32# 0 - 8, n or l (small L).
[1104]33MANSECT=1
[1103]34
35CFLAGS= -g -DATHENA -DHELPFILE=\"${LIBDIR}/xmore.help\" ${INCFLAGS}
[1135]36INCFLAGS=
[1103]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}
[1139]56         cp xmore.help ${DESTDIR}${LIBDIR}
57         cp xmore.man ${DESTDIR}${MANDIR}/man${MANSECT}/xmore.${MANSECT}
[1103]58
59clean:  ;
[1104]60        rm -f *~ *.o xmore xmore.shar core xmore.cat
[1103]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.