$NetBSD: patch-aa,v 1.4 2009/12/12 20:22:01 asau Exp $ --- Makefile.orig 1992-05-11 22:43:33.000000000 +0400 +++ Makefile 2009-12-12 23:19:38.000000000 +0300 @@ -18,18 +18,18 @@ # This is where the install step puts it. #EXDIR=/site/bin -EXDIR=/usr/local/bin +EXDIR=${PREFIX}/bin # This is where the man page goes. -#MANDIR=/usr/local/src/man/man1 # reno -#MANEXT=1 # reno -MANDIR=/usr/man/manl -MANEXT=l +MANDIR=${PREFIX}/man/man1 # reno +MANEXT=1 # reno +#MANDIR=/usr/man/manl +#MANEXT=l MANMODE=644 # This is where the library file (tutorial) goes. #LIBDIR=/usr/local/share/$(name) # reno -LIBDIR=/usr/local/lib/$(name) +LIBDIR=${PREFIX}/share/$(name) # Set SIMPLE for lex.c if you don't want arrow keys or lex.c blows up SIMPLE= @@ -47,8 +47,8 @@ # Set INTERNATIONAL if you need 8 bit characters. You should # not set this if you are running 5.3.0. I think it is OK in 5.3.1. -#INTERNATIONAL=-DINTERNATIONAL -INTERNATIONAL= +INTERNATIONAL=-DINTERNATIONAL +#INTERNATIONAL= # Set SIGVOID if signal routines are type void. # use: SIGVOID=-DSIGVOID for: @@ -67,30 +67,30 @@ # Set RINT= on/with (they have rint): # SunOS 4.0.3c compiler # BSD4.4 (reno) -#RINT= -RINT=-DRINT +RINT= +#RINT=-DRINT # Set RE_COMP if you have the re_comp/re_exec regular expression routines # (most BSD based systems do). -#RE_COMP=-DRE_COMP -RE_COMP= +RE_COMP=-DRE_COMP +#RE_COMP= # Set REGCMP if you have the regcmp/regex regular expression routines # (most System V based systems do) -REGCMP=-DREGCMP +#REGCMP=-DREGCMP #REGCMP= # This is the name of a pager like "more". # "pg" may be appropriate for SYSV. -DFLT_PAGER=-DDFLT_PAGER=\"less\" -#DFLT_PAGER=-DDFLT_PAGER=\"more\" # generic && reno +#DFLT_PAGER=-DDFLT_PAGER=\"less\" +DFLT_PAGER=-DDFLT_PAGER=\"more\" # generic && reno # this is the name to save back ups in SAVE=-DSAVENAME=\"$(NAME).SAVE\" # path to crypt, do not define if you don't have crypt # most systems -CRYPT=-DCRYPT_PATH=\"/bin/crypt\" +#CRYPT=-DCRYPT_PATH=\"/bin/crypt\" # BSD #CRYPT=-DCRYPT_PATH=\"/usr/bin/crypt\" # other people? @@ -133,8 +133,8 @@ # noticing the rows become 2, 3, 40, 41, 42... (etc). # Known systems/terminfos w/ curses problems: # {Esix Rev. D+, AT&T SysV3.2.1}:at386-m,xterm, HP-UX7.0:(not sure) -IDLOKISBAD=-DIDLOKBAD -#IDLOKISBAD= +#IDLOKISBAD=-DIDLOKBAD +IDLOKISBAD= # If you don't have idlok() in your curses define NOIDLOK NO_IDLOK= @@ -149,17 +149,17 @@ # IF you have problems w/ your yacc try bison, Berkeley yacc, or # some other yacc. Some systems don't allow you to # increase the number of terminals (mostly AT&T), SCO's does though. -#YACC=yacc +YACC=yacc # NOTE: Do not use with bison 1.16! Get a new version.... -YACC=bison -y +#YACC=bison -y # MS-DOS needs y_tab instead of the normal y.tab #YTAB=y_tab YTAB=y.tab # Command to use to make temporary copies of some source files. -LN=ln -#LN=ln -s +#LN=ln +LN=ln -s #LN=cp #### SYSTEM DEFINES #### @@ -178,11 +178,11 @@ #CFLAGS= -DSYSV2 -g -pipe -traditional # Use this for system V.3 -CFLAGS= -DSYSV3 -O -LDFLAGS= -s +#CFLAGS= -O -DSYSV3 +#LDFLAGS= -s #CFLAGS= -DSYSV3 -g #LDFLAGS= -g -LIB=-lm -lcurses -lPW +LIB= # with gcc also use: #CC=gcc #CFLAGS= -DSYSV3 -O -pipe -traditional @@ -221,9 +221,9 @@ #CFLAGS= -O -DBSD42 -pipe # Use this for BSD 4.3 -#CFLAGS= -O -DBSD43 +CFLAGS += -DBSD43 #LDFLAGS= -#LIB=-lm -lcurses -ltermcap +LIB=-lm -lcurses -ltermcap -lcompat # Use this for SunOS 4.X if you have the System V package installed. # This will link with the System V curses which is preferable to the @@ -440,36 +440,36 @@ p$(name).man: p$(name).1 nroff -man p$(name).1 > p$(name).man -install: $(EXDIR)/$(name) $(EXDIR)/$(name)qref $(EXDIR)/p$(name) \ - $(LIBDIR)/tutorial \ - $(MANDIR)/$(name).$(MANEXT) $(MANDIR)/p$(name).$(MANEXT) - -$(EXDIR)/$(name): $(name) - cp $(name) $(EXDIR) - strip $(EXDIR)/$(name) - -$(EXDIR)/$(name)qref: $(name)qref - cp $(name)qref $(EXDIR) - strip $(EXDIR)/$(name)qref - -$(EXDIR)/p$(name): p$(name) - cp p$(name) $(EXDIR) - strip $(EXDIR)/p$(name) - -$(LIBDIR)/tutorial: tutorial.sc $(LIBDIR) - cp tutorial.sc $(LIBDIR)/tutorial.$(name) - chmod $(MANMODE) $(LIBDIR)/tutorial.$(name) - -$(LIBDIR): - mkdir $(LIBDIR) - -$(MANDIR)/$(name).$(MANEXT): $(name).1 - cp $(name).1 $(MANDIR)/$(name).$(MANEXT) - chmod $(MANMODE) $(MANDIR)/$(name).$(MANEXT) - -$(MANDIR)/p$(name).$(MANEXT): p$(name).1 - cp p$(name).1 $(MANDIR)/p$(name).$(MANEXT) - chmod $(MANMODE) $(MANDIR)/p$(name).$(MANEXT) +install: $(DESTDIR)$(EXDIR)/$(name) $(DESTDIR)$(EXDIR)/$(name)qref $(DESTDIR)$(EXDIR)/p$(name) \ + $(DESTDIR)$(LIBDIR)/tutorial \ + $(DESTDIR)$(MANDIR)/$(name).$(MANEXT) $(DESTDIR)$(MANDIR)/p$(name).$(MANEXT) + +$(DESTDIR)$(EXDIR)/$(name): $(name) + cp $(name) $(DESTDIR)$(EXDIR) + strip $(DESTDIR)$(EXDIR)/$(name) + +$(DESTDIR)$(EXDIR)/$(name)qref: $(name)qref + cp $(name)qref $(DESTDIR)$(EXDIR) + strip $(DESTDIR)$(EXDIR)/$(name)qref + +$(DESTDIR)$(EXDIR)/p$(name): p$(name) + cp p$(name) $(DESTDIR)$(EXDIR) + strip $(DESTDIR)$(EXDIR)/p$(name) + +$(DESTDIR)$(LIBDIR)/tutorial: tutorial.sc $(DESTDIR)$(LIBDIR) + cp tutorial.sc $(DESTDIR)$(LIBDIR)/tutorial.$(name) + chmod $(MANMODE) $(DESTDIR)$(LIBDIR)/tutorial.$(name) + +$(DESTDIR)$(LIBDIR): + mkdir $(DESTDIR)$(LIBDIR) + +$(DESTDIR)$(MANDIR)/$(name).$(MANEXT): $(name).1 + cp $(name).1 $(DESTDIR)$(MANDIR)/$(name).$(MANEXT) + chmod $(MANMODE) $(DESTDIR)$(MANDIR)/$(name).$(MANEXT) + +$(DESTDIR)$(MANDIR)/p$(name).$(MANEXT): p$(name).1 + cp p$(name).1 $(DESTDIR)$(MANDIR)/p$(name).$(MANEXT) + chmod $(MANMODE) $(DESTDIR)$(MANDIR)/p$(name).$(MANEXT) diffs: ${SRC} for i in ${DOCS} ${SRC} ;\