X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fxmltooling.git;a=blobdiff_plain;f=Makefile.am;h=05bea16a9459165acd307a3cc72670cbd520182f;hp=24d6d03776b5efe13b2b1c406624d6202f4682f7;hb=8695994bc2a4f042049bafd80a9d36a813ec0f7e;hpb=cf46337e581fe9dfe5d034a793da99607444ee1f diff --git a/Makefile.am b/Makefile.am index 24d6d03..05bea16 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,32 +1,55 @@ -AUTOMAKE_OPTIONS = foreign - -ACLOCAL_AMFLAGS = -I . - -EXTRA_DIST = - schemas \ - cpp-xmltooling.sln \ - libtool.m4 \ - acx_pthread.m4 \ - depcomp \ - config_win32.h - -dist-hook: - rm -rf `find $(distdir)/schemas -name Makefile` - -SUBDIRS = schemas xmltooling - -#all-local: opensaml.spec pkginfo -# -#opensaml.spec: opensaml.spec.in Makefile -# rm -f $@.tmp -# sed < $< > $@.tmp \ -# -e 's:@-VERSION-@:${VERSION}:' -# mv $@.tmp $@ -# -#pkginfo: pkginfo.in Makefile -# rm -f $@.tmp -# sed < $< > $@.tmp \ -# -e 's:@-VERSION-@:${VERSION}:' -# mv $@.tmp $@ -# -#DISTCLEANFILES = opensaml.spec pkginfo +AUTOMAKE_OPTIONS = foreign + +ACLOCAL_AMFLAGS = -I . + +include doxygen.am + +MOSTLYCLEANFILES = $(DX_CLEANFILES) + +dist-hook: + rm -rf `find $(distdir)/xmltoolingtest/data -name .svn` + rm -rf `find $(distdir)/doc/api -name .svn` + + +SUBDIRS = doc schemas xmltooling xmltoolingtest + +if DX_COND_doc +all-local: doxygen-doc xmltooling.spec pkginfo +APIDOCS = doc/api +else +all-local: xmltooling.spec pkginfo +endif + +install-data-hook: + rm -rf $(DESTDIR)/$(datadir)/doc/@PACKAGE@/api + cp -r doc/api $(DESTDIR)/$(datadir)/doc/@PACKAGE@ + +xmltooling.spec: xmltooling.spec.in Makefile + rm -f $@.tmp + sed < $< > $@.tmp \ + -e 's:@-VERSION-@:${VERSION}:' + mv $@.tmp $@ + +pkginfo: pkginfo.in Makefile + rm -f $@.tmp + sed < $< > $@.tmp \ + -e 's:@-VERSION-@:${VERSION}:' + mv $@.tmp $@ + +EXTRA_DIST = $(DX_CONFIG) \ + $(APIDOCS) \ + cpp-xmltooling.sln \ + acx_pthread.m4 \ + acinclude.m4 \ + libtool.m4 \ + doxygen.m4 \ + depcomp \ + config_win32.h \ + xmltooling.spec.in \ + xmltooling.spec \ + pkginfo.in \ + pkginfo \ + depend \ + postinstall + +DISTCLEANFILES = xmltooling.spec pkginfo