Typo bug-fixes.
[cslatevm.git] / Makefile
blobc755d23eefd52693254da8c5bbbd660d8d654848
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 latest_release_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)
26 installdirs:
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)
43 installcheck:
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."
48 uninstall:
49 $(info Uninstalling)
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)
55 edit:
56 $(info Launching Slate in Emacs)
57 $(SILENT) $(EMACS) -Q -l $(slateroot)/etc/slate-startup.el $(src)
59 slate-completions:
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
65 i18n-support:
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"
72 backup: superclean
73 tar '--exclude=*.git*' -jcvf ../slate-backup.tar.bz2 .
75 plugins:
76 $(MAKE) -C src/plugins
78 superclean: clean
79 rm -f core vm vm.fast vm.prof
81 pluginsclean:
82 $(MAKE) -C src/plugins clean
83 vmclean:
84 $(MAKE) -C src/vm clean
86 clean: pluginsclean vmclean
88 tags: TAGS
90 TAGS: $(SOURCES) $(HEADERS)
91 $(SECHO) "Creating $@ file"
92 $(SILENT) $(ETAGS) $(SOURCES) $(HEADERS)
94 .PHONY: clean superclean backup plugins pluginsclean vmclean