]> arthur.barton.de Git - bup.git/commitdiff
Makefile: handle shell commands (cmd/*-cmd.sh)
authorZoran Zaric <zz@zoranzaric.de>
Mon, 6 Dec 2010 12:00:07 +0000 (13:00 +0100)
committerAvery Pennarun <apenwarr@gmail.com>
Mon, 3 Jan 2011 04:57:11 +0000 (20:57 -0800)
Signed-off-by: Zoran Zaric <zz@zoranzaric.de>
Makefile

index a9c8f04e2acb10ea055202568795af7835c04539..3194a06dde72d05d7293b8fb10caacb3af02c7ae 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -103,7 +103,9 @@ bup: main.py
        rm -f $@
        ln -s $< $@
 
-cmds: $(patsubst cmd/%-cmd.py,cmd/bup-%,$(wildcard cmd/*-cmd.py))
+cmds: \
+    $(patsubst cmd/%-cmd.py,cmd/bup-%,$(wildcard cmd/*-cmd.py)) \
+    $(patsubst cmd/%-cmd.sh,cmd/bup-%,$(wildcard cmd/*-cmd.sh))
 
 cmd/bup-%: cmd/%-cmd.py
        rm -f $@
@@ -117,6 +119,10 @@ bup-%: cmd-%.sh
        rm -f $@
        ln -s $< $@
 
+cmd/bup-%: cmd/%-cmd.sh
+       rm -f $@
+       ln -s $*-cmd.sh $@
+
 %.o: %.c
        gcc -c -o $@ $< $(CPPFLAGS) $(CFLAGS)