diff --git a/legacy/eet/Makefile.am b/legacy/eet/Makefile.am index 20512fac12..5954d4f534 100644 --- a/legacy/eet/Makefile.am +++ b/legacy/eet/Makefile.am @@ -12,7 +12,7 @@ MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess \ config.h.in config.sub configure install-sh \ ltconfig ltmain.sh missing mkinstalldirs \ stamp-h.in build-stamp configure-stamp depcomp \ - eet_docs.tar.gz eet.c \ + eet_docs.tar.gz \ README \ eet.pc \ eet.spec \ @@ -22,8 +22,7 @@ MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess \ bin_SCRIPTS = eet-config -EXTRA_DIST = AUTHORS COPYING COPYING-PLAIN eet.c.in gendoc \ - Doxyfile \ +EXTRA_DIST = AUTHORS COPYING COPYING-PLAIN eet.c.in \ README.in README \ eet.pc.in \ eet.spec.in eet.spec \ diff --git a/legacy/eet/doc/Makefile.am b/legacy/eet/doc/Makefile.am index 844a02f880..b76ecc16b3 100644 --- a/legacy/eet/doc/Makefile.am +++ b/legacy/eet/doc/Makefile.am @@ -8,7 +8,7 @@ all-local: doc-build.stamp # rule to remove all old created files doc-prepare.stamp: - @if test x"html" != x ; then \ + @if test -d html ; then \ rm -rf html/ latex/ man/ xml/; \ fi @@ -17,18 +17,32 @@ doc-build.stamp: doc-prepare.stamp @doxygen @cp img/*.png html/ +# rules to clean +clean-local: + @rm -rf html/ latex/ man/ xml/ + +distclean-local: clean + rm -f Makefile.in + # rule to install the documentation in $(docdir) install-data-local: - @if ! test -d "$(DESTDIR)$(datadir)/$(PACKAGE)"; then \ - mkdir "$(DESTDIR)$(datadir)/$(PACKAGE)"; \ + @if ! test -d $(DESTDIR)$(datadir)/$(PACKAGE); then \ + mkdir $(DESTDIR)$(datadir)/$(PACKAGE); \ fi - @if ! test -d "$(DESTDIR)$(docdir)"; then \ - mkdir "$(DESTDIR)$(docdir)"; \ + @if ! test -d $(DESTDIR)$(docdir); then \ + mkdir $(DESTDIR)$(docdir); \ fi - @cp -pr html/ man/ latex/ xml/ "$(DESTDIR)$(docdir)" + @cp -pr html/ man/ latex/ xml/ $(DESTDIR)$(docdir) # rule to uninstall the documentation uninstall-local: - rm -rf $(docdir) + rm -rf $(DESTDIR)$(docdir) + + +MAINTAINERCLEANFILES = Makefile.in eet.c + +DISTCLEANFILES = Makefile.in eet.c + +EXTRA_DIST = Doxyfile eet.css foot.html head.html img/ endif