-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
34 lines (24 loc) · 647 Bytes
/
Makefile
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
prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
datarootdir = $(prefix)/share
datadir = $(datarootdir)
mandir = $(datarootdir)/man
man1dir = $(mandir)/man1
INSTALL = install
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL) -m 644
DESTDIR =
default: sqawk
install: installdirs
$(INSTALL_PROGRAM) sqawk.tcl $(DESTDIR)$(bindir)/sqawk
installdirs:
mkdir -p $(DESTDIR)$(bindir)
sqawk:
tclsh tools/assemble.tcl sqawk-dev.tcl > sqawk.tcl
chmod +x sqawk.tcl
test: sqawk
tclsh tests.tcl
uninstall:
rm $(DESTDIR)$(bindir)/sqawk
.PHONY: install installdirs sqawk test uninstall