From 91e57d882ce9c3c26424056cb53d53e5d89a2d83 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 7 Jan 2015 09:25:44 +0100 Subject: delete documentation target on error This prevents zero-size html files to be present on markdown failure. --- Makefile | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2