1 # Copyright (C) 2002 Free Software Foundation, Inc.
2 # Written by Werner Lemberg (wl@gnu.org)
4 # This file is part of groff.
6 # groff is free software; you can redistribute it and/or modify it under
7 # the terms of the GNU General Public License as published by the Free
8 # Software Foundation; either version 2, or (at your option) any later
11 # groff is distributed in the hope that it will be useful, but WITHOUT ANY
12 # WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 # You should have received a copy of the GNU General Public License along
17 # with groff; see the file COPYING. If not, write to the Free Software
18 # Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 $(top_builddir)/roff/groff \
22 $(top_builddir)/roff/troff \
23 $(top_builddir)/devices/grops
24 groff_bin_path=`echo $(groff_bin_dirs) | sed -e 's| \+|:|g'`
26 FFLAG=-F$(top_builddir)/font
29 GROFF=GROFF_BIN_PATH=$(groff_bin_path); \
30 export GROFF_BIN_PATH; \
31 $(top_builddir)/src/roff/groff/groff $(FFLAG) $(TFLAG)
40 momdocdir=$(htmldocdir)/momdoc
62 examples/typeset.mom \
63 examples/typewrite.mom
67 examples/elvis_syntax \
70 PROCESSEDEXAMPLEFILES=\
77 $(PROCESSEDEXAMPLEFILES)
82 make_examples: prepare_make_examples $(PROCESSEDEXAMPLEFILES)
84 prepare_make_examples: $(srcdir)/examples/penguin.ps
85 test -d examples || $(mkinstalldirs) examples
88 examples/macros.ps: $(srcdir)/examples/macros.mom
89 $(GROFF) -Tps -mom $< >$@
91 examples/typeset.ps: $(srcdir)/examples/typeset.mom
92 $(GROFF) -Tps -mom $< >$@
94 examples/typewrite.ps: $(srcdir)/examples/typewrite.mom
95 $(GROFF) -Tps -mom $< >$@
97 install_data: $(NORMALFILES) \
98 $(EXAMPLEFILES) $(EXTRAEXAMPLEFILES) $(PROCESSEDEXAMPLEFILES)
99 -test -d $(tmacdir) || $(mkinstalldirs) $(tmacdir)
100 for f in $(NORMALFILES); do \
101 rm -f $(tmacdir)/$$f; \
102 $(INSTALL_DATA) $(srcdir)/$$f $(tmacdir)/$$f; \
104 -test -d $(momdocdir) || $(mkinstalldirs) $(momdocdir)
105 for f in $(HTMLDOCFILES); do \
106 rm -f $(momdocdir)/$$f; \
107 $(INSTALL_DATA) $(srcdir)/momdoc/$$f $(momdocdir)/$$f; \
109 -test -d $(exampledir) || $(mkinstalldirs) $(exampledir)
110 for f in $(EXAMPLEFILES) $(EXTRAEXAMPLEFILES) \
111 $(PROCESSEDEXAMPLEFILES); do \
112 rm -f $(exampledir)/$$f; \
113 $(INSTALL_DATA) $(srcdir)/$$f $(docdir)/$$f;
117 -for f in $(NORMALFILES); do \
118 rm -f $(tmacdir)/$$f; \
120 -for f in $(HTMLDOCFILES); do \
121 rm -f $(momdocdir)/$$f; \
124 -for f in $(EXAMPLEFILES) $(EXTRAEXAMPLEFILES) \
125 $(PROCESSEDEXAMPLEFILES); do \