]> git.lyx.org Git - lyx.git/blobdiff - Makefile.am
Pointless third arg to nextBreakPoint
[lyx.git] / Makefile.am
index 7310d62d66afbe46bbc141b9a63f1831f5d28fad..5eaf4efa2103720fbc87d12934d001fb83deb8bb 100644 (file)
@@ -1,6 +1,6 @@
 include $(top_srcdir)/config/common.am
 
-DISTCLEANFILES += lyx.1 config.status config.cache config.log 
+DISTCLEANFILES += lyx.1 config.status config.cache config.log
 
 MAINTAINERCLEANFILES += $(srcdir)/aclocal.m4 \
        $(srcdir)/configure \
@@ -28,8 +28,13 @@ dist-hook:
        rm -rf `find images -name \*CVS\*`
 
 rpmdist: dist
-       ln -s lib/images/lyx.xpm . ; \
-       rpm -ta $(PACKAGE)-$(VERSION).tar.gz ; saved_status=$$?; \
+       ln -s $(srcdir)/lib/images/lyx.xpm . ; \
+       if [ -z "`type -path rpmbuild`" ]; \
+       then \
+               RPMBUILD=rpm; \
+       else \
+               RPMBUILD=rpmbuild; \
+       fi; $$RPMBUILD -ta $(PACKAGE)-$(VERSION).tar.gz ; saved_status=$$?; \
        rm lyx.xpm; exit $$saved_status
 
 bindist:
@@ -53,15 +58,10 @@ bindist:
        @echo "*** distribution and refer to *you* in case of problem."
        @echo "*** $(bindistfile) has been created."
 
-doxydoc: sourcedoc/Doxyfile
-       cd sourcedoc; \
-       doxygen ./Doxyfile
-
-distclean-local:
-       rm -rf $(srcdir)/sourcedoc/html $(srcdir)/sourcedoc/latex \
-       $(srcdir)/sourcedoc/main
+doxydoc:
+       cd sourcedoc; make doxydoc
 
 lgbtags:
        etags --totals=yes --recurse=yes -o TAGS $(top_srcdir)/*
 
-.PHONY: sourcedoc
+.PHONY: doxydoc