Annotation of src/usr.bin/less/Makefile.bsd-wrapper, Revision 1.7
1.7 ! etheisen 1: # $OpenBSD: Makefile.bsd-wrapper,v 1.6 1996/09/26 04:39:17 etheisen Exp $
1.1 etheisen 2:
3: #
4: # less config
5: #
6: PREFIX= /usr
1.7 ! etheisen 7: BINDIR= $(PREFIX)/bin
1.1 etheisen 8: DATADIR= $(PREFIX)/share/misc
1.2 etheisen 9: LESS_HLP= more.help
1.3 etheisen 10: LIBS= -ltermcap
1.5 etheisen 11: LINKS= ${BINDIR}/less ${BINDIR}/more ${BINDIR}/less ${BINDIR}/page
1.1 etheisen 12: MAN= less.1 lesskey.1
13: MLINKS= less.1 more.1 less.1 page.1
14: CLEANFILES= config.cache config.log $(MAN)
1.4 etheisen 15:
16: #
1.5 etheisen 17: # Wrapped flags
18: #
19: WCFLAGS= CFLAGS="$(CFLAGS)"
20: WLDFLAGS= LDFLAGS="$(LDSTATIC)"
21:
22: all: config.status gnu_build
23:
24: #
1.7 ! etheisen 25: # XXX - This is needed because crunchgen wasn't
! 26: # designed to work with wrappers. The
! 27: # default sys.mk SUFFIX rules were being
! 28: # invoked accidentally and crunchgen
! 29: # couldn't figure out what objects were
! 30: # needed.
1.4 etheisen 31: #
32: OBJS= main.o screen.o brac.o ch.o charset.o cmdbuf.o \
33: command.o decode.o edit.o filename.o forwback.o \
34: help.o ifile.o input.o jump.o line.o linenum.o \
35: lsystem.o mark.o optfunc.o option.o opttbl.o os.o \
36: output.o position.o prompt.o search.o signal.o \
37: tags.o ttyin.o version.o
1.7 ! etheisen 38: .SUFFIXES: .o .c
! 39: .c.o: config.status
! 40: @$(MAKE) $(WCFLAGS) $(WLDFLAGS) LIBS=$(LIBS) datadir=$(DATADIR) LESS_HLP=$(LESS_HLP) $(.TARGET)
1.1 etheisen 41:
42: .FORCE: .IGNORE
43:
44: config: .FORCE
45: -rm -f config.cache
46: /bin/sh $(.CURDIR)/configure --prefix=$(PREFIX)
47:
48: config.status:
49: /bin/sh $(.CURDIR)/configure --prefix=$(PREFIX)
50:
51: gnu_build:
1.3 etheisen 52: $(MAKE) $(WCFLAGS) $(WLDFLAGS) LIBS=$(LIBS) datadir=$(DATADIR) LESS_HLP=$(LESS_HLP)
1.1 etheisen 53:
54: install: gnu_install maninstall _SUBDIRUSE
55: .if defined(LINKS) && !empty(LINKS)
56: @set ${LINKS}; \
57: while test $$# -ge 2; do \
58: l=${DESTDIR}$$1; \
59: shift; \
60: t=${DESTDIR}$$1; \
61: shift; \
62: echo $$t -\> $$l; \
63: rm -f $$t; \
64: ln $$l $$t; \
65: done; true
66: .endif
67:
68: gnu_install:
1.6 etheisen 69: $(MAKE) $(WCFLAGS) $(WLDFLAGS) LIBS=$(LIBS) LESS_HLP=$(LESS_HLP) \
1.7 ! etheisen 70: bindir=$(DESTDIR)$(BINDIR) \
1.6 etheisen 71: datadir=$(DESTDIR)$(PREFIX)/share/misc \
1.1 etheisen 72: INSTALL_PROGRAM="install $(COPY) $(STRIP) -o $(BINOWN) -g $(BINGRP) -m $(BINMODE)" \
73: INSTALL_DATA="install $(COPY) -o ${BINOWN} -g ${BINGRP} -m 444" \
74: INSTALL_MAN= INSTALLDIRS= install
75:
76: clean cleandir:
77: rm -f $(CLEANFILES)
78: -@if [ -e Makefile ]; then $(MAKE) distclean; fi
79:
80: #
81: # Fix less manpage suffix
82: #
83: .SUFFIXES: .nro .1 .2 .3 .4 .5 .6 .7 .8 .9
84:
85: .nro.1 .nro.2 .nro.3 .nro.4 .nro.5 .nro.6 .nro.7 .nro.8 .nro.9:
86: -@ln -sf $(.IMPSRC) $(.TARGET)
87:
88: depend:
89: # Nothing here so far...
90:
91: lint:
92: # Nothing here so far...
93:
94: tags:
95: # Nothing here so far...
96:
97: .include <bsd.obj.mk>
98: .include <bsd.subdir.mk>
99: .include <bsd.man.mk>