-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Makefile with lint and watch.
- Loading branch information
1 parent
6f87bc9
commit 00ab105
Showing
1 changed file
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
LOCAL_BIKESHED := $(shell command -v bikeshed 2> /dev/null) | ||
|
||
index.html: index.bs | ||
# ./format.py $< | ||
ifndef LOCAL_BIKESHED | ||
curl https://api.csswg.org/bikeshed/ -f -F file=@$< >$@; | ||
else | ||
bikeshed spec | ||
endif | ||
|
||
ifdef LOCAL_BIKESHED | ||
.PHONY: lint watch | ||
|
||
lint: index.bs | ||
bikeshed --print=plain --dry-run --force spec --line-numbers $< | ||
|
||
watch: index.bs | ||
@echo 'Browse to file://${PWD}/index.html' | ||
bikeshed --print=plain watch $< | ||
endif # LOCAL_BIKESHED | ||
|
||
|
||
|