X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=Makefile.in;h=39007d5831f0a8db2f65bdd45c69a813c31dbee9;hb=d9726d0f8fffa6d2f8174bf6f6599b2e01ccbd50;hp=4d551bc98f99d782dd3fbc78e03ca3719ac855b5;hpb=c444d104cdc0250cd23b5013fee3e56000e23ae5;p=onak.git diff --git a/Makefile.in b/Makefile.in index 4d551bc..39007d5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -48,6 +48,21 @@ OBJS = stats.o cleankey.o $(CORE_OBJS) $(KEYDB_OBJ) 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) @@ -101,7 +116,8 @@ onak: onak.o cleankey.o $(CORE_OBJS) $(KEYDB_OBJ) $(CORE_OBJS) $(KEYDB_OBJ) $(LIBS) $(PROGS_LDFLAGS_EXTRA) onak-conf.o: onak-conf.c onak-conf.h - $(CC) $(CFLAGS) -DCONFIGFILE=\"@sysconfdir@/onak.conf\" -c onak-conf.c + $(CC) $(CFLAGS) -DCONFIGFILE=\"@sysconfdir@/onak.conf\" \ + -DDBFUNCS=keydb_@DBTYPE@_funcs -c onak-conf.c onak-mail.pl: onak-mail.pl.in sed 's:@CONFIG@:@sysconfdir@/onak.conf:g' < onak-mail.pl.in > onak-mail.pl