thinkpad-ec/Makefile
2016-04-19 19:20:27 +10:00

27 lines
603 B
Makefile

all:
false
#
# Radare didnt seem to let me specify the direcrory to store the project file,
# so this target hacks around that
#
install.radare.projects:
mkdir -p ~/.config/radare2/projects/x220.8DHT34WW.d
cp -s $(PWD)/radare/x220.8DHT34WW ~/.config/radare2/projects
#
# Download any ISO image that we have a checksum for
# NOTE: makes an assumption about the Lenovo URL not changing
%.iso: %.iso.sha1
wget -O $@ https://download.lenovo.com/pccbbs/mobiles/$@
sha1sum -c $<
touch $@
#
# If we have an extractor for this image, use it
%.img: %.extract %.img.sum
./$< > $@
sha1sum -c $@.sum