# Makefile # # COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu) # All rights reserved. # # The Makefile for building all versions of the Diderot runtime system # # @configure_input@ # SHELL = @SHELL@ INSTALL = @INSTALL@ @SET_MAKE@ # # directories for the install target # PREFIX = @prefix@ INSTALL_LIBDIR = $(PREFIX)/lib # # directories for the local-install target # LIBDIR = @DIDEROT_ROOT@/lib .PHONY: build local-install install build: for dir in $(wildcard rt-*) ; do \ (cd $$dir; $(MAKE) build) || exit $$?; \ done local-install: $(INSTALL) -d $(LIBDIR) for dir in $(wildcard rt-*); do \ (cd $$dir && $(MAKE) local-install) || exit $$?; \ done install: $(INSTALL) -d $(INSTALL_LIBDIR) for dir in $(SUBDIRS); do \ (cd $$dir && $(MAKE) install) || exit $$?; \ done #################### Cleanup #################### CLEAN_SUBDIRS = $(wildcard rt-*) DISTCLEAN_FILES = $(wildcard rt-*) mk/build.gmk DEVCLEAN_FILES = include @DIDEROT_MKDIR@/clean-rules.gmk