DESTDIR = /usr/local all: chipdb-1k.txt chipdb-8k.txt chipdb-1k.txt: icebox.py iceboxdb.py icebox_chipdb.py python3 icebox_chipdb.py > chipdb-1k.new mv chipdb-1k.new chipdb-1k.txt chipdb-8k.txt: icebox.py iceboxdb.py icebox_chipdb.py python3 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 mkdir -p $(DESTDIR)/bin 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