From: Zoran Zaric Date: Mon, 6 Dec 2010 12:00:07 +0000 (+0100) Subject: Makefile: handle shell commands (cmd/*-cmd.sh) X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2b5036e7e2482f99f79420c71a1b9ed365e5108e;p=packages%2Fb%2Fbup.git Makefile: handle shell commands (cmd/*-cmd.sh) Signed-off-by: Zoran Zaric --- diff --git a/Makefile b/Makefile index a9c8f04..3194a06 100644 --- 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)