blob: cc7807306e66b2e97a2a4f074714fa0c60b27752 (
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
44
45
46
|
DESTDIR = /usr/local
all: chipdb-1k.txt chipdb-8k.txt
chipdb-1k.txt: icebox.py iceboxdb.py icebox_chipdb.py
python2 icebox_chipdb.py > chipdb-1k.new
mv chipdb-1k.new chipdb-1k.txt
chipdb-8k.txt: icebox.py iceboxdb.py icebox_chipdb.py
python2 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 $(DESTDIR)/share/icebox
cp chipdb-1k.txt $(DESTDIR)/share/icebox/
cp chipdb-8k.txt $(DESTDIR)/share/icebox/
cp icebox.py $(DESTDIR)/bin/icebox.py
cp iceboxdb.py $(DESTDIR)/bin/iceboxdb.py
cp icebox_chipdb.py $(DESTDIR)/bin/icebox_chipdb
cp icebox_diff.py $(DESTDIR)/bin/icebox_diff
cp icebox_explain.py $(DESTDIR)/bin/icebox_explain
cp icebox_colbuf.py $(DESTDIR)/bin/icebox_colbuf
cp icebox_html.py $(DESTDIR)/bin/icebox_html
cp icebox_maps.py $(DESTDIR)/bin/icebox_maps
cp icebox_vlog.py $(DESTDIR)/bin/icebox_vlog
uninstall:
rm -f $(DESTDIR)/bin/icebox.py
rm -f $(DESTDIR)/bin/iceboxdb.py
rm -f $(DESTDIR)/bin/icebox_chipdb
rm -f $(DESTDIR)/bin/icebox_diff
rm -f $(DESTDIR)/bin/icebox_explain
rm -f $(DESTDIR)/bin/icebox_colbuf
rm -f $(DESTDIR)/bin/icebox_html
rm -f $(DESTDIR)/bin/icebox_maps
rm -f $(DESTDIR)/bin/icebox_vlog
rm -f $(DESTDIR)/share/icebox/chipdb-1k.txt
rm -f $(DESTDIR)/share/icebox/chipdb-8k.txt
-rmdir $(DESTDIR)/share/icebox
.PHONY: all clean install uninstall
|