summarylogtreecommitdiffstats
path: root/fix-build.patch
blob: cadb1ae05a1c9043b34819581a79e9c4f1e50c9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- Makefile.orig	2009-05-15 18:22:49.000000000 +0200
+++ Makefile	2009-05-16 08:59:36.000000000 +0200
@@ -15,6 +15,7 @@
 TARGET	= $(patsubst %.el,%.elc,$(SPECIAL) $(SOURCE))
 MANUAL  = color-theme
 MISC	= AUTHORS COPYING ChangeLog Makefile.defs Makefile $(AUTOLOADFILE).in
+LOADPATH = "$(shell pwd)" "$(shell pwd)/themes"
 #AUTHORS CREDITS HISTORY NEWS README Makefile ChangeLog \
 #ChangeLog.2005 ChangeLog.2004 ChangeLog.2003 ChangeLog.2002 \
 #ChangeLog.2001 servers.pl color-theme-auto.in color-theme.texi
@@ -47,7 +48,7 @@
 
 %.elc: %.el
 	@$(EMACS) $(OPTIONCOMPILE) \
-	--eval '(setq load-path (cons "." load-path))' \
+	--eval '(setq load-path (append load-path (list $(LOADPATH))))' \
 	-f batch-byte-compile $<
 
 %.info: %.texi