-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 1.08 KB
/
Makefile
File metadata and controls
30 lines (22 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
DESTDIR=
PREFIX=/usr/local
PACKAGE_NAME=rl_http
VER=1.21
TCLSH=tclsh
all: tm/$(PACKAGE_NAME)-$(VER).tm
tm/$(PACKAGE_NAME)-$(VER).tm: rl_http.tcl
mkdir -p tm
cp rl_http.tcl tm/$(PACKAGE_NAME)-$(VER).tm
install-tm: tm/$(PACKAGE_NAME)-$(VER).tm
mkdir -p $(DESTDIR)$(PREFIX)/lib/tcl8/site-tcl
mkdir -p $(DESTDIR)$(PREFIX)/lib/tcl9/site-tcl
cp $< $(DESTDIR)$(PREFIX)/lib/tcl8/site-tcl/
cp $< $(DESTDIR)$(PREFIX)/lib/tcl9/site-tcl/
install: install-tm
clean:
rm -r tm
test: tm/$(PACKAGE_NAME)-$(VER).tm
$(TCLSH) tests/all.tcl $(TESTFLAGS) -load "source [file join $$::tcltest::testsDirectory .. tm $(PACKAGE_NAME)-$(VER).tm]; package provide $(PACKAGE_NAME) $(VER)"
vim-gdb: tm/$(PACKAGE_NAME)-$(VER).tm
vim -c "set number" -c "set mouse=a" -c "set foldlevel=100" -c "Termdebug -ex set\ print\ pretty\ on --args $(TCLSH) tests/all.tcl -singleproc 1 -load source\ [file\ join\ $$::tcltest::testsDirectory\ ..\ tm\ $(PACKAGE_NAME)-$(VER).tm];\ package\ provide\ $(PACKAGE_NAME)\ $(VER) $(TESTFLAGS)" -c "2windo set nonumber" -c "1windo set nonumber"
.PHONY: all clean install install-tm test