aboutsummaryrefslogtreecommitdiffstats
path: root/icebox/Makefile
blob: 7cfb5ce0ad37c1cd83b8672f9b6bec812e83f9d6 (plain)
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
42
43
all: chipdb-1k.txt chipdb-8k.txt

chipdb-1k.txt: icebox.py iceboxdb.py icebox_chipdb.py
	python icebox_chipdb.py > chipdb-1k.new
	mv chipdb-1k.new chipdb-1k.txt

chipdb-8k.txt: icebox.py iceboxdb.py icebox_chipdb.py
	python icebox_chipdb.py -8 > chipdb-8k.new
	mv chipdb-8k.new chipdb-8k.txt

clean:
	rm -f chipdb-1k.txt chipdb-8k.txt
	rm -f icebox.pyc iceboxdb.pyc

install: all
	mkdir -p /usr/local/share/icebox
	cp chipdb-1k.txt     /usr/local/share/icebox/
	cp chipdb-8k.txt     /usr/local/share/icebox/
	cp icebox.py         /usr/local/bin/icebox.py
	cp iceboxdb.py       /usr/local/bin/iceboxdb.py
	cp icebox_chipdb.py  /usr/local/bin/icebox_chipdb
	cp icebox_diff.py    /usr/local/bin/icebox_diff
	cp icebox_explain.py /usr/local/bin/icebox_explain
	cp icebox_html.py    /usr/local/bin/icebox_html
	cp icebox_maps.py    /usr/local/bin/icebox_maps
	cp icebox_vlog.py    /usr/local/bin/icebox_vlog

uninstall:
	rm -f /usr/local/bin/icebox.py
	rm -f /usr/local/bin/iceboxdb.py
	rm -f /usr/local/bin/icebox_chipdb
	rm -f /usr/local/bin/icebox_diff
	rm -f /usr/local/bin/icebox_explain
	rm -f /usr/local/bin/icebox_html
	rm -f /usr/local/bin/icebox_maps
	rm -f /usr/local/bin/icebox_vlog
	rm -f /usr/local/share/icebox/chipdb-1k.txt
	rm -f /usr/local/share/icebox/chipdb-8k.txt
	-rmdir /usr/local/share/icebox

.PHONY: all clean install uninstall