summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-12-11 13:41:52 +0100
committerFlorian Pritz <bluewind@xinu.at>2011-12-11 13:41:52 +0100
commit41488c9750b7675dcb544a36e2efb9b00aad6209 (patch)
tree403cb01e5f45a88cf74eabdbb1391e0ff09e6cc2 /Makefile
parentbdff0e2faab98b13f9d54bf489ea537ca5e75d6e (diff)
add bash version of fb-helper.c
Using the bash helper can be forced by running "make LIBCURL=". Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 07857fc..8f1fbd9 100644
--- a/Makefile
+++ b/Makefile
@@ -13,8 +13,16 @@ fb: fb.in
sed 's|@VERSION@|$(VERSION)|; s|@LIBDIR@|$(LIBDIR)|' $< > $@
chmod 755 $@
+ifdef LIBCURL
fb-helper: fb-helper.c
$(CC) $(CFLAGS) $(LIBCURL) -DVERSION=\"$(VERSION)\" -o $@ $<
+else
+fb-helper: fb-helper.sh.in
+ @echo "libcurl not found. using shell helper..."
+ @[ -n "$(VERSION)" ] || (echo "Error: version detection failed"; exit 1)
+ sed 's|@VERSION@|$(VERSION)|; s|@LIBDIR@|$(LIBDIR)|' $< > $@
+ chmod 755 $@
+endif
fb.1: fb.pod
pod2man -c "" $< $@