Makefile.in 3.68 KB
Newer Older
1
# -*- Mode: Makefile -*-
2
# $Id: Makefile.in,v 1.7 2003/10/06 17:57:25 ihatchondo Exp $
3
#
4
# Makefile for Eclipse window manager.
james's avatar
james committed
5

6
7
8
9
10
LISP = @LISP@ $(LISPFLAGS)
usecore = @usecore@
INITCORE = @INITCORE@
CORENAME = @CORENAME@
COREDIR = @COREDIR@
james's avatar
james committed
11
12
PRG = eclipse

13
# lisp argument name for evaluating forms :
james's avatar
james committed
14
15
eval_form = @eval_form@
# lisp argument name for loading file :
16
load_switch = @load_switch@
james's avatar
james committed
17
18
19
20
21
22
23
24
25
26
# lisp function for saving a system image :
save_lisp = @save_lisp@

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
datadir = @datadir@
27
libdir = @libdir@
james's avatar
james committed
28
29
mandir = @mandir@
install = @INSTALL@
30
gnome_entry_dir = @gnome_entry_dir@
31
32
33
34
eclipsedir = @eclipsedir@
initfile = @initfile@

themedir = ${eclipsedir}/themes
35
themes = microGUI Step brushed-metal CoolClean
james's avatar
james committed
36

37
38
39
40
41
42
43
44
45
# In order to communicate configuration options to the lisp system the
# corresponding variable should be given a definition above, an entry
# in `setconfig' below and a `defvar' in "config.lisp.in". Always use an
# explicit prefix of "cl-user::" to prevent any package problems.

setconfig = cl-user::*eclipse-eclipsedir* "$(eclipsedir)/" \
	    cl-user::*eclipse-initfile* "$(initfile)"


46
all:	compile themes core
james's avatar
james committed
47
48

compile:
49
	$(LISP) $(INITCORE) ${load_switch} compile.lisp
james's avatar
james committed
50
51

core:	
52
53
54
55
56
57
58
	if test ! ${usecore} = no;					 \
        then $(LISP) $(INITCORE)					 \
                     ${load_switch} system.lisp				 \
                     ${eval_form} '(setq $(setconfig))'			 \
                     ${eval_form}  "(progn				 \
			              (operate-on-system :eclipse :load) \
			              (${save_lisp} \"${CORENAME}\"))";	 \
james's avatar
james committed
59
60
	fi

61
62
63
64

.PHONY: themes

themes:
65
66
67
68
69
70
71
72
	@for theme in ${themes};					\
	do								\
	 $(LISP) $(INITCORE)						\
		 ${load_switch} system.lisp				\
	         ${eval_form} "(progn					\
				 (compile-theme \"themes/$$theme/\")	\
				 #+:cmu(ext:quit)			\
			         #+:allegro(excl:exit))";		\
73
74
	done

75
76
77
78
79
80
81
clean: clean-fasl clean-core clean-themes

clean-fasl:
	$(LISP) $(INITCORE) ${load_switch} system.lisp ${eval_form}	\
	 "(progn							\
	    (operate-on-system :eclipse :clean)				\
	    #+:cmu(ext:quit)						\
james's avatar
james committed
82
	    #+:allegro(excl:exit))"
83
84
85
86
87
88
89
90
91
92
93
94
95
	/bin/rm -f *.err

clean-core:
	if test ! ${usecore} = no; then /bin/rm -f ${CORENAME}; fi

clean-themes:
	for theme in themes/*; do /bin/rm -f $$theme/theme.o; done

realclean: clean
	/bin/rm -f Makefile
	/bin/rm -f eclipse
	/bin/rm -f load-eclipse.lisp config.lisp
	/bin/rm -f config.cache config.log config.status
james's avatar
james committed
96
97

install:
98
99
100
101
102
103
	if test ! ${usecore} = no ; then			\
	    $(install) -d ${COREDIR} ;				\
	    $(install) ${CORENAME} ${COREDIR}/${CORENAME} ;	\
	    for theme in ${themes} ; do				\
	      test -f "themes/$$theme/theme.o" &&		\
	      $(install) -d ${themedir}/$$theme &&		\
104
105
	      $(install) themes/$$theme/theme.o			\
                         ${themedir}/$$theme/theme.o &&		\
106
	      for file in themes/$$theme/*.pnm ; do		\
107
108
109
110
111
112
		$(install) $$file ${themedir}/$$theme/. ;	\
	      done ;						\
	    done ;						\
	fi
	$(install) -d ${eclipsedir}
	$(install) eclipserc ${eclipsedir}
james's avatar
james committed
113
114
	$(install) -d ${bindir}
	$(install) -m 755 ${PRG} ${bindir}/${PRG}
115
116
117
	if test ! -x ${bindir}/`basename ${LISP}` ; then	\
	    $(install) ${LISP} ${bindir} ;			\
	fi
james's avatar
james committed
118
119
	$(install) -d ${mandir}/man1
	$(install) -m 644 docs/eclipse.1 ${mandir}/man1/eclipse.1
120
121
	$(install) -d ${themedir}
	-if test ! ${gnome} = no;\
james's avatar
james committed
122
	then\
123
	  if test ! -d ${gnome_entry_dir};\
james's avatar
james committed
124
125
126
127
128
129
130
	  then $(install) -d ${gnome_entry_dir};\
	  fi;\
	  $(install) -m 644 Eclipse.desktop ${gnome_entry_dir}/Eclipse.desktop;\
	fi	

uninstall: 
	/bin/rm -f ${bindir}/${PRG}
131
	/bin/rm -f ${COREDIR}/${CORENAME}
james's avatar
james committed
132
133
134
	/bin/rm -f ${mandir}/man1/eclipse.1
	if test ! ${gnome_entry_dir} = no;\
	then /bin/rm -f ${gnome_entry_dir}/Eclipse.desktop; fi