aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-05-09 11:37:26 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-05-09 11:45:16 +0200
commit7a90c9a7118474962d4a336962690149bef585ac (patch)
tree5788ee655080eead7e9e037a9c284d8b782e98f6 /util
parent8d7f35be97b4d3c2508524032c5762b75f3a213b (diff)
downloadvis-7a90c9a7118474962d4a336962690149bef585ac.tar.gz
vis-7a90c9a7118474962d4a336962690149bef585ac.tar.xz
Improve Cygwin support
Diffstat (limited to 'util')
-rw-r--r--util/Makefile16
-rw-r--r--util/README.md4
2 files changed, 3 insertions, 17 deletions
diff --git a/util/Makefile b/util/Makefile
index cec7b21..2c8161f 100644
--- a/util/Makefile
+++ b/util/Makefile
@@ -1,23 +1,11 @@
-include ../../config.mk
-DEPS_ROOT = ../../dependency/install
-DEPS_PREFIX = $(DEPS_ROOT)/usr
-DEPS_LIB = $(DEPS_PREFIX)/lib
-DEPS_INC = $(DEPS_PREFIX)/include
-
-CFLAGS_TERMKEY ?= $(shell pkg-config --cflags termkey || echo "-I/usr/local/include")
-LDFLAGS_TERMKEY ?= $(shell pkg-config --libs termkey || echo "-ltermkey")
-
keys: keys.c
@echo Compiling keys utility
- $(CC) $(CFLAGS_TERMKEY) keys.c $(LDFLAGS_TERMKEY) -o keys
-
-keys-local: keys.c
- @echo Compiling keys utility locally
- $(CC) -I$(DEPS_INC) keys.c -L$(DEPS_LIB) $(LDFLAGS_TERMKEY) $(LDFLAGS_CURSES) -o keys
+ $(CC) $(CFLAGS) $(CFLAGS_TERMKEY) keys.c $(LDFLAGS) $(LDFLAGS_TERMKEY) $(LDFLAGS_CURSES) -o keys
clean:
@echo cleaning
@rm -f keys
-.PHONY: clean keys-local
+.PHONY: clean
diff --git a/util/README.md b/util/README.md
index 3425336..5f2369a 100644
--- a/util/README.md
+++ b/util/README.md
@@ -6,6 +6,4 @@ by [libtermkey](http://www.leonerd.org.uk/code/libtermkey/) and also used
to specify key bindings within vis, to their corresponding codes understood
by terminal programs.
-Type `make` to build the utility. `make keys-local` links the utility against
-a locally built version of libtermkey as produced by the top level `make local`
-Makefile target.
+Type `make` to build the utility.