Skip to content
This repository has been archived by the owner on Apr 24, 2019. It is now read-only.

Commit

Permalink
Fix Make current.md target
Browse files Browse the repository at this point in the history
  • Loading branch information
kemitchell committed Feb 12, 2019
1 parent f904cb1 commit e0ae0fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FILES=files
FORMATS=docx rtf pdf odt md
RTF=$(wildcard $(FILES)/*.rtf)
LATEST=$(lastword $(sort $(RTF)))
LINT=node_modules/html5-lint

all: $(foreach version,$(RTF),$(addprefix $(version:.rtf=).,$(FORMATS))) $(FILES)/latest.md
Expand All @@ -19,8 +20,8 @@ all: $(foreach version,$(RTF),$(addprefix $(version:.rtf=).,$(FORMATS))) $(FILES

.INTERMEDIATE: $(FILES)/latest.rtf

$(FILES)/latest.rtf:
cp $(lastword $(sort $(RTF))) $@
$(FILES)/latest.rtf: $(LATEST)
cp $< $@

.PHONY: lint

Expand Down

0 comments on commit e0ae0fd

Please sign in to comment.