https://issues.shibboleth.net/jira/browse/SSPCPP-94
[shibboleth/cpp-sp.git] / Makefile.am
index b1260bc..28448cf 100644 (file)
@@ -10,7 +10,7 @@ WANT_SUBDIRS = @WANT_SUBDIRS@
 
 SUBDIRS = $(WANT_SUBDIRS)
 
-DIST_SUBDIRS = doc schemas configs shibsp shibd adfs util apache nsapi_shib fastcgi odbc-store selinux
+DIST_SUBDIRS = doc schemas configs shibsp shibd adfs util apache nsapi_shib fastcgi odbc-store memcache-store selinux
 
 if DX_COND_doc
 all-local: shibboleth.spec pkginfo doxygen-doc
@@ -23,15 +23,19 @@ install-data-hook:
        rm -rf $(DESTDIR)$(datadir)/doc/@PACKAGE@/api
        cp -r doc/api $(DESTDIR)$(datadir)/doc/@PACKAGE@
 
+dist-hook:
+       rm -rf `find $(distdir)/isapi_shib -name .svn`
+       rm -rf `find $(distdir)/doc/api -name .svn`
+
 shibboleth.spec: shibboleth.spec.in Makefile
        rm -f $@.tmp
-       sed < $< > $@.tmp \
+       sed < $@.in > $@.tmp \
            -e 's:@-VERSION-@:${VERSION}:'
        mv $@.tmp $@
 
 pkginfo: pkginfo.in Makefile
        rm -f $@.tmp
-       sed < $< > $@.tmp \
+       sed < $@.in > $@.tmp \
            -e 's:@-VERSION-@:${VERSION}:'
        mv $@.tmp $@
 
@@ -48,6 +52,7 @@ EXTRA_DIST = $(DX_CONFIG) \
     shibboleth.spec \
     pkginfo.in \
     pkginfo \
-    checkinstall
+    depend \
+    postinstall
 
 DISTCLEANFILES = shibboleth.spec pkginfo