Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
[spec] Makefile tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
rossberg committed Jan 15, 2018
1 parent 40d27eb commit 9d789ca
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions document/Makefile
Expand Up @@ -5,12 +5,10 @@ BUILDDIR = _build
# Global targets.

.PHONY: all
all: $(DIRS)
all: $(BUILDDIR) root $(DIRS)

$(BUILDDIR):
mkdir -p $@
cp -f $(FILES) $(BUILDDIR)/
touch $(BUILDDIR)/.nojekyll

.PHONY: deploy
deploy:
Expand All @@ -26,6 +24,11 @@ clean: $(DIRS:%=clean-%)

# Directory-specific targets.

.PHONY: root
root: $(BUILDDIR)
touch $(BUILDDIR)/.nojekyll
cp -f $(FILES) $(BUILDDIR)/

.PHONY: $(DIRS)
$(DIRS): %: $(BUILDDIR)
(cd $@; make BUILDDIR=$(BUILDDIR) all)
Expand Down

0 comments on commit 9d789ca

Please sign in to comment.