summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-06-04 16:01:39 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-06-04 16:01:39 +0200
commitb6189f1907e22aad1cda7ecf236529bd7b270734 (patch)
treeae7b218e5ec065e8232a9c0986635025e02ed3d2 /Makefile
parent772c2fdc00319ce312845eba3df85115567f6aa5 (diff)
remove dependency on curl binary
fb-upload is now called fb-helper which supports downloading and uploading Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index e493b7b..de7fd1d 100644
--- a/Makefile
+++ b/Makefile
@@ -5,40 +5,40 @@ LIBDIR=/usr/lib
CC=gcc
CFLAGS=-O2 -std=c99 -Wall -Wextra -pedantic
-all: fb.1 fb fb-upload
+all: fb.1 fb fb-helper
fb: fb.in
@[ -n "$(VERSION)" ] || (echo "Error: version detection failed"; exit 1)
sed 's|@VERSION@|$(VERSION)|; s|@LIBDIR@|$(LIBDIR)|' fb.in > fb
chmod 755 fb
-fb-upload.c: fb-upload.c.in
- sed 's/@VERSION@/$(VERSION)/' fb-upload.c.in > fb-upload.c
+fb-helper.c: fb-helper.c.in
+ sed 's/@VERSION@/$(VERSION)/' fb-helper.c.in > fb-helper.c
-fb-upload: fb-upload.c
- $(CC) $(CFLAGS) -lcurl -lm -o fb-upload fb-upload.c
+fb-helper: fb-helper.c
+ $(CC) $(CFLAGS) -lcurl -lm -o fb-helper fb-helper.c
fb.1: fb.pod
pod2man -c "" fb.pod fb.1
clean:
- rm -f fb.1 fb fb-upload.c fb-upload
+ rm -f fb.1 fb fb-helper.c fb-helper
rm -rf dist
install: all
install -Dm755 fb $(DESTDIR)$(BINDIR)/fb
- install -Dm755 fb-upload $(DESTDIR)$(LIBDIR)/fb-upload
+ install -Dm755 fb-helper $(DESTDIR)$(LIBDIR)/fb-helper
install -Dm644 fb.1 $(DESTDIR)$(MANDIR)/man1/fb.1
uninstall:
rm -f $(DESTDIR)$(BINDIR)/fb
- rm -f $(DESTDIR)$(LIBDIR)/fb-upload
+ rm -f $(DESTDIR)$(LIBDIR)/fb-helper
rm -f $(DESTDIR)$(MANDIR)/man1/fb.1
dist: all
@[ -n "$(VERSION)" ] || (echo "Error: version detection failed"; exit 1)
mkdir -p dist/fb-$(VERSION)
- cp -a fb-upload.c{,.in} fb{,.in} fb.pod fb.1 COPYING Makefile dist/fb-$(VERSION)
+ cp -a fb-helper.c{,.in} fb{,.in} fb.pod fb.1 COPYING Makefile dist/fb-$(VERSION)
sed -i 's/^VERSION:=.*$$/VERSION:="'$(VERSION)'"/' dist/fb-$(VERSION)/Makefile
cd dist; tar -czf fb-$(VERSION).tar.gz fb-$(VERSION)