MOSTLYCLEANFILES = $(DX_CLEANFILES)
-EXTRA_DIST = $(DX_CONFIG) \
- doc \
- schemas \
- cpp-xmltooling.sln \
- acx_pthread.m4 \
- acinclude.m4 \
- libtool.m4 \
- doxygen.m4 \
- depcomp \
- config_win32.h \
- xmltooling.spec.in \
- xmltooling.spec \
- pkginfo.in \
- pkginfo \
- checkinstall
-
dist-hook:
rm -rf `find $(distdir)/xmltoolingtest/data -name .svn`
- rm -rf `find $(distdir)/schemas -name .svn`
- rm -rf `find $(distdir)/schemas -name Makefile`
- rm -rf `find $(distdir)/doc -name .svn`
- rm -rf `find $(distdir)/doc -name Makefile`
+ rm -rf `find $(distdir)/doc/api -name .svn`
-SUBDIRS = schemas xmltooling xmltoolingtest
+SUBDIRS = doc schemas xmltooling xmltoolingtest
-all-local: xmltooling.spec pkginfo doxygen-doc
+GENFILES = xmltooling.spec pkginfo Portfile
-xmltooling.spec: xmltooling.spec.in Makefile
- rm -f $@.tmp
- sed < $< > $@.tmp \
- -e 's:@-VERSION-@:${VERSION}:'
- mv $@.tmp $@
+if DX_COND_doc
+all-local: doxygen-doc $(GENFILES)
+else
+all-local: $(GENFILES)
+endif
+
+install-data-hook:
+ rm -rf $(DESTDIR)$(datadir)/doc/@PACKAGE@/api
+ cp -r doc/api $(DESTDIR)$(datadir)/doc/@PACKAGE@
-pkginfo: pkginfo.in Makefile
+$(GENFILES): %: %.in Makefile
rm -f $@.tmp
- sed < $< > $@.tmp \
+ sed < $@.in > $@.tmp \
-e 's:@-VERSION-@:${VERSION}:'
mv $@.tmp $@
-DISTCLEANFILES = xmltooling.spec pkginfo
+EXTRA_DIST = $(DX_CONFIG) \
+ cpp-xmltooling.sln \
+ acx_pthread.m4 \
+ acinclude.m4 \
+ libtool.m4 \
+ doxygen.m4 \
+ depcomp \
+ config_win32.h \
+ $(GENFILES) \
+ $(GENFILES:%=%.in) \
+ depend \
+ postinstall
+
+DISTCLEANFILES = $(GENFILES)