aboutsummaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)AuthorFilesLines
2025-12-08util: replace memrchr with internal versionRandy Palamar1-4/+1
The amount of code we need to detect if this is present and handle the fallback is more than if we just provide it ourselves. Also we are passing in a difference of pointers so the argument type should be ptrdiff_t. This avoids a C brain damage of having unsigned size type which can wrap around if the caller is careful.
2025-11-28build: make clean also documentaitonMatěj Cepl1-0/+1
2024-05-21cleanup vis event interfaceRandy Palamar1-3/+4
This removes the function pointer interface which was adding needless complexity and making it difficult to add new events. Now if new events are only meant for lua they only need to be added to the lua interface. This will also have a minor reduction in runtime memory usage and produce a smaller binary. The only runtime difference is that QUIT happens after all windows have been closed and their files freed.
2024-05-21Prepare to merge vis-testRandy Palamar1-5/+0
2024-05-01set version to v0.9-gitRandy Palamar1-1/+1
2024-05-01release 0.9Randy Palamar1-1/+1
2023-08-24Implementation of the non-blocking process running Lua APIxomachine1-0/+1
Rationale A modern text editor usually includes tools for helping user to avoid mistakes in texts. Those tools include spell checkers and programming language integrations. Though vis explicitly states that the full featured IDE is not a goal, implementing some of the tools might be achieved using its Lua API. Unfortunatelly the API misses the ability to start a process and to perform a communication with it without completely blocking the editor UI, which is crucial for any tool that performs background tracking of the inserted text (e. g. language servers). Implementation details New feature introduces new API method: communicate. The method start a new process and returns a handle to communicate with the process instantly. The patch inserts stderr and stdout file descriptors of the process to the pselect call of the main loop used for reading user input to track the process state without blocking the main loop until the process is finished. Any changes in the process state cause the iteration of the main loop and are being exposed to the Lua API as new event: PROCESS_RESPONSE.
2023-08-17build: don't use the '|' GNU extensionRandy Palamar1-3/+4
2023-08-17build: don't pollute base dir with .o and .d filesRandy Palamar1-8/+10
some users were (rightfully) annoyed by this
2023-08-16build: stop setting _POSIX_C_SOURCERandy Palamar1-1/+1
from feature_test_macros(7): > Defining _XOPEN_SOURCE with a value of 700 or greater produces the > same effects as defining _POSIX_C_SOURCE with a value of 200809L or > greater. Depending on the configuration and system pkg-conf files there can be redefinition warnings. Rather than patching with a -U_POSIX_C_SOURCE it can just be dropped instead.
2023-08-16build: support incremental rebuildsRandy Palamar1-7/+17
2023-06-21build: simplify generating single payloadChristian Hesse1-1/+1
We can make `od` skip the address radix, so `sed` does not need to remove it.
2022-11-01Set version to 0.8-gitFelix Van der Jeugt1-1/+1
2020-12-08build: add git based version information backMarc André Tanner1-1/+1
2020-12-08Set version to 0.7Marc André Tanner1-1/+1
2020-10-10text: move higher level utility functions to separate fileMarc André Tanner1-0/+1
The moved functions do not need access to internals of text.c, but instead use the public interfaces. Splitting them out should facilitate experimentation with different core text management data structures.
2020-10-10text: move generic iterator functionality to separate fileMarc André Tanner1-0/+1
2020-10-10text: move I/O related code to separate fileMarc André Tanner1-0/+1
This groups all I/O related code together to make it reusable in different core text data structure implementations.
2020-10-10build: list source files on separate linesMarc André Tanner1-4/+22
2020-07-11build: mark distclean and testclean targets as PHONYMarc André Tanner1-1/+1
2020-07-07Makefile: add testclean targetParide Legovini1-1/+5
The target calls `make clean` in the test submodule, if present. The target is called by the `distclean` target.
2020-07-07Makefile: add distclean targetParide Legovini1-1/+5
2020-06-07build: add git based version information backMarc André Tanner1-1/+1
2020-06-07build: set version to 0.6Marc André Tanner1-1/+1
2020-02-26build: provide install-strip make targetMarc André Tanner1-5/+7
Do not strip executables by default. Fix #811
2020-02-03build: properly kill docker containerChristian Hesse1-3/+6
We keep a running docker container in the background. If the build process fails this becomes dangling. Make sure the container is properly killed.
2020-02-03build: explicitly specify working directory for dockerMarc André Tanner1-2/+2
Otherwise the config.mk file generated by ./configure does not end up in the source tree and has no effect. Our Makefile does currently not support out of tree builds. Previously this worked because the WORKDIR within the Dockerfile was set to the vis source (and build) directory.
2020-01-30build: explicitly list configure options for docker buildsMarc André Tanner1-1/+4
This should catch Alpine package changes such as the one fixed in 0ba252f08e9ef7b62c442eb91b36822d654f5b04.
2020-01-30build: allow to replace dockerChristian Hesse1-10/+11
This allows to build with docker-compatible container engine: make DOCKER=podman docker
2020-01-30build: add target docker-cleanChristian Hesse1-1/+4
This removes the docker image and volume `vis` and thus purges everything we added in docker.
2020-01-30build: clean up docker buildChristian Hesse1-5/+4
2020-01-28build: fix generation of HTML man pagesMarc André Tanner1-1/+1
Starting with mandoc version 1.14.2 the xhtml format is no longer an alias for html.
2020-01-16build: force enable acl for docker buildsChristian Hesse1-1/+1
This makes sure the feature is enabled as expected.
2018-03-25build: add git based version information backMarc André Tanner1-1/+1
2018-03-25build: set version to 0.5Marc André Tanner1-1/+1
2018-03-19build: build standalone binary against latest Alpine packagesMarc André Tanner1-1/+2
2018-03-14build: try to use POSIX tools/options for vis-single targetMarc André Tanner1-2/+4
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