Use of ::= in the Compiler, eliminating almost all mutable state from its methods.
[cslatevm.git] / Makefile
blob18739b094b77e6640c821587d722c9277849b008
1 slateroot=.
3 include $(slateroot)/common.mk
5 all: vm
7 vm:
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 $<
13 $(SILENT) touch $@
15 $(DEFAULT_IMAGE): vm
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)
21 installdirs:
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)
38 installcheck:
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."
43 uninstall:
44 $(info Uninstalling)
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)
50 edit:
51 $(info Launching Slate in Emacs)
52 $(SILENT) $(EMACS) -Q -l $(slateroot)/etc/slate-startup.el
54 slate-completions:
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
60 i18n-support:
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"
67 backup: superclean
68 tar '--exclude=*.git*' -jcvf ../slate-backup.tar.bz2 .
70 plugins:
71 $(MAKE) -C src/plugins
73 superclean: clean
74 rm -f core vm vm.fast vm.prof
76 pluginsclean:
77 $(MAKE) -C src/plugins clean
78 vmclean:
79 $(MAKE) -C src/vm clean
81 clean: pluginsclean vmclean
83 tags: TAGS
85 TAGS: $(SOURCES) $(HEADERS)
86 $(SECHO) "Creating $@ file"
87 $(SILENT) $(ETAGS) $(SOURCES) $(HEADERS)
89 .PHONY: clean superclean backup plugins pluginsclean vmclean