aboutsummaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)AuthorFilesLines
2018-03-09Added OS check in target 'vis-single-payloud.inc'Mitch Riedstra1-3/+21
Reading through the Github issues, it sounds as if this was meant for Linux and the if statement reflects that. If that's not the case it can be changed. FreeBSD's `od` has a different format compared to the GNU Coreutils version. The output format is also a little bit different. For some reason both `sed` and `gsed` on FreeBSD can't find the end of file if commands have been previously passed with `-e` so I pipe from sed into sed again. Added `-f -` to both tar commands to make it obvious as to where the output is going.
2017-07-23build: add git based version information backMarc André Tanner1-1/+1
2017-07-23build: set version to 0.4Marc André Tanner1-1/+1
2017-07-10vis: implement jump list in terms of marksMarc André Tanner1-1/+1
2017-07-08vis: cleanup marks implementationMarc André Tanner1-1/+1
We now use ' to refer to marks. Mark a is set using 'am and restored using 'aM while this is slightly harder to type than ma and 'a it is consistent with register usage for yank/put and allows a default mark to be used which is handy for quick selection manipulation primitives.
2017-07-04Remove conditional initialization from MakefileGeorge Brown1-7/+0
No longer needed after standalone build target was removed.
2017-06-03build: port self-contained executable to libuntarMarc André Tanner1-1/+1
It is currently not packaged by Alpine which is why we are building it during docker image creation. Also cleanup vis-single.
2017-06-02port self-contained executable to libtarChristian Hesse1-1/+1
libarchive is nice, but adds a lot of bloat we carry around without using it. So port to libtar.
2017-06-01build: produce reproducible self contained executableChristian Hesse1-3/+3
Giving tar the parameter '--sort=name' sorts direcory entries, but keeps single files as-is. So instead sort the list retrieved by find. Also set the file mode... Works for me. [TM] :D
2017-06-01Merge branch 'strip' of https://github.com/eworm-de/visMarc André Tanner1-0/+1
2017-06-01build: strip vis-single by defaultChristian Hesse1-0/+1
2017-06-01build: use single threaded compression for reproducible buildsChristian Hesse1-1/+1
2017-06-01build: inject the version into docker imageChristian Hesse1-0/+1
2017-05-31build: try to make docker build reproducibleMarc André Tanner1-1/+2
2017-05-31build: add a make docker targetMarc André Tanner1-1/+11
This should produce a self-contained vis binary for x86_64 Linux.
2017-05-31build: cleanup self contained executableMarc André Tanner1-8/+8
Set $PATH and $TERMINFO_DIRS environment variables, use chdir(2) to simplify extraction logic, improve error handling.
2017-05-31build: allow to build self-contained executableChristian Hesse1-1/+15
2017-04-20vis: start cleaning up register related codeMarc André Tanner1-2/+2
Now that register.h is no longer used by view.h we can move the struct and function declarations to vis-core.h.
2017-04-14build: install miscellaneous documentationDavid B. Lamkins1-0/+13
2017-04-11build: tweak CFLAGS for profiling targetMarc André Tanner1-1/+1
2017-04-09text: add mem{r,}chr(3) based byte search functionsMarc André Tanner1-1/+4
These are generally implemented efficiently in libc. While memrchr(3) is non-standard, it is a common extension. If it is not available, we use a simple C implementation from musl.
2017-03-27build: add git based version information backMarc André Tanner1-1/+1
2017-03-25build: set version to 0.3Marc André Tanner1-1/+1
2017-03-14Add experimental raw vt100 UI backendMarc André Tanner1-0/+2
The intention of this is not to slowly reimplement curses but to provide a minimal working terminal UI backend which can also be used for debugging, fuzzing and in environments where curses is not available. Currently no attempt is made to optimize terminal output. The amount of flickering will depend on the smartness of your terminal emulator.
2017-03-14Restructure display codeMarc André Tanner1-1/+1
Use pull instead of push based model for display code. Previously view.c was calling into the ui frontend code, with the new scheme this switches around: the necessary data is fetched by the ui as necessary. The UI independent display code is moved out of view.c/ui-curses.c into vis.c. The cell styles are now directly embedded into the Cell struct. New UI styles are introduced for: - status bar (focused / non-focused) - info message - window separator - EOF symbol You will have to update your color themes. The terminal output code is further abstracted into a generic ui-terminal.c part which keeps track of the whole in-memory cell matrix and #includes ui-terminal-curses.c for the actual terminal output. This architecture currently assumes that there are no overlapping windows. It will also allow non-curses based terminal user interfaces.
2017-03-05lua: fix more luacheck warningsMarc André Tanner1-1/+1
2017-03-03build: add luacheck make targetMarc André Tanner1-1/+4
2017-02-24vis: make help texts optional to produce a smaller binaryMarc André Tanner1-0/+2
$ ./configure --disable-help shrinks the binary by about 20K on a x86_64 system.
2017-02-17build: more complete cleanup in make cleanMarc André Tanner1-1/+1
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.