Quiet makefile
This commit is contained in:
parent
ef38c95a90
commit
20260058ae
7
Makefile
7
Makefile
|
@ -1,9 +1,10 @@
|
|||
export PATH := $(PATH):bin
|
||||
SRCS := $(sort $(wildcard *.md))
|
||||
DEST := $(notdir $(PWD))
|
||||
|
||||
.PHONY: static
|
||||
static: output/index.html
|
||||
if [ -d static ]; then cp -rpL static/ output/; fi
|
||||
@if [ -d static ]; then cp -rpL static/ output/; fi
|
||||
|
||||
%.html: %.md
|
||||
sed 's/#!//e;' $< | mdtoreveal /dev/stdin --output $@
|
||||
|
@ -14,7 +15,7 @@ output/index.md: $(SRCS)
|
|||
|
||||
.PHONY: rsync
|
||||
rsync: static
|
||||
rsync -vah --delete output/ mdk_fr@mdk.fr:/var/www/mdk.fr/$(DEST)/
|
||||
rsync -ah --delete output/ mdk_fr@mdk.fr:/var/www/mdk.fr/$(DEST)/
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
|
@ -30,6 +31,6 @@ serve: static
|
|||
|
||||
.PHONY: test
|
||||
test:
|
||||
if [ -f test.py ]; then \
|
||||
@if [ -f test.py ]; then \
|
||||
python test.py *.md; \
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue