https://issues.shibboleth.net/jira/browse/SSPCPP-212
[shibboleth/cpp-sp.git] / Makefile.am
index 057da2a..4de5d0f 100644 (file)
@@ -3,20 +3,10 @@ AUTOMAKE_OPTIONS = foreign
 ACLOCAL_AMFLAGS = -I .
 
 EXTRA_DIST = \
-       schemas doc isapi_shib \
+       isapi_shib \
        Shibboleth.dsw libtool.m4 acx_pthread.m4 acx_rpctest.m4 depcomp \
        config_win32.h posttest/posttest.dsp shibtest/shibtest.dsp \
-       shibboleth.spec.in shibboleth.spec pkginfo.in pkginfo checkinstall
-
-dist-hook:
-       rm -rf `find $(distdir)/schemas -name CVS`
-       rm -rf `find $(distdir)/schemas -name Makefile`
-       rm -rf `find $(distdir)/configs -name CVS`
-       rm -rf `find $(distdir)/configs -name Makefile`
-       rm -rf `find $(distdir)/doc -name CVS`
-       rm -rf `find $(distdir)/doc -name Makefile`
-       rm -rf `find $(distdir)/isapi_shib -name CVS`
-       rm -rf `find $(distdir)/isapi_shib_gui -name CVS`
+       shibboleth.spec.in shibboleth.spec pkginfo.in pkginfo depend postinstall
 
 WANT_SUBDIRS = @WANT_SUBDIRS@
 
@@ -27,15 +17,18 @@ DIST_SUBDIRS = adfs doc oncrpc shib schemas configs shib-target shar test \
 
 all-local: shibboleth.spec pkginfo
 
+dist-hook:
+       rm -rf `find $(distdir)/isapi_shib -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 $@