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
) $(WGET
) $(LATEST_SLATE_IMAGE_URL
)
23 -bunzip2
-q
-k
$(LATEST_SLATE_IMAGE_RELEASE_NAME
).bz2
24 $(INSTALL
) $(LATEST_SLATE_IMAGE_RELEASE_NAME
) $(DEFAULT_IMAGE
)
27 $(SILENT
) $(INSTALL
) -d
$(exec_prefix) $(lispdir
) $(includedir) $(datadir) $(man1dir)
29 install: vm
installdirs
30 $(info Installing
) # TODO: Plugins and documentation missing
31 $(SILENT
) $(INSTALL
) $(VM
) $(exec_prefix)/$(execname
)
32 $(SILENT
) $(INSTALL
) $(INSTALL_MODE
) $(slateroot
)/$(DEFAULT_IMAGE
) $(datadir)/$(DEFAULT_IMAGE
)
33 $(SILENT
) $(INSTALL
) $(INSTALL_MODE
) $(VMDIR
)/slate.hpp
$(includedir)/slate.hpp
34 $(SILENT
) $(INSTALL
) $(INSTALL_MODE
) $(slateroot
)/etc
/slate-mode.el
$(lispdir
)/
35 $(SILENT
) mkdir
-p
$(vimdir
)
36 $(SILENT
) $(INSTALL
) $(INSTALL_MODE
) $(slateroot
)/etc
/slate.vim
$(vimdir
)/
37 $(SILENT
) cat
$(slateroot
)/etc
/slate
.1 | sed
-e
's/$${prefix}/$(subst /,\/,$(prefix))/g' |
$(GZIP
) -c
> $(slateroot
)/etc
/slate
.1.gz
38 $(SILENT
) $(INSTALL
) $(INSTALL_MODE
) $(slateroot
)/etc
/slate
.1.gz
$(man1dir)
40 install-strip
: install
41 $(SILENT
) $(INSTALL
) -s
$(VM
) $(exec_prefix)/$(execname
)
44 $(info Checking installation
)
45 # TODO: A few sanity checks should be run on the installed files
46 $(SILENT
) $(exec_prefix)/$(execname
) --eval
"3 + 4. quit."
50 $(SILENT
) $(RM
) -f
$(exec_prefix)/$(execname
)
51 $(SILENT
) $(RM
) -f
$(lispdir
)/slate-mode.el
52 $(SILENT
) $(RM
) -f
$(includedir)/slate.hpp
53 $(SILENT
) $(RM
) -fr
$(datadir)
56 $(info Launching Slate in Emacs
)
57 $(SILENT
) $(EMACS
) -Q
-l
$(slateroot
)/etc
/slate-startup.el
$(src
)
60 $(info Creating completion file for evaluation
)
61 $(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."
63 readline-support
: slate-completions
66 $(SILENT
) $(VM
) $(QUIETNESS
) -i
$(DEFAULT_IMAGE
) --load src
/i18n
/init.slate
--eval
"Unicode buildTable" --eval
"Image save. quit."
68 bootstrap
: src
/mobius
/init.slate
69 $(info Bootstrapping new images
)
70 $(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"
73 tar '--exclude=*.git*' -jcvf ..
/slate-backup.
tar.bz2 .
76 $(MAKE
) -C src
/plugins
79 rm -f core vm vm.fast vm.prof
82 $(MAKE
) -C src
/plugins
clean
84 $(MAKE
) -C src
/vm
clean
86 clean: pluginsclean vmclean
90 TAGS
: $(SOURCES
) $(HEADERS
)
91 $(SECHO
) "Creating $@ file"
92 $(SILENT
) $(ETAGS
) $(SOURCES
) $(HEADERS
)
94 .PHONY
: clean superclean backup plugins pluginsclean vmclean