diff --git a/Makefile.in b/Makefile.in index cc9e82c0..2e11f020 100644 --- a/Makefile.in +++ b/Makefile.in @@ -129,16 +129,16 @@ apidocs-doxygen: check-topdir echo "Executable doxygen is not installed!" ; exit 1 ; \ fi -apidocs-build: check-topdir +apidocs-build: @if [ -n "$(DOCGEN)" ]; then \ - $(DOCGEN) ; \ + cd @srcdir@ ; $(DOCGEN) ; \ else \ echo "Neither kdoc or doxygen is installed!" ; exit 1 ; \ fi apidocs: @srcdir@/docs/api/index.html -@srcdir@/docs/api/index.html: Doxyfile \ +@srcdir@/docs/api/index.html: @srcdir@/Doxyfile \ @srcdir@/yateclass.h @srcdir@/yatemime.h @srcdir@/yatengine.h \ @srcdir@/yatephone.h @srcdir@/yatecbase.h $(MAKE) apidocs-build diff --git a/scripts/Makefile.in b/scripts/Makefile.in index c297e7fc..c658889d 100644 --- a/scripts/Makefile.in +++ b/scripts/Makefile.in @@ -20,7 +20,7 @@ all: .PHONY: install install: - @mkdir -p "$(DESTDIR)$(scrdir)/" && \ + @cd @srcdir@ && mkdir -p "$(DESTDIR)$(scrdir)/" && \ install -m 0644 $(SCRLIBS) "$(DESTDIR)$(scrdir)/" && \ test -z "$(SCRIPTS)" || \ install $(SCRIPTS) "$(DESTDIR)$(scrdir)/"