Skip to content

Commit

Permalink
add make watch
Browse files Browse the repository at this point in the history
  • Loading branch information
midoriao committed Aug 22, 2024
1 parent 0a2b1cc commit 692267f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ TARGETS := $(patsubst $(SRCDIR)/%.md,$(DESTDIR)/%.html,$(SOURCES))
.PHONY: all
all: build serve

.PHONY: watch
watch:
watchexec -r -w . make

.PHONY: clean
clean:
rm -rf $(DESTDIR)/*
Expand All @@ -23,7 +27,7 @@ build: copy-static $(TARGETS)

.PHONY: copy-static
copy-static: $(STATICDIR) $(DESTDIR)
cp -Rf $(STATICDIR)/* $(DESTDIR)/
rsync -rhupi --delete $(STATICDIR)/* $(DESTDIR)

.PHONY: deploy
deploy:
Expand Down

0 comments on commit 692267f

Please sign in to comment.