5 include $(slateroot
)/common.mk
10 $(SILENT
) $(MAKE
) -C
$(VMDIR
) vm
11 $(SILENT
) cp
-f
$(VMDIR
)/$(VMNAME
) .
/slate
14 $(SILENT
) $(ECHO
) "repl resetOnStartup. Image saveNamed: '$(DEFAULT_IMAGE)'." |
$(VM
) $(QUIETNESS
) -i
$(DEFAULT_KERNEL_IMAGE
)
15 $(SILENT
) touch
$(DEFAULT_IMAGE
)
17 release_image
: vm
$(DEFAULT_IMAGE
)
20 $(SILENT
) $(INSTALL
) -d
$(exec_prefix) $(lispdir
) $(includedir) $(datadir) $(man1dir)
22 install: vm
installdirs
23 $(info Installing
) # TODO: Plugins and documentation missing
24 $(SILENT
) $(INSTALL
) $(VM
) $(exec_prefix)/$(execname
)
25 $(SILENT
) $(INSTALL
) $(INSTALL_MODE
) $(slateroot
)/$(DEFAULT_IMAGE
) $(datadir)/$(DEFAULT_IMAGE
)
26 $(SILENT
) $(INSTALL
) $(INSTALL_MODE
) $(VMDIR
)/slate.hpp
$(includedir)/slate.hpp
27 $(SILENT
) $(INSTALL
) $(INSTALL_MODE
) $(slateroot
)/etc
/slate-mode.el
$(lispdir
)/
28 $(SILENT
) cat
$(slateroot
)/etc
/slate
.1 | sed
-e
's/$${prefix}/$(subst /,\/,$(prefix))/g' |
$(GZIP
) -c
> $(slateroot
)/etc
/slate
.1.gz
29 $(SILENT
) $(INSTALL
) $(INSTALL_MODE
) $(slateroot
)/etc
/slate
.1.gz
$(man1dir)
31 install-strip
: install
32 $(SILENT
) $(INSTALL
) -s
$(VM
) $(exec_prefix)/$(execname
)
35 $(info Checking installation
)
36 # TODO: A few sanity checks should be run on the installed files
37 $(SILENT
) $(ECHO
) "3 + 4." |
$(exec_prefix)/$(execname
)
41 $(SILENT
) $(RM
) -f
$(exec_prefix)/$(execname
)
42 $(SILENT
) $(RM
) -f
$(lispdir
)/slate-mode.el
43 $(SILENT
) $(RM
) -f
$(includedir)/slate.hpp
44 $(SILENT
) $(RM
) -fr
$(datadir)
47 $(info Launching Slate in Emacs
)
48 $(SILENT
) $(EMACS
) -Q
-l
$(slateroot
)/etc
/slate-startup.el
51 $(info Creating completion file for evaluation
)
52 $(SILENT
) $(VM
) $(QUIETNESS
) -i
$(DEFAULT_IMAGE
) --eval
"(File newNamed: '~/.slate_completions' &mode: File CreateWrite) writer sessionDo: [| :x | Symbols keySet do: [| :name | x ; name ; '\n']]. quit."
54 readline-support
: slate-completions
56 bootstrap
: src
/mobius
/init.slate
57 $(info Bootstrapping new images
)
58 $(SILENT
) $(VM
) $(QUIETNESS
) -i
$(DEFAULT_IMAGE
) --load src
/mobius
/init.slate
--eval
"Image bootstrap &littleEndian: True &bitSize: $(WORD_SIZE). quit."
61 cd ..
&& tar '--exclude=*.git*' -jcvf cslatevm-backup.
tar.bz2 cslatevm
64 $(MAKE
) -C src
/plugins
67 rm -f core vm vm.fast vm.prof
70 $(MAKE
) -C src
/plugins
clean
72 $(MAKE
) -C src
/vm
clean
74 clean: pluginsclean vmclean
78 TAGS
: $(SOURCES
) $(HEADERS
)
79 $(SECHO
) "Creating $@ file"
80 $(SILENT
) $(ETAGS
) $(SOURCES
) $(HEADERS
)
82 .PHONY
: clean superclean backup plugins pluginsclean vmclean