aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9b79245..7e380e6 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,9 @@ CHECK_LDLIBS = $(shell pkg-config check --libs)
CURL_LDLIBS = -lcurl
EXPAT_LDLIBS = -lexpat
-.PHONY: all check clean memcheck
+VERSION = "0.1.0"
+
+.PHONY: all check clean doc memcheck
all: libdbfp.so
@@ -26,9 +28,17 @@ clean:
$(RM) dbfp_check
$(RM) dbfp.o dbfp_check.o
+doc: man/dbfp_close.3 man/dbfp_init.3
+
memcheck: libdbfp.so dbfp_check
LD_LIBRARY_PATH=. CK_FORK=no valgrind --tool=memcheck ./dbfp_check
+man/dbfp_close.3: man/dbfp_close.pod
+ pod2man -c "DB timetable API" -n "DBFP_CLOSE" -r $(VERSION) -s 3 $^ > $@
+
+man/dbfp_init.3: man/dbfp_init.pod
+ pod2man -c "DB timetable API" -n "DBFP_INIT" -r $(VERSION) -s 3 $^ > $@
+
libdbfp.so: LDFLAGS += -shared
libdbfp.so: LDLIBS += $(CURL_LDLIBS)
libdbfp.so: LDLIBS += $(EXPAT_LDLIBS)