-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 1002 Bytes
/
Makefile
File metadata and controls
41 lines (30 loc) · 1002 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
35
36
37
38
39
40
41
########################################################################
## Makefile
##
## make to exclude color support
## make BUILD_COLOR=yes to include color support
##
BUILD_COLOR:=no
SHARE=/usr/share
BIN=/usr/bin
all: tkmahjongg2
tkmahjongg2: boards.tcl desktop.tcl icon.tcl tiles.tcl tkmahjongg2.head tkmahjongg2.tail
cat tkmahjongg2.head desktop.tcl icon.tcl boards.tcl tiles.tcl tkmahjongg2.tail > $@
chmod 755 $@
boards.tcl: boards.sh
sh boards.sh > $@
tiles.tcl: tiles.sh
sh tiles.sh $(BUILD_COLOR) > $@
desktop.tcl: tkmahjongg2.desktop
(echo "set desktop_data {"; cat $<; echo "}"; echo) > $@
icon.tcl: tkmahjongg2.png
(echo "set icon_data {"; base64 < $<; echo "}"; echo) > $@
install: tkmahjongg2
cp tkmahjongg2 $(BIN)/
$(BIN)/tkmahjongg2 -init
uninstall:
rm -f $(BIN)/tkmahjongg2
rm -f $(SHARE)/applications/tkmahjongg2.desktop
rm -f $(SHARE)/icons/tkmahjongg2.png
clean:
rm -rf boards.tcl desktop.tcl icon.tcl tiles.tcl tkmahjongg2 tiles/cooked