Fix out-of-tree build for doc/.
authorDaiki Ueno <ueno@unixuser.org>
Sat, 11 Dec 2010 06:35:49 +0000 (15:35 +0900)
committerDaiki Ueno <ueno@unixuser.org>
Sat, 11 Dec 2010 06:35:49 +0000 (15:35 +0900)
doc/Makefile.am
doc/infohack.el

index 942453a..5ae3439 100644 (file)
@@ -10,5 +10,7 @@ package: all
 install-package: package
        $(MAKE) infodir=$(PACKAGEDIR)/info install
 
-%.info: %.texi
-       $(EMACS) -batch -q -no-site-file -l ./infohack.el -f batch-makeinfo $<
+SUFFIXES = .texi .info
+.texi.info:
+       $(EMACS) -batch -q -no-site-file -l $(srcdir)/infohack.el $(srcdir) \
+               -f batch-makeinfo $<
index 9b4af97..d941c62 100644 (file)
@@ -29,7 +29,9 @@
 ;      (features (cons 'w3-forms (copy-sequence features))))
 ;  ;; Adjust `load-path' for APEL.
 ;  (load-file "dgnushack.el"))
-(load-file (expand-file-name "ptexinfmt.el" "./"))
+(load-file (expand-file-name "ptexinfmt.el"
+                            (car command-line-args-left)))
+(setq command-line-args-left (cdr command-line-args-left))
 
 (defun infohack-remove-unsupported ()
   (goto-char (point-min))