aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2015-01-07 09:25:44 +0100
committerGravatar Christian Hesse <mail@eworm.de>2015-01-07 09:25:44 +0100
commit91e57d882ce9c3c26424056cb53d53e5d89a2d83 (patch)
tree981ef3b18425fc91dc6c25f74fce6c6eeba5a50b /Makefile
parent36199d953ce52e5cd9bb04163ee61c9d6fbe1420 (diff)
downloadmkinitcpio-ykfde-91e57d882ce9c3c26424056cb53d53e5d89a2d83.tar.gz
mkinitcpio-ykfde-91e57d882ce9c3c26424056cb53d53e5d89a2d83.tar.zst
delete documentation target on error
This prevents zero-size html files to be present on markdown failure.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 5 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index e3cee08..fd6688d 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,8 @@ SED := sed
# a release tarball...
VERSION := 0.5.0
+.DELETE_ON_ERROR:
+
all: bin/ykfde bin/ykfde-cpio udev/ykfde README.html README-mkinitcpio.html README-dracut.html
bin/ykfde: bin/ykfde.c config.h
@@ -22,17 +24,9 @@ udev/ykfde: udev/ykfde.c config.h
config.h: config.def.h
$(CP) config.def.h config.h
-README.html: README.md
- $(MD) README.md > README.html
- $(SED) -i 's/\(README[-[:alnum:]]*\).md/\1.html/g' README.html
-
-README-mkinitcpio.html: README-mkinitcpio.md
- $(MD) README-mkinitcpio.md > README-mkinitcpio.html
- $(SED) -i 's/\(README[-[:alnum:]]*\).md/\1.html/g' README-mkinitcpio.html
-
-README-dracut.html: README-dracut.md
- $(MD) README-dracut.md > README-dracut.html
- $(SED) -i 's/\(README[-[:alnum:]]*\).md/\1.html/g' README-dracut.html
+%.html: %.md
+ $(MD) $< > $@
+ $(SED) -i 's/\(README[-[:alnum:]]*\).md/\1.html/g' $@
install: install-mkinitcpio