3 include $(slateroot
)/common.mk
8 $(SILENT
) $(MAKE
) -C
$(VMDIR
) vm
9 $(SILENT
) cp
-f
$(VMDIR
)/$(VMNAME
) .
/slate
11 slate.
%.image
: kernel.new.
%.image
12 $(SILENT
) $(ECHO
) "repl resetOnStartup. Image saveNamed: '$@'." |
$(VM
) $(QUIETNESS
) -i
$<
16 $(SILENT
) $(ECHO
) "repl resetOnStartup. Image saveNamed: '$(DEFAULT_IMAGE)'." |
$(VM
) $(QUIETNESS
) -i
$(DEFAULT_KERNEL_IMAGE
)
17 $(SILENT
) touch
$(DEFAULT_IMAGE
)
19 release_image
: vm
$(DEFAULT_IMAGE
)
22 $(SILENT
) $(INSTALL
) -d
$(exec_prefix) $(lispdir
) $(includedir) $(datadir) $(man1dir)
24 install: vm
installdirs
25 $(info Installing
) # TODO: Plugins and documentation missing
26 $(SILENT
) $(INSTALL
) $(VM
) $(exec_prefix)/$(execname
)
27 $(SILENT
) $(INSTALL
) $(INSTALL_MODE
) $(slateroot
)/$(DEFAULT_IMAGE
) $(datadir)/$(DEFAULT_IMAGE
)
28 $(SILENT
) $(INSTALL
) $(INSTALL_MODE
) $(VMDIR
)/slate.hpp
$(includedir)/slate.hpp
29 $(SILENT
) $(INSTALL
) $(INSTALL_MODE
) $(slateroot
)/etc
/slate-mode.el
$(lispdir
)/
30 $(SILENT
) mkdir
-p
$(vimdir
)
31 $(SILENT
) $(INSTALL
) $(INSTALL_MODE
) $(slateroot
)/etc
/slate.vim
$(vimdir
)/
32 $(SILENT
) cat
$(slateroot
)/etc
/slate
.1 | sed
-e
's/$${prefix}/$(subst /,\/,$(prefix))/g' |
$(GZIP
) -c
> $(slateroot
)/etc
/slate
.1.gz
33 $(SILENT
) $(INSTALL
) $(INSTALL_MODE
) $(slateroot
)/etc
/slate
.1.gz
$(man1dir)
35 install-strip
: install
36 $(SILENT
) $(INSTALL
) -s
$(VM
) $(exec_prefix)/$(execname
)
39 $(info Checking installation
)
40 # TODO: A few sanity checks should be run on the installed files
41 $(SILENT
) $(exec_prefix)/$(execname
) --eval
"3 + 4. quit."
45 $(SILENT
) $(RM
) -f
$(exec_prefix)/$(execname
)
46 $(SILENT
) $(RM
) -f
$(lispdir
)/slate-mode.el
47 $(SILENT
) $(RM
) -f
$(includedir)/slate.hpp
48 $(SILENT
) $(RM
) -fr
$(datadir)
51 $(info Launching Slate in Emacs
)
52 $(SILENT
) $(EMACS
) -Q
-l
$(slateroot
)/etc
/slate-startup.el
55 $(info Creating completion file for evaluation
)
56 $(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."
58 readline-support
: slate-completions
61 $(SILENT
) $(VM
) $(QUIETNESS
) -i
$(DEFAULT_IMAGE
) --load src
/i18n
/init.slate
--eval
"Unicode buildTable" --eval
"Image save. quit."
63 bootstrap
: src
/mobius
/init.slate
64 $(info Bootstrapping new images
)
65 $(SILENT
) $(VM
) $(QUIETNESS
) -i
$(DEFAULT_IMAGE
) --load src
/mobius
/init.slate
--eval
"Bootstrap ImageDefinition bootstrap &bootstrapDirectory: '$(BOOTSTRAP_DIR)' &littleEndian: $(LITTLE_ENDIAN_SLATE) &wordSize: $(WORD_SIZE)." --eval
"quit"
68 tar '--exclude=*.git*' -jcvf ..
/slate-backup.
tar.bz2 .
71 $(MAKE
) -C src
/plugins
74 rm -f core vm vm.fast vm.prof
77 $(MAKE
) -C src
/plugins
clean
79 $(MAKE
) -C src
/vm
clean
81 clean: pluginsclean vmclean
85 TAGS
: $(SOURCES
) $(HEADERS
)
86 $(SECHO
) "Creating $@ file"
87 $(SILENT
) $(ETAGS
) $(SOURCES
) $(HEADERS
)
89 .PHONY
: clean superclean backup plugins pluginsclean vmclean