all: .depend $(PROGS) testparse maxpath sixdegrees splitkeys onak.conf \
$(BACKENDS)
+install: $(PROGS) onak.conf $(BACKENDS)
+ install -d $(DESTDIR)/@bindir@
+ install -d $(DESTDIR)/@libdir@/onak/backends
+ install -d $(DESTDIR)/@localstatedir@/lib/onak
+ install -d $(DESTDIR)/@mandir@/man1
+ install -d $(DESTDIR)/@sysconfdir@
+ install onak-mail.pl $(DESTDIR)/@libdir@/onak
+ install onak splitkeys $(DESTDIR)/@bindir@
+ install onak.1 splitkeys.1 $(DESTDIR)/@mandir@/man1
+ifeq (x@DBTYPE@, xdynamic)
+ install $(BACKENDS) $(DESTDIR)/@libdir@/onak/backends
+ install -d $(DESTDIR)/@sbindir@
+ install keyd $(DESTDIR)/@sbindir@
+endif
+
keyd: keyd.o $(CORE_OBJS) keydb_$(DBTYPE).o
$(CC) $(LDFLAGS) $(PROGS_LDFLAGS_EXTRA) \
-o keyd keyd.o $(CORE_OBJS) keydb_$(DBTYPE).o $(LIBS)
onak.conf etc
-onak splitkeys usr/bin
-onak-mail.pl usr/lib/onak
-libkeydb_*.so usr/lib/onak/backends
add lookup gpgwww usr/lib/cgi-bin/pks
-onak.1 splitkeys.1 usr/share/man/man1
DEB_CONFIGURE_EXTRA_FLAGS += --enable-backend=dynamic
-DEB_MAKE_INSTALL_TARGET :=
-
# Woody doesn't like this of course
#CFLAGS += -std=gnu99