aboutsummaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)AuthorFilesLines
2017-01-31build: properly strip elf executablesChristian Hesse1-5/+8
We had several elf executables that were not stripped properly. Move the filenames to a dedicated variable and use that to not miss anything.
2017-01-27vis-digraph: add utility to handle digraphsjosuah1-4/+7
Hook it up via Lua to <C-k> in insert and replace mode. Close #460 #475
2017-01-19text-regex: add regex backend based on libtreMarc André Tanner1-4/+8
While memory consumption should be improved, backward searches will still be slow, because they are implemented in terms of repeated forward searches. It needs to be investigated whether the underlying automaton can have its transitions reversed and essentially run backwards, as is the case in sam.
2017-01-16man: add man page for vis-complete(1)Christian Hesse1-1/+1
Signed-off-by: Christian Hesse <mail@eworm.de>
2017-01-16make: define EXECUTABLES and install in a loopChristian Hesse1-17/+14
Define EXECUTABLES and install in a loop. Also fix uninstalling man pages.
2016-12-27build: pass $CFLAGS_EXTRA through make debug targetMarc André Tanner1-1/+1
2016-12-22build: do not install lua/doc directoryMarc André Tanner1-0/+1
2016-12-22build: also include working tree state in version informationMarc André Tanner1-1/+1
2016-12-15build: move $CFLAGS_DEBUG into config.mkMarc André Tanner1-9/+5
This allows inclusion in other Makefiles (e.g. for C unit tests).
2016-12-13build: add configure options for built-in lpeg supportMarc André Tanner1-4/+4
2016-12-12Allow building lpeg into visMichael Forney1-0/+2
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é Tanner1-3/+3
2016-12-07Move all lua related files to lua/ subfolderMarc André Tanner1-3/+3
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é Tanner1-3/+5
2016-12-05vis-lua: add preliminary version of LDoc based Lua API documentationMarc André Tanner1-0/+4
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é Tanner1-1/+1
This avoids warnings like: "_FORTIFY_SOURCE requires compiling with optimization".
2016-12-02build: simplify manual page installationMarc André Tanner1-9/+5
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é Tanner1-0/+8
Uses mandoc(1) to generate manual pages in HTML format.
2016-11-30man: use hard coded dates in manual pagesMarc André Tanner1-3/+3
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 Forney1-3/+3
%m is the decimal month value, not the day of the month.
2016-11-18Fix date command in man page installationMichael Forney1-3/+3
With a single $, make will try to expand it as a variable.
2016-11-10build: add Makefile target for code coverage via gcovMarc André Tanner1-2/+5
2016-11-09build: make `vis -v` version output more robustMarc André Tanner1-1/+1
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é Tanner1-0/+2
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 Allen1-0/+2
2016-06-16vis-clipboard: Add a manpage.Tim Allen1-0/+2
2016-05-28[vis-menu] Add a manpage.Tim Allen1-1/+3
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é Tanner1-4/+5
2016-05-19vis-menu: change version outputMarc André Tanner1-1/+1
2016-05-19Import slmenu 7e74fa5 as vis-menuMarc André Tanner1-4/+7
2016-05-16vis: introduce vis-menu helper scriptMarc André Tanner1-0/+2
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é Tanner1-3/+5
2016-04-29vis: move non-configuration sections out of visrc.lua into vis.luaMarc André Tanner1-1/+1
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é Tanner1-2/+3
Close #231
2016-04-19Fix vis-test git submodule integrationMarc André Tanner1-1/+1
2016-04-19Integrate vis-test git submoduleMarc André Tanner1-1/+9
2016-04-03sam: unify vi(m) and sam command lineMarc André Tanner1-1/+1
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é Tanner1-1/+6
2016-03-25Set version to 0.2Marc André Tanner1-1/+1
2016-03-23fix install prefix for standalone buildChristian Hesse1-0/+6
2016-03-23vis: use vis-clipboard instead of vis-{copy,paste} scriptsMarc André Tanner1-6/+3
2016-03-21build: reorder some variablesMarc André Tanner1-1/+1
2016-03-21build: create empty config.mk if it does not existMarc André Tanner1-0/+3
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 Hesse1-1/+1
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é Tanner1-5/+5
2016-03-21build: overhaul build system auto detect stuff using a configure scriptMarc André Tanner1-170/+30
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é Tanner1-2/+2
2016-02-16Update make standalone to use musl-1.1.13Marc André Tanner1-2/+2
2016-01-30Implement system clipboard registers "* and "+Marc André Tanner1-0/+6
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é Tanner1-1/+1