Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/vis12/Makefile.in
ViewVC logotype

View of /branches/vis12/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3077 - (download) (annotate)
Mon Mar 16 19:02:30 2015 UTC (4 years, 7 months ago) by jhr
File size: 2635 byte(s)
  add configure support for rtest2
# Makefile for diderot system
#
# COPYRIGHT (c) 2014 The Diderot Project (http://diderot-language.cs.uchicago.edu)
# All rights reserved.
#

SHELL =		@SHELL@
@SET_MAKE@

INSTALL =	@INSTALL@

BUILD_DIRS =	src/compiler \
		src/lib/build

INSTALL_DIR =	@prefix@

# add OpenCL specific targets
#
ifeq (@CL_ENABLED@,true)
BUILD_DIRS +=	src/clinfo
endif

.PHONY:		help build local-install install \
		clean local-distclean local-devclean

help:
	@echo "This Makefile supports the following targets:"
	@echo "  help          -- print this message."
	@echo "  build         -- build Diderot tools and libraries"
	@echo "  local-install -- install Diderot tools, libraries, and headers in "
	@echo "                   @DIDEROT_ROOT@/{bin,lib,include}"
	@echo "  install       -- install Diderot tools, libraries, and headers in "
	@echo "                   @INSTALL_ROOT@/{bin,lib,include}"
	@echo "  clean         -- remove intermediate files generated during building"
	@echo "  distclean     -- remove files generated during configuration"
	@echo "                   and building; the resulting tree has the same"
	@echo "                   files as the distribution."
	@echo "The following additional targets are primarily for developers:"
	@echo "  devclean      -- remove everything that is not part of the SVN"
	@echo "                   repository."

local-install:
	for dir in $(BUILD_DIRS); do \
	  (cd $$dir && $(MAKE) local-install) || exit $$?; \
	done
	mkdir -p include/Diderot
	(cd src/include/Diderot/; cp -p *.h ../../../include/Diderot) || exit $$?

install:
	mkdir -p $(INSTALL_DIR)
	for dir in $(BUILD_DIRS); do \
	  (cd $$dir && $(MAKE) install) || exit $$?; \
	done
	mkdir -p $(INSTALL_DIR)/include/Diderot
	(cd src/include/Diderot/; cp -p *.h $(INSTALL_DIR)/include/Diderot) || exit $$?

build:
	for dir in $(BUILD_DIRS); do \
	  (cd $$dir && $(MAKE) build) || exit $$?; \
	done

doc:
	(cd doc; $(MAKE))

#################### Cleanup ####################

CLEAN_SUBDIRS =		$(BUILD_DIRS) test/MIP test/probe doc

CLEAN_FILES =		rtest/tests/*/out.nrrd

DISTCLEAN_FILES +=	Makefile config.status config.log \
			autom4te*.cache \
			bin \
			lib \
			include \
                        rtest/scripts/run.sh \
                        rtest/scripts/run-one.sh \
			rtest/log.* \
			rtest/report.* \
                        rtest2/scripts/run.sh \
                        rtest2/scripts/run-one.sh \
			rtest2/log.* \
			rtest2/report.* \
			src/include/Diderot/config.h \
                        src/compiler/gen/file2str/file2str.sh

DEVCLEAN_FILES =	configure \
			config/config_h.in

include @DIDEROT_MKDIR@/clean-rules.gmk

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0