prefix       = @prefix@
INSTALL	     = @INSTALL@

TIMBERC      = @TIMBERC@
TIMBERLIBS   = Prelude.t $(filter-out Prelude.t,$(notdir $(wildcard ../lib/*.t)))

all: 
	@printf "Run make install to install and build this RTS.\n\n"
	@printf "Run make $(DEST) to build this RTS in-place.\n"
	@printf "Notice that building in-place requires the RTS to reside in\n"
	@printf "an installed timberc tree.\n\n"


$(DEST): rts.js
	echo "Browser rts in place"

install: 
	$(INSTALL) -d $(DESTDIR)$(prefix)/rtsBrowser
	$(INSTALL) timberc.cfg $(DESTDIR)$(prefix)/rtsBrowser
	$(INSTALL) rts.js $(DESTDIR)$(prefix)/rtsBrowser
	$(INSTALL) Makefile $(DESTDIR)$(prefix)/rtsBrowser
