]> andersk Git - moira.git/blobdiff - update/Makefile.in
DESTDIR support.
[moira.git] / update / Makefile.in
index 6f2dbf4efdfee36db12986ca47b3b3a3c908e6bd..20d205285ccfd5fbb2c54fb0e51a88399cda1bdb 100644 (file)
@@ -10,6 +10,8 @@ DEFS=@DEFS@
 ALL_CFLAGS=$(CPPFLAGS) $(CFLAGS) $(DEFS)
 LDFLAGS=@LDFLAGS@
 LIBS=@LIBS@
+MR_LIBDEP=@MR_LIBDEP@
+INSTALL=@INSTALL@
 INSTALL_PROGRAM=@INSTALL_PROGRAM@
 
 srcdir=@srcdir@
@@ -20,8 +22,9 @@ prefix=@prefix@
 exec_prefix=@exec_prefix@
 bindir=@bindir@
 sbindir=@sbindir@
+sysconfdir=@sysconfdir@
 
-SOBJS= auth_002.o checksum.o config.o exec_002.o get_file.o \
+SOBJS= auth_002.o auth_003.o checksum.o config.o exec_002.o get_file.o \
        update_server.o xfer_002.o xfer_003.o sendrecv.o
 COBJS= update_test.o checksum.o client.o send_file.o ticket.o sendrecv.o
 
@@ -35,14 +38,19 @@ all: $(TARGET)
 clean:
        rm -f $(SOBJS) $(COBJS) $(TARGET)
 
+cleandir distclean: clean
+       rm -f Makefile
+
 depend:
 
 install: all
-       $(INSTALL_PROGRAM) update_test $(bindir)
-       $(INSTALL_PROGRAM) update_server $(sbindir)
+       $(INSTALL_PROGRAM) update_test $(DESTDIR)$(bindir)
+       $(INSTALL_PROGRAM) update_server $(DESTDIR)$(sbindir)
+       $(SRCTOP)/mkinstalldirs $(DESTDIR)$(sysconfdir)/athena
+       $(INSTALL) -m 644 moira.conf $(DESTDIR)$(sysconfdir)/athena/moira.conf
 
-update_test: $(COBJS)
+update_test: $(COBJS) $(MR_LIBDEP)
        $(CC) -o $@ $(LDFLAGS) $(COBJS) $(LIBS)
 
-update_server: $(SOBJS)
+update_server: $(SOBJS) $(MR_LIBDEP)
        $(CC) -o $@ $(LDFLAGS) $(SOBJS) $(LIBS)
This page took 0.029792 seconds and 4 git commands to generate.