diff options
author | Christian Hesse <mail@eworm.de> | 2015-01-07 09:25:44 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2015-01-07 09:25:44 +0100 |
commit | 91e57d882ce9c3c26424056cb53d53e5d89a2d83 (patch) | |
tree | 981ef3b18425fc91dc6c25f74fce6c6eeba5a50b /Makefile | |
parent | 36199d953ce52e5cd9bb04163ee61c9d6fbe1420 (diff) | |
download | mkinitcpio-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-- | Makefile | 16 |
1 files changed, 5 insertions, 11 deletions
@@ -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 |