summaryrefslogtreecommitdiff
path: root/Makefile.comm
Commit message (Collapse)AuthorAgeFilesLines
* * contrib/mom/Makefile.sub: Fix last change to make it really work.wlemb2003-09-011-28/+30
| | | | | | | * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'. (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and $(DEVFILES) are not empty. * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
* * doc/Makefile.sub: Not all shells expand wildcards in the `for'wlemb2003-08-081-3/+3
| | | | | | | | | | | | | argument list. Use `ls' to expand, similar to autoconf. * Makefile.comm (install_dev, uninstall_dev): Protect `for' against empty argument lists. * doc/groff.texinfo: Improve documentation how vertical spacing and line breaks interact. Other minor fixes. * tmac/www.tmac: Initialize `www-htmlimage-gap'.
* * Makefile.in (SHELL): Define as @SHELL@.wlemb2003-07-011-1/+0
| | | | | | (mkinstalldirs): Use $(SHELL). (MDEFINES): Add $(SHELL). * Makefile.comm (SHELL): Removed.
* Renamed all `*.cc' files to `*.cpp'.wlemb2003-04-151-10/+10
| | | | Updated all configuration files, makefiles, and documentation.
* * Makefile.comm (depend.temp): Check location of YTABC.wlemb2003-04-071-1/+6
|
* * contrib/mom/Makefile.sub (GROFFBIN): New variable for groffwlemb2003-04-051-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | binary path. (groff_bin_path): Rename to GROFF_BIN_PATH. (GROFF): Use GROFFBIN and GROFF_BIN_PATH. * doc/Makefile.in (TROFFBIN): New variable for troff binary path. (GROFFBIN): New variable for groff binary path. (groff_bin_path): Rename to GROFF_BIN_PATH. (TROFF): Use TROFFBIN. (GROFF): Use GROFFBIN and GROFF_BIN_PATH. * doc/Makefile.sub (GROFFBIN): New variable for groff binary path. (groff_bin_path): Rename to GROFF_BIN_PATH. (GROFF): Use GROFFBIN and GROFF_BIN_PATH. * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS with INSTALL_SCRIPT. (uninstall_dev): Uninstall scripts from DEVSCRIPTS. * Makefile.dev (all): Depend on DEVSCRIPTS. (install_dev): Likewise. * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold scripts. * font/devps/Makefile.sub (DEVSCRIPTS): Likewise. (DEVGENSCRIPTS): New variable to hold generated scripts. * src/libs/libdriver/input.cc (IntArray::operator[], IntArray::get_data): Remove meaningless `const' in return value. * README.CVS: New file.
* * Makefile.in (LIBEXT): New variable to indicate the file extensionwlemb2003-03-171-3/+3
| | | | | | | | | | | | | | of library files. Computed heuristically from $(OBJEXT). (MDEFINES): Add $(LIBEXT). * Makefile.lib, Makefile.comm: Use it. * src/utils/pfbtops/pfbtops.c (get_text): New function. Split overlong lines into smaller chunks. (get_binary): New function. (main): Use them. * src/utils/pfbtops/pfbtops.man: Updated. * src/roff/groff/groff.man: Minor syntax fix.
* Add a site-specific font directory.wlemb2002-09-161-2/+2
| | | | | | | | | | | | | | | | | | | * Makefile.in (localfontdir, legacyfontdir): New variables. (fontpath): Use them. (MDEFINES, uninstall_dirs): Updated. * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'. Remove `FONTPATH' and `MACROPATH'. * src/roff/troff/troff.man, NEWS: Updated. * doc/groff.texinfo (Font Directories): New section. Other minor fixes. * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man, src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man, src/preproc/grn/grn.man: Minor fixes. * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts): Remove unused variable.
* Use OBJEXT for the object file extension.wlemb2002-08-231-1/+7
| | | | | | | | * Makefile.comm (.SUFFIXES): Add .obj. (.cc.obj, .c.obj): New implicit rules. * Makefile.in (OBJEXT): New variable, initialized from autoconf. (MDEFINES): Add EXEEXT and OBJEXT. * */Makefile.sub: s/.o/.$(OBJEXT)/.
* * Makefile.comm (CLEANNOTSRCDIRADD): New target for files whichwlemb2002-06-031-35/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | should be removed only if builddir is not srcdir. (mostlyclean): Handle `CLEANNOTSRCDIRADD'. (clean): Depend on `mostlyclean'. (distclean): Depend on `clean'. (realclean, extraclean): Depend on `distclean'. (.y.cc, .y.o): Simplified. The output files are no longer written to srcdir but to builddir. * Makefile.in (MDEFINES): Add `version' and `revision'. (uninstall_dirs): Fix order of directories. * doc/Makefile.sub (version, revision): Removed. (CLEANADD): Removed grnexmpl.g, groff, groff-*. Added `HTMLDOCFILES'. (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*. * contrib/mom/Makefile.sub (uninstall_sub): Don't use `momdocdir' but `htmldocdir'. Add missing backslash. * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub, src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir' as prefix. * doc/texinfo.tex (\authortt): New macro. (\shortcontt): Define. (\titlepage): Set \tt to \authortt while defining \authorfont. (\appendixbox): New macro. (\chapmacro, \appendixentry): Use \appendixbox to get even indentation for letters. (\summarycontents): Set \tt. (\internalpagesize): Add two arguments for real paper width and height as needed by pdfTeX. (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex): Updated. (\tempdima, \tempdimb): New temporary dimensions. (\pagesizesyyy): Updated.
* Including the doc subdir into groff's Makefile system.wlemb2002-05-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * aclocal.m4 (GROFF_INSTALL_INFO): New function. * configure.ac: Use it. Generate `doc/Makefile'. * configure: Regenerated. * Makefile.in (infodir, INSTALL_INFO): New variables. (MDEFINES, uninstall_dirs): Updated. (OTHERDIRS): Add `doc'. * Makefile.comm (CLEANDIRADD): New variable. (mostlyclean): Use it. * doc/Makefile.sub, doc/Makefile.in: New files. * doc/Makefile: Removed. * NEWS, INSTALL: Updated. * doc/homepage.ms: Renamed to ... * doc/webpage.ms: This. Use `.NHR'. * contrib/mom/Makefile.sub (momdocdir): Removed. (HTMLDOCFILES): Prepend `momdoc/'. (EXTRAEXAMPLEFILES): Removed. Added entries to... (EXAMPLEFILES): This. (.SUFFIXES, .mom.ps): New. (prepare_make_examples): Updated. (examples/*.ps): Removed; .mom.ps will handle this. (install_data): Updated.
* Integrating the `mom' macro package, contributed by Peter Schaffterwlemb2002-05-231-0/+3
| | | | | | | | | | | | | <df191@ncf.ca>. * contrib/mom/*: New subdirectory tree. * Makefile.in (docdir, exampledir, htmldocdir): New variables to be used for documentation files. (MDEFINES, uninstall_dirs): Use them. (OTHERDIRS): Add contrib/mom. * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and @HTMLDOCDIR@. * MANIFEST, NEWS: Updated.
* * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- thewlemb2002-03-231-0/+22
| | | | | | | | | | | internal .y.o rule took precendence over the .y.cc rule, compiling the yacc files with gcc instead of g++. * tmac/dvi.tmac: Add replacement font for `CB'. * tmac/doc.tmac: s/request/macro/ in messages. (doc-generic-macro): Improve error message. * tmac/groff_mdoc.man: Minor improvements.
* Use a config.h file.wlemb2001-08-191-0/+1
| | | | | | | | | | | | | | | | | | | | * src/include/lib.h: Include config.h. * All C files: Ditto (if necessary). * All C++ source and header files: Include lib.h first (if necessary). * src/include/config.hin: New file (autogenerated by autoheader). * stamp-h.in: New file. * configure.ac: Updated. * aclocal.m4: Add third parameters to AC_DEFINE macros. (GROFF_ARRAY_DELETE): Simplified. * Makefile.sub (DISTCLEANFILES): Updated. Added targets for remaking config.status, config.hin, config.h, stamp-h.in, and stamp-h. * configure: Regenerated. * NEWS: Updated.
* * src/preproc/pic/pic.y (format_number): Use do_sprintf().wlemb2001-08-181-2/+2
| | | | | | | | | | | | | | | (do_sprintf): Use snprintf(). * src/libs/snprintf/*: Added an snprintf module written by Mark Martinec. * src/libs/libgroff/Makefile.sub: Updated. * configure.ac: Add test for snprintf(). * Makefile.in: Updated. * configure: Regenerated. * src/preproc/html/pre-html.cc (make_message): Reactivate code which uses snprintf().
* Add system tmac directory (/usr/local/lib/groff/site-tmac).wlemb2000-11-081-0/+3
| | | | | | | | | | | | | | | | | | | | * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir). (uninstall_dirs): Add $(libdir), $(libprogramdir), and $(systemtmacdir). Use @libdir@. * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@. * tmac/Makefile.sub (install_data): Create $(systemtmacdir) and $(localtmacdir). (uninstall_sub): Use $(systemtmacdir) for wrapper macros. * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man, NEWS, doc/groff.texinfo: Updated and minor fixes. * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again. * tmac/Makefile.sub: Added `wrap' stuff again, but installing into $(systemtmacdir) since the wrapper files are platform-dependent. * doc/groff.texinfo: Fix typo.
* * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.wlemb2000-10-261-2/+0
| | | | | | | * tmac/Makefile.sub: Adapted to new macro names; removed `wrap' stuff since it is no longer needed. * README, PROBLEMS: Updated.
* Add local tmac directory (groff/site-tmac).wlemb2000-10-241-0/+1
| | | | | | | | | * Makefile.in: Add $(localtmacdir). (uninstall_dirs): Add $(localtmacdir). * Makefile.comm (.man.n): Add @LOCALMACRODIR@. * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local in $(localtmacdir). Create $(localtmacdir). * man/roff.man, src/roff/troff/troff.man, NEWS: Updated.
* Move hyphen.us to tmac directory.wlemb2000-10-231-0/+1
| | | | | | | | | | | | | | | | * src/roff/troff/hyphen.us: Removed. * src/tmac/hyphen.us: Added. * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated. Change installation structure for data files from .../groff/... to .../groff/<version><revision>/... to be conform with other GNU programs. * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub, doc/Makefile, src/xditview/Imakefile.in: Implement it. * NEWS: Document it. * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
* Implement $GROFF_BIN_PATH environment variable (which defaults towlemb2000-10-221-1/+2
| | | | | | | | | | | | | | | | | $bindir) used for child programs of groff and similar wrappers. * gendefs.sh: Improve documentation. * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h), src/preproc/eqn/Makefile.sub (neqn), src/roff/nroff/Makefile.sub (nroff): Add $(bindir). * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement $GROFF_BIN_PATH. * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and $GROFF_PATH__ (the latter for communication with troff). * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if set. * src/roff/nroff/nroff.man, src/roff/groff/groff.man, doc/groff.texinfo: Document it.
* * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.wlemb2000-06-181-26/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (tfm::load, gf::load): Open tfm and gf files in binary mode: these are binary files. (main): Support non-Posix systems with several different styles of slash characters in file names. * src/utils/pfbtops/pfbtops.c: #include nonposix.h. (main) [SET_BINARY]: Switch stdin into binary mode. * src/utils/indxbib/indxbib.cc: #include nonposix.h. (main): Support file names with several possible slash-type characters, as given by DIR_SEPS[] in nonposix.h. (main) [__MSDOS__]: If renaming the temporary index file fails because it has more than one dot in its trunk, replace the dot with an underscore and try again. (do_file): Use FOPEN_RB instead of "r". Skip every CR before a Newline. [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character. * src/utils/hpftodit/hpftodit.cc: #include nonposix.h. (File::File): Open the input file in binary mode. Strip CR characters from each CR-LF pair. (xbasename): Support file names with several possible slash-type characters, as given by DIR_SEPS[] in nonposix.h. * src/include/Makefile.sub (HDRS): Add nonposix.h. * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>. (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG) [!_POSIX_VERSION]: Define for traditional Unix systems. (real_output_file::real_output_file): Remove the MSVC-specific call to popen, use instead POPEN_WT, appropriately defined on nonposix.h. #include nonposix.h. (real_output_file::~real_output_file): Remove the MSVC-specific call to pclose, a suitable macro is now defined on nonposix.h. Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG and WEXITSTATUS instead of assuming traditional Unix interpretation of the status returned by pclose. * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific call to popen, use POPEN_RT instead (appropriately defined on nonposix.h). #include nonposix.h. (ps_bbox_request): Open the PostScript file in binary mode. Close the file after processing it. (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on nonposix.h. * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]: A version of run_pipeline that doesn't use `fork'. (signal_catcher) [__MSDOS__ || _WIN32]: New function. (system_shell_name, system_shell_dash_c) (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide the ugliness of testing DOS/Windows file names for equality, and support both stock shells and ports of Unix shells. * src/roff/groff/groff.cc: #include nonposix.h. (BSHELL): Definition moved to nonposix.h. (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C instead of a literal "-c". (xbasename): Support file names with several possible slash-type characters, as given by DIR_SEPS[] in nonposix.h. (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead of literal strings. * src/preproc/soelim/soelim.cc: #include nonposix.h. (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'. * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to pic_tab.h. * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h. * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to eqn_tab.h. * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h. * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If P_tmpdir is defined, use it instead of the literal "/tmp". (remove_tmp_files, add_tmp_file): New functions. (xtmpfile): Record temporary files and register an atexit function to delete them explicitly, instead of relying on the OS to do that, which doesn't work on non-Unix systems. * src/libs/libgroff/searchpath.cc: #include nonposix.h. (search_path::search_path): Use PATH_SEP instead of a literal colon. (search_path::command_line_dir): Ditto. (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS, to support non-Posix systems. * src/libc/libbib/search.cc: #include nonposix.h. (search_list::add_file): Open the file in binary mode. * src/libs/libbib/linear.cc: #include nonposix.h. (file_buffer::load): Remove r characters preceding n from the loaded buffer. * src/libs/libbib/index.cc: #include nonposix.h. (make_index_search_item): Open index_filename in O_BINARY mode. (index_search_item_iterator::get_tag): Ditto. Remove r characters before n characters. (index_search_item::check_files): Open files in binary mode. (index_search_item::munge_filename): Support DOS-style file names with backslashes and drive letters, use IS_ABSOLUTE. * src/devices/grops/ps.cc: #include nonposix.h. (main) [SET_BINARY]: Switch stdout to binary mode. * src/devices/grolj4/lj4.cc: #include nonposix.h. (main) [SET_BINARY]: Switch stdout to binary mode. * src/devices/grolbp/lbp.cc: #include nonposix.h (fill_pattern) [SET_BINARY]: Switch stdout to binary mode. * src/devices/grodvi/dvi.cc: #include nonposix.h. [_MSC_VER]: Remove inclusion of Windows-specific headers (done by nonposix.h). (main) [SET_BINARY]: Switch stdout to binary mode. [_MSC_VER]: Remove an explicit call to _setmode. * src/include/nonposix.h: New file. * Makefile.in (ENVSETUP): New variable, to set up case-sensitive operation when building with DJGPP. ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS)) ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use ENVSETUP. * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on MS-DOS. (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH, etc. can include a semi-colon on DOS/Windows. (depend.temp): Use depend1.temp instead of depend.temp1, to prevent files from overerwiting each other on 8+3 filesystems. * gendef.sh (t): Change definition to work with DOS/Windows. doc/groff.texinfo: Apart of some typo corrections, I also changed some index entris, to make them more non-ambiguous, and also put @ignore around some parts that are not yet written, to allow the Info output be readable.
* * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).wlemb2000-03-121-1/+1
|
* Initial revisionwlemb2000-02-061-0/+259