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
50 bootstrap
: src
/mobius
/init.slate
51 $(info Bootstrapping new images
)
52 $(SILENT
) $(ECHO
) "Image bootstrap &littleEndian: True &bitSize: $(WORD_SIZE)." |
$(VM
) $(QUIETNESS
) -i
$(DEFAULT_IMAGE
) --load src
/mobius
/init.slate
55 cd ..
&& tar '--exclude=*.git*' -jcvf cslatevm-backup.
tar.bz2 cslatevm
58 $(MAKE
) -C src
/plugins
61 rm -f core vm vm.fast vm.prof
64 $(MAKE
) -C src
/plugins
clean
66 $(MAKE
) -C src
/vm
clean
68 clean: pluginsclean vmclean
72 TAGS
: $(SOURCES
) $(HEADERS
)
73 $(SECHO
) "Creating $@ file"
74 $(SILENT
) $(ETAGS
) $(SOURCES
) $(HEADERS
)
76 .PHONY
: clean superclean backup plugins pluginsclean vmclean