summaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2016-12-15build: move $CFLAGS_DEBUG into config.mkMarc André Tanner
This allows inclusion in other Makefiles (e.g. for C unit tests).
2016-12-13build: add configure options for built-in lpeg supportMarc André Tanner
2016-12-12Allow building lpeg into visMichael Forney
If lpeg is built statically, this allows for a completely static vis binary that still supports syntax highlighting.
2016-12-08Move manual pages to man/ subfolderMarc André Tanner
2016-12-07Move all lua related files to lua/ subfolderMarc André Tanner
Also remove the lexers sub directory from the Lua search path. As a result we attempt to open fewer files during startup: $ strace -e open -o log ./vis +q config.h && wc -l log In order to avoid having to modifiy all lexers which `require('lexer')` we instead place a symlink in the top level directory. $ ./configure --disable-lua $ rm -rf lua Should result in a source tree with most lua specifc functionality removed.
2016-12-06vis-lua: more extensive Lua API documentationMarc André Tanner
2016-12-05vis-lua: add preliminary version of LDoc based Lua API documentationMarc André Tanner
A new Makefile target `luadoc` has been added which generates HTML documentation in the doc subfolder using ldoc(1) from https://stevedonovan.github.io/ldoc/ There are still a few problems to resovle, for example the links (e.g. in parameter lists) to our custom types seem to be broken. At this point only the C part of the Lua API is covered and even that is not yet complete.
2016-12-03build: do not define _FORTIFY_SOURCE for debug buildsMarc André Tanner
This avoids warnings like: "_FORTIFY_SOURCE requires compiling with optimization".
2016-12-02build: simplify manual page installationMarc André Tanner
The version substitution does not seem to work with BSD make because ${VERSION} is expanded to an empty string.
2016-12-02build: add new `make man` targetMarc André Tanner
Uses mandoc(1) to generate manual pages in HTML format.
2016-11-30man: use hard coded dates in manual pagesMarc André Tanner
Using the installation date might be misleading and harms reproducible builds. Omitting the dates completely might be dangerous because it seems to be a required field: The only firm requirement of the mdoc prologue is that the Dd macro comes first: many formatting systems will read up to the first macro to determine the formatting language. If Dd is not encountered first, the mdoc format may not be recognised. http://manpages.bsd.lv/mdoc.html
2016-11-18Fix date format string in man pagesMichael Forney
%m is the decimal month value, not the day of the month.
2016-11-18Fix date command in man page installationMichael Forney
With a single $, make will try to expand it as a variable.
2016-11-10build: add Makefile target for code coverage via gcovMarc André Tanner
2016-11-09build: make `vis -v` version output more robustMarc André Tanner
The `git describe` command fails in shallow checked out git repositories which do not include the tag information. At least include the git short hash.
2016-09-25vis: move file name and word completion logic to a shell scriptMarc André Tanner
The shell script should be reviewed for quoting issues, currently it allows command injections as in: $ vis-complete "'; rm -f some-file; echo " However it is intended for interactive usage and from within vis it is only ever called with a valid completion prefix. The file name completion logic now supports nested directories. Close #347
2016-06-21vis-open: Add a manpage.Tim Allen
2016-06-16vis-clipboard: Add a manpage.Tim Allen
2016-05-28[vis-menu] Add a manpage.Tim Allen
Unlike the existing vis(1) manpage, this uses the `mdoc` macro set because it's (very slightly) more modern, and OpenBSD only supports `mdoc` while everybody else supports both.
2016-05-19build: let make debug compile vis-menu with debug flagsMarc André Tanner
2016-05-19vis-menu: change version outputMarc André Tanner
2016-05-19Import slmenu 7e74fa5 as vis-menuMarc André Tanner
2016-05-16vis: introduce vis-menu helper scriptMarc André Tanner
This serves as a wrapper around dmenu(1) and slmenu(1), by default the latter is preferred because it also works without an X server. The program and its default arguments can be configured by means of the $VIS_MENU and $VIS_MENU_ARGS environment variables. Eventually we might decide to inlcude a stripped down version of slmenu in the vis source tree.
2016-05-11build: install support files only when neededMarc André Tanner
2016-04-29vis: move non-configuration sections out of visrc.lua into vis.luaMarc André Tanner
The intention is that vis.lua will provide parts of the Lua API not implemented in the C core. Please update your existing visrc.lua configuration file accordingly.
2016-04-20vis-lua: load files from directory specified with ./configure --sharedir=DIRMarc André Tanner
Close #231
2016-04-19Fix vis-test git submodule integrationMarc André Tanner
2016-04-19Integrate vis-test git submoduleMarc André Tanner
2016-04-03sam: unify vi(m) and sam command lineMarc André Tanner
The following vi commands have been dropped: - saveas - xit - ! The following commands are only recognized in their short form: - e (edit) - q (quit) - s (substitute) - w (write) - r (read)
2016-04-03build: explicitly list sources filesMarc André Tanner
2016-03-25Set version to 0.2Marc André Tanner
2016-03-23fix install prefix for standalone buildChristian Hesse
2016-03-23vis: use vis-clipboard instead of vis-{copy,paste} scriptsMarc André Tanner
2016-03-21build: reorder some variablesMarc André Tanner
2016-03-21build: create empty config.mk if it does not existMarc André Tanner
This should fix `make local` (as used on travis-ci) and `make standalone` in cases where `configure` was not run successfully due to missing dependencies.
2016-03-21configure: make vis depend on config.mkChristian Hesse
We want vis to be rebuilt when configuration changes, so make vis depend on config.mk.
2016-03-21build: add vis subdirectory to $SHAREPREFIXMarc André Tanner
2016-03-21build: overhaul build system auto detect stuff using a configure scriptMarc André Tanner
The new build instructions are: $ ./configure && make && sudo make install The configure script tries to auto detect support for various libraries and compiler options. These choices can be overwritten by explicitly specifing --{en,dis}able-{lua,selinux,acl}. See ./configure --help for all supported options. The configure script generates config.mk which should allow portable (among GNU and BSD make) Makefiles. Manually editing config.mk is still supported.
2016-02-28build: update make standalone to use musl-1.1.14Marc André Tanner
2016-02-16Update make standalone to use musl-1.1.13Marc André Tanner
2016-01-30Implement system clipboard registers "* and "+Marc André Tanner
Both registers are currently treated identically. The actual system integration is performed by two shell scripts vis-copy and vis-paste.
2016-01-14build: cleanup $LIBS variableMarc André Tanner
2016-01-09Makefile: Use $(MAKE) instead of directly calling `make`Michael Reed
This is basically the same as b18acc1.
2015-12-31Also remove vis-open when uninstallingMarc André Tanner
2015-12-29Clean up build systemMarc André Tanner
2015-12-26vis: move file type detection to visrc.luaMarc André Tanner
2015-12-26vis: refactor Lua integrationMarc André Tanner
Lua support can now be disabled at compile time using: $ make CONFIG_LUA=0 This commit also adds an initial Lua API and provides a few default hooks. We now also require Lua >= 5.2 due to the uservalue constructs. In principle the same functionality could be implemented using function environments from Lua 5.1.
2015-11-17ui: improve fallback code in case of unknown termMarc André Tanner
If the current $TERM value indicates 256 color support fall back to xterm-256color otherwise try xterm. Improves upon 43605fded457cec954600b688d54242341eedc7c Closes #105
2015-11-10build: do not clutter dependency/install with manual pagesMarc André Tanner
2015-11-10build: try to fix make standalone for multiarch systemsMarc André Tanner
Force ncurses libdir to be /usr/lib not /usr/lib64.