Skip to content

Commit

Permalink
Add i-d-template make target, rename build
Browse files Browse the repository at this point in the history
  • Loading branch information
sander committed Aug 23, 2024
1 parent 4d4567f commit ef8a5b1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/editor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ permissions:

jobs:
build:
name: Update Editor’s Copy
name: Editor’s Copy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
LIBDIR := lib
include $(LIBDIR)/main.mk

$(LIBDIR)/main.mk:
ifneq (,$(shell grep "path *= *$(LIBDIR)" .gitmodules 2>/dev/null))
git submodule sync
git submodule update $(CLONE_ARGS) --init
else
git clone -q --depth 10 $(CLONE_ARGS) \
-b main https://github.com/martinthomson/i-d-template $(LIBDIR)
endif

pdf:
mkdir -p build
cp -r media build
Expand Down

0 comments on commit ef8a5b1

Please sign in to comment.