Replace old build structure with FreBSD one (local changes in next commit).
This commit is contained in:
parent
606591d35c
commit
97a4aa1713
@ -1,12 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.12 2001/04/19 14:40:40 wiz Exp $
|
||||
# $FreeBSD: src/gnu/usr.bin/groff/Makefile,v 2.11 2003/05/02 00:55:52 ru Exp $
|
||||
|
||||
SUBDIR= libbib libdriver libgroff .WAIT addftinfo devices eqn grn \
|
||||
grodvi groff grog grohtml grolbp grolj4 grops grotty hpftodit \
|
||||
indxbib lkbib lookbib man mm nroff pfbtops pic refer \
|
||||
tbl tfmtodit tmac troff
|
||||
|
||||
# afmtodit is a perl script; xditview an X program (we can't assume X is
|
||||
# installed); NetBSD has its own soelim.
|
||||
MISC= afmtodit xditview soelim
|
||||
SUBDIR= contrib doc font man src tmac
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
@ -1,16 +0,0 @@
|
||||
# $NetBSD: Makefile.comp,v 1.2 2001/11/12 17:09:45 tv Exp $
|
||||
|
||||
DEFINES= -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_MATH_H=1 -DRET_TYPE_SRAND_IS_VOID=1 -DHAVE_SYS_NERR=1 -DHAVE_SYS_ERRLIST=1 -DHAVE_CC_LIMITS_H=1 -DRETSIGTYPE=void -DHAVE_STRUCT_EXCEPTION=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_FMOD=1 -DHAVE_STRTOL=1 -DHAVE_GETCWD=1 -DHAVE_STRERROR=1 -DHAVE_PUTENV=1 -DHAVE_RENAME=1 -DHAVE_MKSTEMP=1 -DHAVE_STRCASECMP=1 -DHAVE_STRNCASECMP=1 -DHAVE_STRSEP=1 -DHAVE_STRDUP=1 -DSYS_SIGLIST_DECLARED=1
|
||||
|
||||
CPPFLAGS+= ${DEFINES} -I${.CURDIR}/../include -I${IDIST}/src/include
|
||||
|
||||
# XXX This won't necessarily work if running a parallel make, but does
|
||||
# XXX work here because each subdir builds at most one .cc file from a .y.
|
||||
YFLAGS+= -d
|
||||
.y.cc:
|
||||
$(YACC) $(YFLAGS) $(.IMPSRC)
|
||||
mv y.tab.c $(.PREFIX).cc
|
||||
mv y.tab.h $(.PREFIX)_tab.h
|
||||
|
||||
.include "../Makefile.path"
|
||||
.include "../../Makefile.inc"
|
@ -1,17 +0,0 @@
|
||||
# $NetBSD: Makefile.lib,v 1.1.1.1 2001/04/19 14:33:07 wiz Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
LIBGROFFDIR!=cd ${.CURDIR}/../libgroff && ${PRINTOBJDIR}
|
||||
|
||||
LIBDRIVERDIR!=cd ${.CURDIR}/../libdriver && ${PRINTOBJDIR}
|
||||
|
||||
LIBBIBDIR!=cd ${.CURDIR}/../libbib && ${PRINTOBJDIR}
|
||||
|
||||
LIBGROFF= ${LIBGROFFDIR}/libgroff.a
|
||||
LIBDRIVER= ${LIBDRIVERDIR}/libdriver.a
|
||||
LIBBIB= ${LIBBIBDIR}/libbib.a
|
||||
|
||||
.if exists(../Makefile.comp)
|
||||
.include "../Makefile.comp"
|
||||
.endif
|
@ -1,5 +0,0 @@
|
||||
# $NetBSD: Makefile.path,v 1.2 2002/09/19 03:09:38 lukem Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
IDIST= ${NETBSDSRCDIR}/gnu/dist/groff
|
@ -1,13 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.8 2002/01/01 01:38:25 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/utils/addftinfo
|
||||
.PATH: ${DIST}
|
||||
|
||||
PROG_CXX= addftinfo
|
||||
SRCS= addftinfo.cc guess.cc
|
||||
LDADD+= $(LIBGROFF)
|
||||
DPADD+= $(LIBGROFF)
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,12 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.8 2001/04/19 14:40:42 wiz Exp $
|
||||
|
||||
.include "../Makefile.path"
|
||||
|
||||
DIST= ${IDIST}/src/utils/afmtodit
|
||||
.PATH: ${DIST}
|
||||
|
||||
MAN= afmtodit.1
|
||||
SCRIPTS= afmtodit.pl
|
||||
SCRIPTSNAME= afmtodit
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,7 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.8 2001/04/19 14:40:43 wiz Exp $
|
||||
|
||||
# devcp1047 is ignored by tradition
|
||||
SUBDIR= devascii devdvi devhtml devlatin1 devlbp devlj4 devps devutf8 \
|
||||
devX100 devX100-12 devX75 devX75-12
|
||||
|
||||
.include <bsd.subdir.mk>
|
@ -1,44 +0,0 @@
|
||||
# $NetBSD: Makefile.dev,v 1.27 2001/04/19 14:40:43 wiz Exp $
|
||||
|
||||
# Client Makefiles define DEVICE and FONTFILES and provide rules for
|
||||
# individual font files
|
||||
|
||||
.MAIN: all
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
# XXX -- this depends on ../include/defs.h
|
||||
FONTDIR= /usr/share/groff_font
|
||||
|
||||
DEVICEDIR?= $(FONTDIR)/dev$(DEVICE)
|
||||
FONTOWN?= ${FILESOWN}
|
||||
FONTGRP?= ${FILESGRP}
|
||||
FONTMODE?= ${FILESMODE}
|
||||
|
||||
PSPRINT= lpr
|
||||
DVIPRINT= lpr -d
|
||||
BROKEN_SPOOLER_FLAGS=7
|
||||
|
||||
.if ${MKSHARE} != "no"
|
||||
realall: $(FONTFILES)
|
||||
.else
|
||||
realall:
|
||||
.endif
|
||||
|
||||
.if !target(clean)
|
||||
clean cleandir distclean:
|
||||
-rm -f $(FONTFILES)
|
||||
.else
|
||||
COPY= -c
|
||||
.endif
|
||||
|
||||
.if ${MKSHARE} != "no"
|
||||
FILES=${FONTFILES}
|
||||
FILESDIR=${DEVICEDIR}
|
||||
GENFILES=${FONTFILES:Mgenerate/*}
|
||||
.for i in ${GENFILES}
|
||||
FILESDIR_$i=${DEVICEDIR}/generate
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,33 +0,0 @@
|
||||
# $NetBSD: Makefile.tty,v 1.6 2001/04/19 14:40:43 wiz Exp $
|
||||
|
||||
# common Makefile contents for devascii and devlatin1
|
||||
|
||||
.MAIN: all
|
||||
|
||||
RES=240
|
||||
CPI=10
|
||||
LPI=6
|
||||
FONTS=R I B BI
|
||||
|
||||
FONTFILES=$(FONTS) DESC
|
||||
|
||||
$(FONTS): R.proto
|
||||
@echo Making $@
|
||||
@(charwidth=`echo $(RES) / $(CPI) | bc` ; \
|
||||
sed -e "s/^name [A-Z]*$$/name $@/" \
|
||||
-e "s/^\\([^ ]*\\) [0-9]+ /\\1 $$charwidth /" \
|
||||
-e "s/^spacewidth [0-9]+$$/spacewidth $$charwidth/" \
|
||||
-e "s/^internalname .*$$/internalname $@/" \
|
||||
-e "/^internalname/s/BI/3/" \
|
||||
-e "/^internalname/s/B/2/" \
|
||||
-e "/^internalname/s/I/1/" \
|
||||
-e "/^internalname .*[^ 0-9]/d" \
|
||||
$> >$@)
|
||||
|
||||
DESC: DESC.proto
|
||||
@echo Making $@
|
||||
@sed -e "s/^res .*$$/res $(RES)/" \
|
||||
-e "s/^hor .*$$/hor `echo $(RES) / $(CPI) | bc`/" \
|
||||
-e "s/^vert .*$$/vert `echo $(RES) / $(LPI) | bc`/" \
|
||||
-e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \
|
||||
$> >$@
|
@ -1,14 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.9 2002/09/19 03:09:38 lukem Exp $
|
||||
|
||||
NOOBJ= # defined
|
||||
|
||||
.include "../../Makefile.path"
|
||||
|
||||
.PATH: ${IDIST}/font/devX100-12
|
||||
|
||||
DEVICE= X100-12
|
||||
FONTFILES= CB CBI CI CR HB HBI HI HR NB NBI NI NR S TB TBI TI TR DESC
|
||||
|
||||
clean cleandir distclean:
|
||||
|
||||
.include "../Makefile.dev"
|
@ -1,14 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.9 2002/09/19 03:09:38 lukem Exp $
|
||||
|
||||
NOOBJ= # defined
|
||||
|
||||
.include "../../Makefile.path"
|
||||
|
||||
.PATH: ${IDIST}/font/devX100
|
||||
|
||||
DEVICE= X100
|
||||
FONTFILES= CB CBI CI CR HB HBI HI HR NB NBI NI NR S TB TBI TI TR DESC
|
||||
|
||||
clean cleandir distclean:
|
||||
|
||||
.include "../Makefile.dev"
|
@ -1,14 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.9 2002/09/19 03:09:38 lukem Exp $
|
||||
|
||||
NOOBJ= # defined
|
||||
|
||||
.include "../../Makefile.path"
|
||||
|
||||
.PATH: ${IDIST}/font/devX75-12
|
||||
|
||||
DEVICE= X75-12
|
||||
FONTFILES= CB CBI CI CR HB HBI HI HR NB NBI NI NR S TB TBI TI TR DESC
|
||||
|
||||
clean cleandir distclean:
|
||||
|
||||
.include "../Makefile.dev"
|
@ -1,14 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.9 2002/09/19 03:09:38 lukem Exp $
|
||||
|
||||
NOOBJ= # defined
|
||||
|
||||
.include "../../Makefile.path"
|
||||
|
||||
.PATH: ${IDIST}/font/devX75
|
||||
|
||||
DEVICE= X75
|
||||
FONTFILES= CB CBI CI CR HB HBI HI HR NB NBI NI NR S TB TBI TI TR DESC
|
||||
|
||||
clean cleandir distclean:
|
||||
|
||||
.include "../Makefile.dev"
|
@ -1,10 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.6 2002/09/19 03:09:39 lukem Exp $
|
||||
|
||||
.include "../../Makefile.path"
|
||||
|
||||
.PATH: ${IDIST}/font/devascii
|
||||
|
||||
DEVICE= ascii
|
||||
|
||||
.include "../Makefile.tty"
|
||||
.include "../Makefile.dev"
|
@ -1,38 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.2 2002/09/19 03:09:39 lukem Exp $
|
||||
|
||||
.include "../../Makefile.path"
|
||||
|
||||
.PATH: ${IDIST}/font/devcp1047
|
||||
|
||||
DEVICE= cp1047
|
||||
FONTFILES= $(FONTS) DESC
|
||||
FONTS= R I B BI
|
||||
|
||||
RES=240
|
||||
CPI=10
|
||||
LPI=6
|
||||
|
||||
$(FONTS): R.proto
|
||||
@echo Making $@
|
||||
@-rm -f $@
|
||||
@(charwidth=`expr $(RES) / $(CPI)` ; \
|
||||
sed -e "s/^name [A-Z]*$$/name $@/" \
|
||||
-e "s/^\\([^ ]*\\) [0-9]+ /\\1 $$charwidth /" \
|
||||
-e "s/^spacewidth [0-9]+$$/spacewidth $$charwidth/" \
|
||||
-e "s/^internalname .*$$/internalname $@/" \
|
||||
-e "/^internalname/s/BI/3/" \
|
||||
-e "/^internalname/s/B/2/" \
|
||||
-e "/^internalname/s/I/1/" \
|
||||
-e "/^internalname .*[^ 0-9]/d" \
|
||||
$> >$@)
|
||||
|
||||
DESC: DESC.proto
|
||||
@echo Making $@
|
||||
@-rm -f $@
|
||||
@sed -e "s/^res .*$$/res $(RES)/" \
|
||||
-e "s/^hor .*$$/hor `expr $(RES) / $(CPI)`/" \
|
||||
-e "s/^vert .*$$/vert `expr $(RES) / $(LPI)`/" \
|
||||
-e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \
|
||||
$> >$@
|
||||
|
||||
.include "../Makefile.dev"
|
@ -1,20 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.9 2002/09/19 03:09:39 lukem Exp $
|
||||
|
||||
.include "../../Makefile.path"
|
||||
|
||||
.PATH: ${IDIST}/font/devdvi
|
||||
|
||||
DEVICE= dvi
|
||||
FONTFILES= R I B BI CW CWI MI S EX H HI HB SA SB DESC $(DEVGENFILES)
|
||||
DEVGENFILES= generate/CompileFonts generate/Makefile generate/msam.map\
|
||||
generate/msbm.map generate/texb.map generate/texex.map \
|
||||
generate/texi.map generate/texmi.map generate/texr.map \
|
||||
generate/texsy.map generate/textt.map
|
||||
|
||||
CLEANFILES= DESC
|
||||
|
||||
DESC: DESC.in
|
||||
@cat $> >$@
|
||||
@test -z '$(DVIPRINT)' || echo print '$(DVIPRINT)' >>$@
|
||||
|
||||
.include "../Makefile.dev"
|
@ -1,12 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.3 2002/09/19 03:09:39 lukem Exp $
|
||||
|
||||
NOOBJ= # defined
|
||||
|
||||
.include "../../Makefile.path"
|
||||
|
||||
.PATH: ${IDIST}/font/devhtml
|
||||
|
||||
DEVICE= html
|
||||
FONTFILES= DESC TR TI TB TBI CR CI CB CBI HR HI HB HBI NR NI NB NBI S
|
||||
|
||||
.include "../Makefile.dev"
|
@ -1,10 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.6 2002/09/19 03:09:39 lukem Exp $
|
||||
|
||||
.include "../../Makefile.path"
|
||||
|
||||
.PATH: ${IDIST}/font/devlatin1
|
||||
|
||||
DEVICE= latin1
|
||||
|
||||
.include "../Makefile.tty"
|
||||
.include "../Makefile.dev"
|
@ -1,23 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.2 2002/09/19 03:09:40 lukem Exp $
|
||||
|
||||
.include "../../Makefile.path"
|
||||
|
||||
.PATH: ${IDIST}/font/devlbp
|
||||
|
||||
DEVICE= lbp
|
||||
FONTFILES= DESC HB HBI HI HR TB TBI TI TR
|
||||
|
||||
CLEANFILES= DESC
|
||||
|
||||
LBPPRINT= $(PSPRINT)
|
||||
|
||||
DESC: DESC.in
|
||||
@cat $> >>$@
|
||||
if test "$(PAGE)" = A4; then \
|
||||
echo "papersize a4" >>$@; \
|
||||
else \
|
||||
echo "papersize letter" >>$@; \
|
||||
fi
|
||||
test -z '$(LBPPRINT)' || echo print '$(LBPPRINT)' >>$@
|
||||
|
||||
.include "../Makefile.dev"
|
@ -1,30 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.6 2002/09/19 03:09:40 lukem Exp $
|
||||
|
||||
.include "../../Makefile.path"
|
||||
|
||||
.PATH: ${IDIST}/font/devlj4
|
||||
|
||||
DEVICE= lj4
|
||||
FONTFILES= ALBB ALBR AOB AOI AOR CB CBI CI CR GB GBI GI GR LGB LGI LGR \
|
||||
OB OBI OI OR TB TBI TI TR UB UBI UI UR UCB UCBI UCI UCR \
|
||||
CLARENDON CORONET MARIGOLD S generate/Makefile \
|
||||
generate/text.map generate/special.map \
|
||||
DESC
|
||||
|
||||
CLEANFILES= DESC
|
||||
|
||||
LJ4RES= 600
|
||||
LJ4PRINT= $(PSPRINT)
|
||||
|
||||
DESC: DESC.in
|
||||
@echo "res $(LJ4RES)" >$@
|
||||
@echo "unitwidth `expr 7620000 / $(LJ4RES)`" >>$@
|
||||
@cat $> >>$@
|
||||
@if test "$(PAGE)" = A4; then \
|
||||
echo "papersize a4" >>$@; \
|
||||
else \
|
||||
echo "papersize letter" >>$@; \
|
||||
fi
|
||||
@test -z '$(LJ4PRINT)' || echo print '$(LJ4PRINT)' >>$@
|
||||
|
||||
.include "../Makefile.dev"
|
@ -1,38 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.9 2002/09/19 03:09:40 lukem Exp $
|
||||
|
||||
.include "../../Makefile.path"
|
||||
|
||||
.PATH: ${IDIST}/font/devps
|
||||
|
||||
DEVICE= ps
|
||||
FONTFILES= $(FONTS) $(SUPPORT) $(PSFILES) $(DEVGENFILES) DESC
|
||||
FONTS= S ZD ZDR SS AB ABI AI AR BMB BMBI BMI BMR \
|
||||
CB CBI CI CR HB HBI HI HR HNB HNBI HNI HNR \
|
||||
NB NBI NI NR PB PBI PI PR TB TBI TI TR ZCMI
|
||||
SUPPORT= download
|
||||
PSFILES= prologue symbolsl.pfa text.enc zapfdr.pfa
|
||||
DEVGENFILES= generate/Makefile generate/afmname generate/dingbatsmap \
|
||||
generate/dingbatsrmap generate/lgreekmap generate/symbol.sed \
|
||||
generate/symbolchars generate/symbolsl.afm generate/textmap
|
||||
|
||||
CLEANFILES+= $(PSFILES) DESC
|
||||
|
||||
prologue: prologue.ps
|
||||
zapfdr.pfa: zapfdr.ps
|
||||
symbolsl.pfa: symbolsl.ps
|
||||
|
||||
${PSFILES}:
|
||||
@-rm -f $@
|
||||
@sed -f ${IDIST}/font/devps/psstrip.sed $> > $@
|
||||
|
||||
DESC: DESC.in
|
||||
@cat $> >$@
|
||||
@echo broken $(BROKEN_SPOOLER_FLAGS) >>$@
|
||||
@if test "$(PAGE)" = A4; then \
|
||||
echo "paperlength 841890" >>$@; \
|
||||
else \
|
||||
echo "paperlength 792000" >>$@; \
|
||||
fi
|
||||
@test -z '$(PSPRINT)' || echo print '$(PSPRINT)' >>$@
|
||||
|
||||
.include "../Makefile.dev"
|
@ -1,38 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.2 2002/09/19 03:09:40 lukem Exp $
|
||||
|
||||
.include "../../Makefile.path"
|
||||
|
||||
.PATH: ${IDIST}/font/devutf8
|
||||
|
||||
DEVICE= utf8
|
||||
FONTFILES= $(FONTS) DESC
|
||||
FONTS= R I B BI
|
||||
|
||||
RES=240
|
||||
CPI=10
|
||||
LPI=6
|
||||
|
||||
$(FONTS): R.proto
|
||||
@echo Making $@
|
||||
@-rm -f $@
|
||||
@(charwidth=`expr $(RES) / $(CPI)` ; \
|
||||
sed -e "s/^name [A-Z]*$$/name $@/" \
|
||||
-e "s/^\\([^ ]*\\) [0-9]+ /\\1 $$charwidth /" \
|
||||
-e "s/^spacewidth [0-9]+$$/spacewidth $$charwidth/" \
|
||||
-e "s/^internalname .*$$/internalname $@/" \
|
||||
-e "/^internalname/s/BI/3/" \
|
||||
-e "/^internalname/s/B/2/" \
|
||||
-e "/^internalname/s/I/1/" \
|
||||
-e "/^internalname .*[^ 0-9]/d" \
|
||||
$> >$@)
|
||||
|
||||
DESC: DESC.proto
|
||||
@echo Making $@
|
||||
@-rm -f $@
|
||||
@sed -e "s/^res .*$$/res $(RES)/" \
|
||||
-e "s/^hor .*$$/hor `expr $(RES) / $(CPI)`/" \
|
||||
-e "s/^vert .*$$/vert `expr $(RES) / $(LPI)`/" \
|
||||
-e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \
|
||||
$> >$@
|
||||
|
||||
.include "../Makefile.dev"
|
6
gnu/usr.bin/groff/doc/Makefile
Normal file
6
gnu/usr.bin/groff/doc/Makefile
Normal file
@ -0,0 +1,6 @@
|
||||
# $FreeBSD: src/gnu/usr.bin/groff/doc/Makefile,v 1.4 2000/12/06 12:17:01 ru Exp $
|
||||
|
||||
INFO= groff
|
||||
SRCDIR= ${DIST_DIR}
|
||||
|
||||
.include <bsd.info.mk>
|
@ -1,28 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.18 2002/01/01 01:38:26 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/preproc/eqn
|
||||
.PATH: ${DIST}
|
||||
|
||||
PROG_CXX= eqn
|
||||
SRCS= main.cc lex.cc box.cc limit.cc list.cc over.cc text.cc\
|
||||
script.cc mark.cc other.cc delim.cc sqrt.cc pile.cc special.cc\
|
||||
eqn.cc
|
||||
CPPFLAGS+= -I. -I${DIST}
|
||||
LDADD+= $(LIBGROFF)
|
||||
DPADD+= $(LIBGROFF)
|
||||
DPSRCS+= eqn_tab.h
|
||||
CLEANFILES+= eqn.cc neqn
|
||||
|
||||
eqn_tab.h lex.o: eqn.cc
|
||||
|
||||
FILES=neqn
|
||||
FILESMODE=${BINMODE}
|
||||
|
||||
realall: neqn
|
||||
|
||||
neqn: neqn.sh
|
||||
sed -e 's/@g@/$(g)/g' ${.ALLSRC} > ${.TARGET}
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,14 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.3 2002/01/01 01:38:26 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/preproc/grn
|
||||
.PATH: ${DIST}
|
||||
|
||||
PROG_CXX= grn
|
||||
SRCS= hdb.cc hgraph.cc hpoint.cc main.cc
|
||||
CPPFLAGS+= -I${DIST}
|
||||
LDADD+= $(LIBGROFF) -lm
|
||||
DPADD+= $(LIBGROFF) ${LIBM}
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,13 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.9 2002/01/01 01:38:26 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/devices/grodvi
|
||||
.PATH: ${DIST}
|
||||
|
||||
PROG_CXX= grodvi
|
||||
SRCS= dvi.cc
|
||||
LDADD+= $(LIBDRIVER) $(LIBGROFF) -lm
|
||||
DPADD+= $(LIBDRIVER) $(LIBGROFF) $(LIBM)
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,13 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.11 2002/01/01 01:38:26 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/roff/groff
|
||||
.PATH: ${DIST}
|
||||
|
||||
PROG_CXX= groff
|
||||
SRCS= groff.cc pipeline.c
|
||||
LDADD+= $(LIBGROFF) -lm
|
||||
DPADD+= $(LIBGROFF) $(LIBM)
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,12 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.10 2001/04/19 14:41:18 wiz Exp $
|
||||
|
||||
.include "../Makefile.path"
|
||||
|
||||
DIST= ${IDIST}/src/roff/grog
|
||||
.PATH: ${DIST}
|
||||
|
||||
MAN= grog.1
|
||||
SCRIPTS= grog.sh
|
||||
|
||||
.include "../../Makefile.inc"
|
||||
.include <bsd.prog.mk>
|
@ -1,13 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.3 2002/01/01 01:38:26 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/devices/grohtml
|
||||
.PATH: ${DIST}
|
||||
|
||||
PROG_CXX= grohtml
|
||||
SRCS= html.cc output.cc
|
||||
LDADD+= $(LIBDRIVER) $(LIBGROFF) -lm
|
||||
DPADD+= $(LIBDRIVER) $(LIBGROFF) $(LIBM)
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,13 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.3 2002/01/01 01:38:27 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/devices/grolbp
|
||||
.PATH: ${DIST}
|
||||
|
||||
PROG_CXX= grolbp
|
||||
SRCS= lbp.cc
|
||||
LDADD+= $(LIBDRIVER) $(LIBGROFF) -lm
|
||||
DPADD+= $(LIBDRIVER) $(LIBGROFF) $(LIBM)
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,13 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.6 2002/01/01 01:38:27 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/devices/grolj4
|
||||
.PATH: ${DIST}
|
||||
|
||||
PROG_CXX= grolj4
|
||||
SRCS= lj4.cc
|
||||
LDADD+= $(LIBDRIVER) $(LIBGROFF) -lm
|
||||
DPADD+= $(LIBDRIVER) $(LIBGROFF) $(LIBM)
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,13 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.12 2002/01/01 01:38:27 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/devices/grops
|
||||
.PATH: ${DIST}
|
||||
|
||||
PROG_CXX= grops
|
||||
SRCS= ps.cc psrm.cc
|
||||
LDADD+= $(LIBDRIVER) $(LIBGROFF) -lm
|
||||
DPADD+= $(LIBDRIVER) $(LIBGROFF) $(LIBM)
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,13 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.12 2002/01/01 01:38:27 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/devices/grotty
|
||||
.PATH: ${DIST}
|
||||
|
||||
PROG_CXX= grotty
|
||||
SRCS= tty.cc
|
||||
LDADD+= $(LIBDRIVER) $(LIBGROFF) -lm
|
||||
DPADD+= $(LIBDRIVER) $(LIBGROFF) $(LIBM)
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,13 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.6 2002/01/01 01:38:27 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/utils/hpftodit
|
||||
.PATH: ${DIST}
|
||||
|
||||
PROG_CXX= hpftodit
|
||||
SRCS= hpftodit.cc
|
||||
LDADD+= $(LIBGROFF) -lm
|
||||
DPADD+= $(LIBGROFF) $(LIBM)
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,10 +0,0 @@
|
||||
/* $Id: defs.h,v 1.3 2001/04/19 14:41:22 wiz Exp $ */
|
||||
#define PROG_PREFIX ""
|
||||
#define DEVICE "ps"
|
||||
#define FONTPATH "/usr/share/groff_font"
|
||||
#define MACROPATH "/usr/share/tmac"
|
||||
#define INDEX_SUFFIX ".i"
|
||||
#define COMMON_WORDS_FILE "/usr/share/dict/eign"
|
||||
#define DEFAULT_INDEX_DIR "/usr/share/dict/papers"
|
||||
#define DEFAULT_INDEX_NAME "Ind"
|
||||
#define DEFAULT_INDEX "/usr/share/dict/papers/Ind"
|
@ -1,23 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.14 2002/01/01 01:38:28 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/utils/indxbib
|
||||
.PATH: ${DIST}
|
||||
|
||||
PROG_CXX= indxbib
|
||||
SRCS= indxbib.cc dirnamemax.c signal.c
|
||||
LDADD+= $(LIBBIB) $(LIBGROFF) -lm
|
||||
DPADD+= $(LIBBIB) $(LIBGROFF) $(LIBM)
|
||||
|
||||
COMMON_WORDS_FILE!=awk -F\" '/COMMON_WORDS_FILE/ { print $$2 }' ${.CURDIR}/../include/defs.h
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
.if ${MKSHARE} != "no"
|
||||
FILES=eign
|
||||
FILESNAME=${COMMON_WORDS_FILE:T}
|
||||
FILESDIR=${COMMON_WORDS_FILE:H}
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,18 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.13 2002/09/19 03:09:40 lukem Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
NOPROFILE= # defined
|
||||
NOPIC= # defined
|
||||
|
||||
.include "../Makefile.comp"
|
||||
|
||||
DIST= ${IDIST}/src/libs/libbib
|
||||
.PATH: ${DIST}
|
||||
|
||||
LIB= bib
|
||||
SRCS= common.cc index.cc linear.cc search.cc map.c
|
||||
|
||||
# only needed during build
|
||||
libinstall::
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,22 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.15 2002/09/19 03:09:41 lukem Exp $
|
||||
|
||||
# lint step doesn't work, because there are no .ln files here, because
|
||||
# we're only compiling c++ files in this dir
|
||||
# lint command line is: lint -Cdriver -lc
|
||||
NOLINT= # defined
|
||||
NOMAN= # defined
|
||||
NOPROFILE= # defined
|
||||
NOPIC= # defined
|
||||
|
||||
.include "../Makefile.comp"
|
||||
|
||||
DIST= ${IDIST}/src/libs/libdriver
|
||||
.PATH: ${DIST}
|
||||
|
||||
LIB= driver
|
||||
SRCS= printer.cc input.cc
|
||||
|
||||
# only needed during build
|
||||
libinstall::
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,35 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.15 2002/09/19 03:09:41 lukem Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
NOPROFILE= # defined
|
||||
NOPIC= # defined
|
||||
|
||||
.include "../Makefile.comp"
|
||||
|
||||
DIST= ${IDIST}/src/libs/libgroff
|
||||
.PATH: ${DIST}
|
||||
|
||||
LIB= groff
|
||||
SRCS= assert.cc change_lf.cc cmap.cc cset.cc device.cc errarg.cc \
|
||||
error.cc fatal.cc filename.cc font.cc fontfile.cc \
|
||||
htmlindicate.cc iftoa.c illegal.cc itoa.c lf.cc \
|
||||
lineno.cc macropath.cc matherr.c nametoindex.cc new.cc \
|
||||
prime.cc progname.cc ptable.cc searchpath.cc string.cc \
|
||||
strsave.cc tmpfile.cc version.cc
|
||||
|
||||
CLEANFILES+= version.cc
|
||||
|
||||
version=`cat ${IDIST}/VERSION`
|
||||
revision=`cat ${IDIST}/REVISION`
|
||||
|
||||
version.cc: ${IDIST}/VERSION ${IDIST}/REVISION
|
||||
@echo Making version.cc
|
||||
@echo const char \*version_string = \"$(version)\"\; >$@
|
||||
@echo const char \*revision_string = \"$(revision)\"\; >>$@
|
||||
@echo const char \*Version_string = \"$(version).$(revision)\"\; | \
|
||||
sed -e 's/\.0\"/\"/' >>$@
|
||||
|
||||
# only needed during build
|
||||
libinstall::
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,13 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.9 2002/01/01 01:38:28 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/utils/lkbib
|
||||
.PATH: ${DIST}
|
||||
|
||||
PROG_CXX= lkbib
|
||||
SRCS= lkbib.cc
|
||||
LDADD+= $(LIBBIB) $(LIBGROFF) -lm
|
||||
DPADD+= $(LIBBIB) $(LIBGROFF) $(LIBM)
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,13 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.9 2002/01/01 01:38:28 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/utils/lookbib
|
||||
.PATH: ${DIST}
|
||||
|
||||
PROG_CXX= lookbib
|
||||
SRCS= lookbib.cc
|
||||
LDADD+= $(LIBBIB) $(LIBGROFF) -lm
|
||||
DPADD+= $(LIBBIB) $(LIBGROFF) $(LIBM)
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,13 +1,8 @@
|
||||
# $NetBSD: Makefile,v 1.8 2001/06/26 01:43:58 enami Exp $
|
||||
# $FreeBSD: src/gnu/usr.bin/groff/man/Makefile,v 1.9 2002/10/11 08:58:14 ru Exp $
|
||||
|
||||
.include "../Makefile.path"
|
||||
|
||||
DIST= ${IDIST}/man
|
||||
.PATH: ${DIST}
|
||||
|
||||
MAN= groff.7 groff_char.7 groff_font.5 groff_out.5 roff.7
|
||||
|
||||
# needs tbl for the man page.
|
||||
USETBL=
|
||||
MAN= groff_font.5 groff_out.5 groff_tmac.5
|
||||
MLINKS= groff_tmac.5 tmac.5
|
||||
MAN+= ditroff.7 groff.7 groff_char.7 groff_diff.7 roff.7
|
||||
CLEANFILES= ${MAN}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,34 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.17 2001/04/19 14:41:31 wiz Exp $
|
||||
|
||||
.include "../Makefile.path"
|
||||
|
||||
DIST= ${IDIST}/contrib/mm
|
||||
.PATH: ${DIST}
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
# XXX -- this depends on ../include/defs.h
|
||||
TMACDIR?= /usr/share/tmac
|
||||
|
||||
TMACOWN?= ${FILESOWN}
|
||||
TMACGRP?= ${FILESGRP}
|
||||
TMACMODE?= ${FILESMODE}
|
||||
|
||||
# XXX: Following comment seems bogus [wiz 2001-02-25]
|
||||
# The Swedish man page is temporarily disabled. We will soon implement
|
||||
# a scheme for internationalized man pages and turn it on again.
|
||||
#MAN= groff_mm.7 groff_mmse.7
|
||||
#MLINKS= groff_mm.7 mm.7 groff_mmse.7 mmse.7
|
||||
MAN= groff_mm.7 groff_mmse.7
|
||||
MLINKS= groff_mm.7 mm.7 groff_mmse.7 mmse.7
|
||||
|
||||
.if ${MKSHARE} != "no"
|
||||
FILES= tmac.m
|
||||
LINKS= ${TMACDIR}/tmac.m ${TMACDIR}/tmac.mse
|
||||
FILESDIR= ${TMACDIR}
|
||||
.endif
|
||||
|
||||
SUBDIR= mm
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
.include <bsd.subdir.mk>
|
@ -1,31 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.8 2002/09/19 03:09:41 lukem Exp $
|
||||
|
||||
.include "../../Makefile.path"
|
||||
|
||||
DIST= ${IDIST}/contrib/mm/mm
|
||||
.PATH: ${DIST}
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
# XXX -- this depends on ../include/defs.h
|
||||
TMACDIR?= /usr/share/tmac
|
||||
|
||||
TMACOWN?= ${FILESOWN}
|
||||
TMACGRP?= ${FILESGRP}
|
||||
TMACMODE?= ${FILESMODE}
|
||||
|
||||
.if ${MKSHARE} != "no"
|
||||
FILES= 0.MT 5.MT 4.MT ms.cov se_ms.cov locale se_locale
|
||||
FILESDIR= ${TMACDIR}/mm
|
||||
.endif
|
||||
|
||||
CLEANFILES+=locale se_locale
|
||||
|
||||
realall: locale se_locale
|
||||
locale: Makefile
|
||||
touch ${.TARGET}
|
||||
|
||||
se_locale: Makefile
|
||||
touch ${.TARGET}
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,12 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.9 2001/04/19 14:41:33 wiz Exp $
|
||||
|
||||
.include "../Makefile.path"
|
||||
|
||||
DIST= ${IDIST}/src/roff/nroff
|
||||
.PATH: ${DIST}
|
||||
|
||||
MAN= nroff.1
|
||||
SCRIPTS= nroff.sh
|
||||
|
||||
.include "../../Makefile.inc"
|
||||
.include <bsd.prog.mk>
|
@ -1,87 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Emulate nroff with groff.
|
||||
|
||||
prog="$0"
|
||||
# Default device.
|
||||
# First try the "locale charmap" command, because it's most reliable.
|
||||
# On systems where it doesn't exist, look at the environment variables.
|
||||
# XXX: commented out because /bin/sh doesn't like not finding "locale",
|
||||
# and ignores the error redirection in this case.
|
||||
#case "`locale charmap 2>/dev/null`" in
|
||||
# UTF-8)
|
||||
# T=-Tutf8 ;;
|
||||
# ISO-8859-1)
|
||||
# T=-Tlatin1 ;;
|
||||
# IBM-1047)
|
||||
# T=-Tcp1047 ;;
|
||||
# *)
|
||||
case "${LC_ALL-${LC_CTYPE-${LANG}}}" in
|
||||
*.UTF-8)
|
||||
T=-Tutf8 ;;
|
||||
iso_8859_1 | *.ISO-8859-1)
|
||||
T=-Tlatin1 ;;
|
||||
*.IBM-1047)
|
||||
T=-Tcp1047 ;;
|
||||
*)
|
||||
case "$LESSCHARSET" in
|
||||
utf-8)
|
||||
T=-Tutf8 ;;
|
||||
latin1)
|
||||
T=-Tlatin1 ;;
|
||||
cp1047)
|
||||
T=-Tcp1047 ;;
|
||||
*)
|
||||
T=-Tascii ;;
|
||||
esac ;;
|
||||
# esac ;;
|
||||
esac
|
||||
opts=
|
||||
safer=-S
|
||||
|
||||
# `for i; do' doesn't work with some versions of sh
|
||||
|
||||
for i
|
||||
do
|
||||
case $1 in
|
||||
-h)
|
||||
opts="$opts -P-h" ;;
|
||||
-[eq] | -s*)
|
||||
# ignore these options
|
||||
;;
|
||||
-[mrnoT])
|
||||
echo "$prog: option $1 requires an argument" >&2
|
||||
exit 1 ;;
|
||||
-i | -[mrno]*)
|
||||
opts="$opts $1" ;;
|
||||
-Tascii | -Tlatin1 | -Tutf8 | -Tcp1047)
|
||||
T=$1 ;;
|
||||
-T*)
|
||||
# ignore other devices
|
||||
;;
|
||||
-S)
|
||||
# safer behaviour
|
||||
safer=-S ;;
|
||||
-U)
|
||||
# unsafe behaviour
|
||||
safer=-U ;;
|
||||
-u*)
|
||||
# Solaris 2.2 `man' uses -u0; ignore it,
|
||||
# since `less' and `more' can use the emboldening info.
|
||||
;;
|
||||
--)
|
||||
shift
|
||||
break ;;
|
||||
-)
|
||||
break ;;
|
||||
-*)
|
||||
echo "$prog: invalid option $1" >&2
|
||||
exit 1 ;;
|
||||
*)
|
||||
break ;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
# This shell script is intended for use with man, so warnings are
|
||||
# probably not wanted. Also load nroff-style character definitions.
|
||||
exec groff $safer -Wall -mtty-char $T $opts ${1+"$@"}
|
@ -1,14 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.9 2002/01/22 23:57:19 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/utils/pfbtops
|
||||
.PATH: ${DIST}
|
||||
|
||||
# XXX Because it uses libgroff
|
||||
PROG_CXX= pfbtops
|
||||
SRCS= pfbtops.c
|
||||
LDADD+= $(LIBGROFF)
|
||||
DPADD+= $(LIBGROFF)
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,18 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.16 2002/01/01 01:38:29 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/preproc/pic
|
||||
.PATH: ${DIST}
|
||||
|
||||
PROG_CXX= pic
|
||||
SRCS= lex.cc main.cc object.cc common.cc troff.cc tex.cc pic.cc
|
||||
CPPFLAGS+= -I. -I${DIST}
|
||||
LDADD+= $(LIBGROFF) -lm
|
||||
DPADD+= $(LIBGROFF) $(LIBM)
|
||||
DPSRCS+= pic_tab.h
|
||||
CLEANFILES+= pic.cc
|
||||
|
||||
lex.o pic_tab.h: pic.cc
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,18 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.12 2002/01/01 01:38:29 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/preproc/refer
|
||||
.PATH: ${DIST}
|
||||
|
||||
PROG_CXX= refer
|
||||
SRCS= command.cc ref.cc refer.cc token.cc label.cc
|
||||
CPPFLAGS+= -I. -I${DIST}
|
||||
LDADD+= $(LIBBIB) $(LIBGROFF) -lm
|
||||
DPADD+= $(LIBBIB) $(LIBGROFF) $(LIBM)
|
||||
DPSRCS+= label_tab.h
|
||||
CLEANFILES+= label.cc
|
||||
|
||||
label_tab.h: label.cc
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,13 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.8 2002/01/01 01:38:29 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/preproc/soelim
|
||||
.PATH: ${DIST}
|
||||
|
||||
PROG_CXX= soelim
|
||||
SRCS= soelim.cc
|
||||
LDADD+= $(LIBGROFF)
|
||||
DPADD+= $(LIBGROFF)
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,13 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.11 2002/01/01 01:38:29 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/preproc/tbl
|
||||
.PATH: ${DIST}
|
||||
|
||||
PROG_CXX= tbl
|
||||
SRCS= main.cc table.cc
|
||||
LDADD+= $(LIBGROFF) -lm
|
||||
DPADD+= $(LIBGROFF) $(LIBM)
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,13 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.9 2002/01/01 01:38:29 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/utils/tfmtodit
|
||||
.PATH: ${DIST}
|
||||
|
||||
PROG_CXX= tfmtodit
|
||||
SRCS= tfmtodit.cc
|
||||
LDADD+= $(LIBGROFF) -lm
|
||||
DPADD+= $(LIBGROFF) $(LIBM)
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,32 +1,81 @@
|
||||
# $NetBSD: Makefile,v 1.12 2001/04/19 14:41:43 wiz Exp $
|
||||
# $FreeBSD: src/gnu/usr.bin/groff/tmac/Makefile,v 1.41 2003/05/01 13:22:21 ru Exp $
|
||||
|
||||
.include "../Makefile.path"
|
||||
TMACOWN?= ${BINOWN}
|
||||
TMACGRP?= ${BINGRP}
|
||||
TMACMODE?= ${NOBINMODE}
|
||||
TMACDIR?= ${SHAREDIR}/tmac
|
||||
MDOCDIR?= ${TMACDIR}/mdoc
|
||||
|
||||
.PATH: ${IDIST}/tmac
|
||||
MAN= groff_ms.7 groff_man.7 groff_me.7 groff_mdoc.7
|
||||
MAN+= groff_trace.7 groff_www.7
|
||||
MLINKS= groff_ms.7 ms.7
|
||||
MLINKS+= groff_man.7 man.7
|
||||
MLINKS+= groff_me.7 me.7
|
||||
MLINKS+= groff_mdoc.7 mdoc.7 groff_mdoc.7 mdoc.samples.7
|
||||
|
||||
.include <bsd.own.mk>
|
||||
CLEANFILES= ${MAN} ${MDOCFILES:S/$/-s/} ${STRIPFILES:S/$/-s/} ${SPECIALFILES:S/$/-s/}
|
||||
|
||||
# XXX -- this depends on ../include/defs.h
|
||||
TMACDIR?= /usr/share/tmac
|
||||
NORMALFILES= mandoc.tmac andoc.tmac an-old.tmac \
|
||||
me.tmac \
|
||||
mdoc.tmac \
|
||||
pic.tmac \
|
||||
a4.tmac \
|
||||
papersize.tmac \
|
||||
ec.tmac \
|
||||
safer.tmac \
|
||||
trace.tmac \
|
||||
ps.tmac psold.tmac pspic.tmac psatk.tmac \
|
||||
dvi.tmac \
|
||||
tty.tmac tty-char.tmac \
|
||||
latin1.tmac latin2.tmac latin9.tmac cp1047.tmac \
|
||||
X.tmac Xps.tmac \
|
||||
lj4.tmac \
|
||||
lbp.tmac \
|
||||
html.tmac html-end.tmac \
|
||||
europs.tmac \
|
||||
composite.tmac \
|
||||
eqnrc \
|
||||
troffrc troffrc-end \
|
||||
hyphen.us hyphenex.us
|
||||
SPECIALFILES= an.tmac man.tmac s.tmac ms.tmac www.tmac
|
||||
STRIPFILES= e.tmac doc.tmac mdoc.local
|
||||
MDOCFILES= doc-common doc-ditroff doc-nroff doc-syms \
|
||||
fr.ISO8859-1 ru.KOI8-R
|
||||
|
||||
TMACOWN?= ${FILESOWN}
|
||||
TMACGRP?= ${FILESGRP}
|
||||
TMACMODE?= ${FILESMODE}
|
||||
all: ${MDOCFILES:S/$/-s/} ${STRIPFILES:S/$/-s/} ${SPECIALFILES:S/$/-s/}
|
||||
|
||||
# don't install groff_mdoc.7 and groff_mdoc.samples.7, ours are newer
|
||||
# also don't install groff_me.7, since we're using our own tmac.e and me.7
|
||||
MAN= groff_man.7 groff_markup.7 groff_ms.7 groff_msafer.7 \
|
||||
groff_tmac.5
|
||||
MLINKS= groff_ms.7 ms.7 groff_msafer.7 msafer.7
|
||||
.for f in ${MDOCFILES} ${STRIPFILES}
|
||||
$f-s: $f
|
||||
sed -f ${DIST_DIR}/strip.sed ${.ALLSRC} > ${.TARGET}
|
||||
.endfor
|
||||
|
||||
.if ${MKSHARE} != "no"
|
||||
FILES= tmac.pic tmac.ps tmac.psnew tmac.psold tmac.pspic tmac.psatk \
|
||||
tmac.dvi tmac.tty tmac.tty-char tmac.X tmac.Xps tmac.latin1 \
|
||||
tmac.lj4 tmac.safer tmac.a4 tmac.s tmac.an man.local eqnrc \
|
||||
troffrc tmac.arkup tmac.html tmac.trace troffrc-end
|
||||
.for f in ${SPECIALFILES}
|
||||
$f-s: $f
|
||||
sed -e "s;@TMAC_AN_PREFIX@;${tmac_an_prefix};g" \
|
||||
-e "s;@TMAC_S_PREFIX@;${tmac_s_prefix};g" \
|
||||
-e "s;@PNMTOPS_NOSETPAGE@;pnmtops;g" \
|
||||
${.ALLSRC} > ${.TARGET}
|
||||
.endfor
|
||||
|
||||
FILESDIR= ${TMACDIR}
|
||||
FILESNAME_tmac.an=tmac.an.old
|
||||
beforeinstall:
|
||||
cd ${DIST_DIR}; \
|
||||
${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
||||
${NORMALFILES} ${DESTDIR}${TMACDIR}
|
||||
cd ${.CURDIR}; \
|
||||
${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
||||
hyphen.ru ${DESTDIR}${TMACDIR}
|
||||
cd ${.OBJDIR}
|
||||
.for f in ${STRIPFILES} ${SPECIALFILES}
|
||||
${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
||||
$f-s ${DESTDIR}${TMACDIR}/$f
|
||||
.endfor
|
||||
.for f in ${MDOCFILES}
|
||||
${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
||||
$f-s ${DESTDIR}${MDOCDIR}/$f
|
||||
.endfor
|
||||
.if !exists(${DESTDIR}${TMACDIR}/man.local)
|
||||
${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
|
||||
${DIST_DIR}/man.local ${DESTDIR}${TMACDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,34 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.19 2002/01/01 01:38:30 thorpej Exp $
|
||||
|
||||
.include "../Makefile.lib"
|
||||
|
||||
DIST= ${IDIST}/src/roff/troff
|
||||
.PATH: ${DIST}
|
||||
|
||||
PROG_CXX= troff
|
||||
SRCS= column.cc dictionary.cc div.cc env.cc input.cc node.cc \
|
||||
number.cc reg.cc symbol.cc majorminor.cc
|
||||
LDADD+= $(LIBGROFF) -lm
|
||||
DPADD+= $(LIBGROFF) $(LIBM)
|
||||
|
||||
CLEANFILES+= majorminor.cc
|
||||
majorminor.cc: $(IDIST)/VERSION
|
||||
@echo Making $@
|
||||
@-rm -f $@
|
||||
@echo const char \*major_version = \
|
||||
\"`sed -e 's/^\([^.]*\)\..*$$/\1/' $(IDIST)/VERSION`\"\; >$@
|
||||
@echo const char \*minor_version = \
|
||||
\"`sed -e 's/^[^.]*\.\([0-9]*\).*$$/\1/' $(IDIST)/VERSION`\"\; >>$@
|
||||
@echo const char \*revision = \"`cat $(IDIST)/REVISION`\"\; >>$@
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
# XXX -- this depends on ../include/defs.h
|
||||
TMACDIR=/usr/share/tmac
|
||||
|
||||
.if ${MKSHARE} != "no"
|
||||
FILES=hyphen.us
|
||||
FILESDIR=${TMACDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -1,41 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.11 2002/02/09 09:22:43 lukem Exp $
|
||||
|
||||
.include "../Makefile.path"
|
||||
|
||||
DIST= ${IDIST}/src/xditview
|
||||
.PATH: ${DIST}
|
||||
|
||||
.if exists(/usr/X11)
|
||||
XINCDIR= /usr/X11/include
|
||||
XLIBDIR= /usr/X11/lib
|
||||
.elif exists(/usr/X11R6)
|
||||
XINCDIR= /usr/X11R6/include
|
||||
XLIBDIR= /usr/X11R6/lib
|
||||
.elif exists(/usr/X11R5)
|
||||
XINCDIR= /usr/X11R5/include
|
||||
XLIBDIR= /usr/X11R5/lib
|
||||
.elif exists(/usr/X11R4)
|
||||
XINCDIR= /usr/X11R4/include
|
||||
XLIBDIR= /usr/X11R4/lib
|
||||
.elif exists(/usr/X386)
|
||||
XINCDIR= /usr/X386/include
|
||||
XLIBDIR= /usr/X386/lib
|
||||
.endif
|
||||
|
||||
.if defined(XINCDIR) && defined(XLIBDIR)
|
||||
BINDIR= /usr/bin
|
||||
|
||||
PROG= gxditview
|
||||
CPPFLAGS+= -I$(XINCDIR) -DFONTPATH=\"/usr/share/groff_font\"
|
||||
SRCS+= xditview.c Dvi.c draw.c font.c lex.c page.c parse.c \
|
||||
XFontName.c DviChar.c device.c
|
||||
LDADD+= -Wl,-R$(XLIBDIR) -L$(XLIBDIR) -lXaw -lXmu -lXt -lXext -lX11 -lm
|
||||
DPADD+= $(LIBM)
|
||||
|
||||
afterinstall:
|
||||
${INSTALL_FILE} -o $(BINOWN) -g $(BINGRP) -m 444 \
|
||||
$(.CURDIR)/GXditview.ad \
|
||||
$(DESTDIR)$(XLIBDIR)/X11/app-defaults/GXditview
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
Loading…
Reference in New Issue
Block a user