15 lines
331 B
Makefile
15 lines
331 B
Makefile
.PHONY: all clean genreadme
|
|
|
|
DOCS_ALL=$(wildcard **/**/README.md)
|
|
|
|
all: README.md
|
|
@echo TODO
|
|
|
|
clean:
|
|
@echo TODO
|
|
|
|
README.md: $(DOCS_ALL)
|
|
@echo "GEN README.md"
|
|
@(echo "# BLAHAJ Hack-a-Sat 2020 Writeups\n\n"; for file in $(DOCS_ALL); do \
|
|
printf -- "- [%s](%s)\n" "$$(dirname $$file)" "$$(dirname $$file)"; done) > README.md
|