summaryrefslogtreecommitdiffstats
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
...
* When BUILD_DB is active, link apropos(1) into the mandoc binary.Ingo Schwarze2014-08-161-10/+8
| | | | | This is the first step on the way to a man(1) implementation. The new ./configure is flexible enough to make this step quite easy.
* Improve build system and autodetection.Ingo Schwarze2014-08-161-109/+19
| | | | | | | | | * Make ./configure standalone, that's what people expect. * Let people write a ./configure.local from scratch, not edit existing files. * Autodetect wchar, sqlite3, and manpath and act accordingly. * Autodetect the need for -L/usr/local/lib and -lutil. * Get rid of config.h.p{re,ost}, let ./configure only write what's needed. * Let ./configure write a Makefile.local snippet, that's quite flexible.
* typo in comment; Guy Harris <guy at alum dot mit dot edu>Ingo Schwarze2014-08-121-1/+1
|
* work around lack of d_namlen and ALIGN/ALIGNBYTES on LinuxIngo Schwarze2014-08-111-1/+3
|
* Provide a fallback version of fts(3) for systems lacking it.Ingo Schwarze2014-08-111-4/+5
| | | | | | I chose the OpenBSD version because it apparently contains various bugfixes that never made it into libnbcompat. To reduce size and complexity, i stripped out the features we don't need.
* Get rid of HAVE_CONFIG_H, it is always defined; idea from libnbcompat.Ingo Schwarze2014-08-101-2/+2
| | | | | | Include <sys/types.h> where needed, it does not belong in config.h. Remove <stdio.h> from config.h; if it is missing somewhere, it should be added, but i cannot find a *.c file where it is missing.
* Clarifications in comments and standard output suggested byIngo Schwarze2014-08-101-3/+4
| | | | Paul Onyschuk <ptmelville at gmail dot com> (Alpine Linux)
* Do not hardcode stuff in ./configure that is actually user-configurableIngo Schwarze2014-08-081-1/+2
| | | | | | in the Makefile; instead, pass it down via the environment just like CFLAGS. Nice suggestion from kristaps@ hoping to make MacOS X happier.
* add INSTALL and bump VERSIONIngo Schwarze2014-08-081-2/+3
|
* Since old SQLite versions do not have sqlite3_errstr(),Ingo Schwarze2014-08-051-0/+3
| | | | | | | | | provide a dummy fallback implementation. Do not bother to decode the error, SQLite error codes are not useful enough for that to be worthwhile. Note that using sqlite3_errmsg(db) would be a bad idea: On malloc() failure, db is NULL, which would cause a segfault. Issue noticed by kristaps@.
* Portability fix:Ingo Schwarze2014-08-051-3/+4
| | | | | | | | * POSIX syntax is 'include Makefile.depend', not '.include "Makefile.depend"' * gmake(1) runs the build rule for the included file (duh), so delete the rule * consequently, we have to mark the 'depend' maintainer target .PHONY * as it's now .PHONY anyway, drop some prerequisites that are now useless Issue noticed by kristaps@.
* Sync library documentation with reality.Ingo Schwarze2014-08-051-1/+8
| | | | | Split mandoc_escape(3), mandoc_malloc(3), and mchars_alloc(3) out of mandoc(3), adding lots of new information.
* Switch to autogenerated dependency rules; they are less error-prone.Ingo Schwarze2014-08-051-94/+78
| | | | Provide a maintainer target to regenerate them.
* Properly partition the build system and install some missing stuff:Ingo Schwarze2014-08-051-14/+55
| | | | | | | | | | | * Introduce targets base-build, db-build, cgi-build. * Introduce targets base-install, db-install, cgi-install. * Introduce a BUILD_TARGETS variable to contain db-build and cgi-build. * Introduce an INSTALL_TARGETS variable and fill it using BUILD_TARGETS. * Install the whatis(1) and makewhatis(8) binaries. * Install the apropos(1), whatis(1), and makewhatis(8) manuals. * Install mandoc_aux.h. * Do not build manpage(1) by default.
* Various minor corrections:Ingo Schwarze2014-08-051-5/+16
| | | | | | | | * Do not unconditionally use -I/usr/local/include and -L/usr/local/lib. * Do not install programs and libs root-writeable. * Add missing test-strcasestr.c and test-strsep.c to TESTSRCS. * Add missing cgi.h.example and mandoc_html.3 to SRCS. * Add missing mandoc_html.3.html to WWW_MANS.
* sort user settings; no functional changeIngo Schwarze2014-08-051-19/+34
|
* remove strnlen(3) compat, we no longer use itIngo Schwarze2014-08-041-3/+0
|
* Install the manuals of the web interface below the same directoryIngo Schwarze2014-07-131-0/+4
| | | | | | | | as manpath.conf, such that we do not need to mix our own documentation into the documentation we are serving, which may not even be possible if the latter is updated automatically. Based on an idea by beck@.
* No need for run-time configuration, add minimal compile-timeIngo Schwarze2014-07-121-1/+5
| | | | | configuration facilities, just two paths and two HTML strings. Show the title on all pages, not just the index page.
* Full rewrite of the man.cgi(8) manual.Ingo Schwarze2014-07-101-2/+2
| | | | | | | | | | | | Almost everything in the old man.cgi(7) was outdated in one way or another - catman, catman.conf, CACHE_DIR, /cache, manroots, replacing '/' with spaces, /tmp... Instead, document the HTML and URI interfaces, the output and the setup, and complete the listings of ENVIRONMENT variables and FILES. Using section 8 instead of section 7 because that's the usual place for CGI programs, see for example bgplg(8) and slowcgi(8).
* Switch over man.cgi to SQLite. While here:Ingo Schwarze2014-07-091-1/+16
| | | | | | | * Simplify pathgen(), just use the subdirs of the cache dir. * Simplify URI paths, just use show/<manpath>/<filename>. * Drop struct paths, just use plain strings. * Garbage collect unused headers.
* let the build system cope with the recent ohash changesIngo Schwarze2014-06-201-0/+4
|
* Various Makefile improvements:Ingo Schwarze2014-04-241-20/+43
| | | | | | | | * Use sha256 rather than md5. * Update .h dependencies for some objects. * Provide `www' target to build everything needed for the web site. * Move .SUFFIXES and .PHONY technicalities to the bottom. * State Copyright and license, just for clarity.
* Audit malloc(3)/calloc(3)/realloc(3) usage.Ingo Schwarze2014-04-231-0/+3
| | | | | | | * Change eight reallocs to reallocarray to be safe from overflows. * Change one malloc to reallocarray to be safe from overflows. * Change one calloc to reallocarray, no zeroing needed. * Change the order of arguments of three callocs (aesthetical).
* add a LICENSE file for clarity and for the convenience of portersIngo Schwarze2014-04-221-1/+2
|
* Slowly, the dust begins to settle.Ingo Schwarze2014-04-181-9/+9
| | | | | We are keeping the traditional name makewhatis(8). No content change.
* Document the database format and SQL code generation;Ingo Schwarze2014-04-151-4/+12
| | | | suggested by kristaps@ and espie@.
* The files mandoc.c and mandoc.h contained both specialised low-levelIngo Schwarze2014-03-231-3/+7
| | | | | | | functions used for multiple languages (mdoc, man, roff), for example mandoc_escape(), mandoc_getarg(), mandoc_eos(), and generic auxiliary functions. Split the auxiliaries out into their own file and header. While here, do some #include cleanup.
* - remove index.html, it is now part of the website repoIngo Schwarze2014-03-031-38/+30
| | | | | - install mandocdb, manpage, and apropos - and some general cleanup (e.g., installcgi is .PHONY)
* Get rid of the local keys table, use the new mansearch_const.c.Ingo Schwarze2014-01-191-2/+2
| | | | No functional change.
* Support a second -v on mandocdb(8) to show keys while they are being added;Ingo Schwarze2014-01-191-1/+2
| | | | | i need that for debugging, in particular to be used with -t. To be able to do so, provide a global table of key names, for reuse.
* Put mansearch.{h,c}, manpage.c, and compat_ohash.{h,c}Ingo Schwarze2014-01-041-2/+7
| | | | into the distribution tarball. Bump VERSION.
* Put ./configure into the distributin tarball.Ingo Schwarze2014-01-041-1/+3
|
* Even though strnlen(3) is required by POSIX 2008,Ingo Schwarze2014-01-041-0/+3
| | | | | | Matthias Scheler reports than Solaris 10 lacks it. While here, sort the declarations in config.h and move the headers to the top.
* Clean up feature tests:Ingo Schwarze2014-01-041-51/+12
| | | | | | * Split the configure steering script out of the Makefile. * Let the configure step depend on the test sources. * Clean up the test programs such that they can be run.
* Provide strcasestr(3) and strsep(3) for Solaris 10 compat;Ingo Schwarze2013-12-311-1/+13
| | | | reported missing by Matthias Scheler <tron at NetBSD> via wiz@.
* release 1.12.3VERSION.1.12.3Ingo Schwarze2013-12-311-2/+2
|
* Put VERSION into config.h.Ingo Schwarze2013-10-061-1/+2
| | | | | | This makes life easier for downstream maintainers having more than one Makefile, for example DragonFly and FreeBSD. Suggested by Franco Fichtner <franco at lastsummer dot de>.
* merge from VERSION_1_12: do not complain about unused variables in test-*.cIngo Schwarze2013-10-051-7/+7
|
* Merge from VERSION_1_12, in particular release date, pkgsrc port version,Ingo Schwarze2013-10-051-1/+1
| | | | link to NEWS file, link to Alpine Linux, and fix one FreeBSD link.
* Merge from branch VERSION_1_12:Ingo Schwarze2013-10-021-9/+17
| | | | | | | | | - add the new SCRS files NEWS and gmdiff - add tbl.3 to SRCS, INDEX_MANS, and install - bring back the SCRS files apropos.{c,1} that somehow got lost - bring back the INDEX_MANS apropos.1.html that also got lost - update VERSION, VDATE, and OSNAME - improve comment regarding STATIC
* Stop producing xhtml/pdf/etc for webpage (logs indicate that nobody actuallyKristaps Dzonsons2012-06-091-61/+1
| | | | looks at them).
* Merge whatis.1 into apropos.1 (and remove), add whatis bits to aproposKristaps Dzonsons2012-06-091-5/+4
| | | | (via mansearch), and merge mandocdb.h into mansearch.h (and remove).
* Remove catman(8): it's superfluous.Kristaps Dzonsons2012-06-091-1/+1
| | | | | | | | Users of man.cgi should be able to just copy in their directories and have the CGI fine everything on its own or just suck it up or, in the cases of multiple manroots, have a simple config file. Besides, now that mandocdb(8) is using relative paths for everything, needing a fancy "cp -R" is silly.
* Add a compatibility interface for ohash.Kristaps Dzonsons2012-06-091-1/+7
| | | | | | | | | | This include's espie@'s wholesale src/lib/libc/ohash directory from OpenBSD into compat_ohash.c (with a single copyright/license notice at the top) and src/include/ohash.h as compat_ohash.h. The ohash_int.h part of compat_ohash.c has been changed only in that ohash.h points to compat_ohash.h. Added HAVE_OHASH test (test-ohash.c) to Makefile. In mandocdb.c and mansearch.c, check HAVE_OHASH test for inclusion.
* Remove lint from Makefile.Kristaps Dzonsons2012-06-081-239/+41
| | | | | | | Disable some parts of the build (man.cgi, etc.) while sqlite3 is being merged in nice and slow. Remove the bit swapping stuff in config.h.post. Remove apropos_db (replaced by mansearch).
* Get ready for a version.Kristaps Dzonsons2012-03-241-3/+2
|
* Remove some Mac OS crap in the Makefile.Kristaps Dzonsons2012-03-231-6/+10
|
* Don't run superfluous mkdir when installing.Kristaps Dzonsons2012-03-231-1/+0
|
* Continue changing mandoc.{index,db} into whatis.{index,db}. Use mandocdb.hKristaps Dzonsons2011-12-251-1/+1
| | | | to do so.