Commit 6af65345 authored by Bob Ham's avatar Bob Ham

Makefile: create link to in files/ when present in root

Add a PHONY rule to Makefile to possibly create a link if there's a present in the root, before creating an image.  This allows
"make clean" to nuke any in files/ while also allowing
easy maintenance of a
parent d3e9f9b5
......@@ -16,7 +16,7 @@ DEPS=\
all: $(CHECKSUM)
tmp/$(IMAGE).stamp $(IMAGE) $(TARBALL): $(DEPS)
tmp/$(IMAGE).stamp $(IMAGE) $(TARBALL): $(DEPS)
./build-image -b $(BOARD) -T $(TYPE)
touch tmp/$(IMAGE).stamp
......@@ -39,4 +39,10 @@ publish: $(CHECKSUM)
bin/publish -T ${TYPE}
.PHONY: all publish
if test -e; then \
mkdir -p files; \
ln -sf ../ files; \
.PHONY: all publish
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment