-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (29 loc) · 787 Bytes
/
Makefile
File metadata and controls
34 lines (29 loc) · 787 Bytes
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
31
32
33
34
.POSIX:
TCLSH = /usr/bin/env tclsh
PREFIX = /usr/local
LIB = $(PREFIX)/lib/tcl
BIN = $(PREFIX)/bin
MAN = $(PREFIX)/share/man
XDG_APPLICATIONS = $(PREFIX)/share/applications
default:
@echo "valid targets: install, test, README.md"
@echo "influential macros:"
@echo "PREFIX = $(PREFIX)"
@echo "LIB = $(LIB)"
@echo "BIN = $(BIN)"
@echo "MAN = $(MAN)"
@echo "XDG_APPLICATIONS = $(XDG_APPLICATIONS)"
install:
mkdir -p $(LIB)
mkdir -p $(BIN)
mkdir -p $(MAN)/man1
mkdir -p $(XDG_APPLICATIONS)
cp -pR trun $(LIB)
cp -p tkrunner $(BIN)
cp -p tkrunner.1 $(MAN)/man1
cp -p tkrunner.desktop $(XDG_APPLICATIONS)
@echo "you may wish to run update-desktop-database, kbuildsycoca, or similar"
test:
$(TCLSH) trun/trun.tcl
README.md: tkrunner.1
-mandoc -T markdown -W base $? > $@