Skip to content

Commit

Permalink
Add makefile to locally build the bs spec
Browse files Browse the repository at this point in the history
  • Loading branch information
youennf committed Jan 29, 2024
1 parent f57ac6a commit 6a54fe0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
index.html
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
LOCAL_BIKESHED := $(shell command -v bikeshed 2> /dev/null)

index.html: index.bs
ifndef LOCAL_BIKESHED
curl https://api.csswg.org/bikeshed/ -F file=@$< > $@
else
bikeshed spec
endif

0 comments on commit 6a54fe0

Please sign in to comment.