Makefile: Use POSIX-compliant method to delete multiple files (for-loop)

next
Michael Stapelberg 2009-11-10 14:37:51 +01:00
parent 47ebb9e1dd
commit 6779a0e27f
1 changed files with 4 additions and 1 deletions

View File

@ -3,4 +3,7 @@ all:
a2x -f manpage --asciidoc-opts="-f asciidoc.conf" i3-msg.man
a2x -f manpage --asciidoc-opts="-f asciidoc.conf" i3-input.man
clean:
rm -f i3.{1,html,xml} i3-msg.{1,html,xml} i3-input.{1,html,xml}
for file in "i3 i3-msg i3-input"; \
do \
rm -f $${file}.1 $${file}.html $${file}.xml; \
done