Conf file is now in source tree
[mod_auth_kerb.cvs/.git] / Makefile.in
index 492a4bd..f6560ee 100644 (file)
@@ -2,18 +2,29 @@ APXS = @APXS@
 GSS_CPPFLAGS = @GSS_CPPFLAGS@
 GSS_LDFLAGS = @GSS_LDFLAGS@ @LIBS@
 SPNEGO_SRCS = @SPNEGO_SRCS@
+INSTALL=@INSTALL@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libexecdir=@libexecdir@
+sysconfdir=@sysconfdir@
+libdir=@libdir@
+
 
 CPPFLAGS = -I. -Ispnegokrb5 $(GSS_CPPFLAGS) $(DEFS)
 LDFLAGS = $(GSS_LDFLAGS)
 CFLAGS =
 
+SRCS = mod_auth_gssapi.c gss.c $(SPNEGO_SRCS)
+
 all: mod_auth_gssapi.la
 
-mod_auth_gssapi.la: mod_auth_gssapi.c $(SPNEGO_SRCS)
-       ./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" "${SPNEGO_SRCS}" "${APXS} -c"
+mod_auth_gssapi.la: $(SRCS)
+       ./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" "${SRCS}" "${APXS} -c"
 
-install:
-       ./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" "${SPNEGO_SRCS}" "${APXS} -c -i -n auth_gssapi"
+install: mod_auth_gssapi.la
+       $(INSTALL) -d $(DESTDIR)${libdir}/apache2/modules
+       $(INSTALL) -d $(DESTDIR)${sysconfdir}/apache2/mods-available
+       ./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" $^ "${APXS} -i -A  -S LIBEXECDIR=$(DESTDIR)${libdir}/apache2/modules -S SYSCONFDIR=$(DESTDIR)${sysconfdir}/apache2 -n auth_gssapi"
 
 clean:
        for i in . spnegokrb5; do \
@@ -25,4 +36,7 @@ distclean: clean
        $(RM) config.h config.status Makefile config.log
        $(RM) -rf autom4te.cache
 
-.PHONY: all install clean distclean
+dist-gzip:
+       git archive  --prefix mod_auth_gssapi/ HEAD |gzip -9 >@PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.gz
+
+.PHONY: all install clean distclean dist-gzip