summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMoritz Wilhelmy <moritz+git@wzff.de>2011-09-15 21:14:21 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-01-26 22:21:27 +0100
commit16558a6bbba2d76abdd43f94c65709128911609b (patch)
tree2752e8cee8bb25f5e20416d2928d5e9014fdd083 /Makefile
parente2e50069d27c228814a3dab5288e7ad49cadbf9d (diff)
first draft of a mdoc(7) manpage replacing the pod
Conflicts: Makefile fb.pod Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 3647e89..5884b00 100644
--- a/Makefile
+++ b/Makefile
@@ -8,9 +8,9 @@ CFLAGS?=-O2 -std=c99 -Wall -Wextra -pedantic
LIBCURL:=$(shell pkg-config --silence-errors --libs --cflags libcurl)
ifdef LIBCURL
-all: fb.1 fb fb-helper
+all: fb fb-helper
else
-all: fb.1 fb
+all: fb
endif
fb: fb.in
@@ -21,14 +21,11 @@ fb: fb.in
fb-helper: fb-helper.c
$(CC) $(CFLAGS) $(LIBCURL) -DVERSION=\"$(VERSION)\" -o $@ $<
-fb.1: fb.pod
- pod2man -c "" $< $@
-
clean:
- rm -f fb.1 fb fb-helper
+ rm -f fb fb-helper
rm -rf dist
-install: all
+install:
install -dm755 $(DESTDIR)$(BINDIR)
install -m755 fb $(DESTDIR)$(BINDIR)/fb
ifdef LIBCURL
@@ -46,7 +43,7 @@ uninstall:
dist: all
@[ -n "$(VERSION)" ] || (echo "Error: version detection failed"; exit 1)
mkdir -p dist/fb-$(VERSION)
- cp -a fb-helper.c fb{,.in} fb.pod fb.1 COPYING Makefile dist/fb-$(VERSION)
+ cp -a fb-helper.c fb{,.in} 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)