SCM Repository
[diderot] / benchmarks / mk / clean-rules.gmk |
View of /benchmarks/mk/clean-rules.gmk
Parent Directory
|
Revision Log
Revision 3349 -
(download)
(annotate)
Tue Oct 27 15:16:36 2015 UTC (6 years, 6 months ago) by jhr
File size: 1920 byte(s)
Tue Oct 27 15:16:36 2015 UTC (6 years, 6 months ago) by jhr
File size: 1920 byte(s)
making copyrights consistent for all code in the repository
# Common makerules for cleaning directory trees. # # This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu) # # COPYRIGHT (c) 2015 The University of Chicago # All rights reserved. # # This file defines standard rules for the clean, distclean, and devclean # targets. To use, define the following make variables: # # CLEAN_SUBDIRS -- subdirectories to recursively clean # CLEAN_FILES -- extra files to remove for clean target # The default is to remove CM subdirectories, # .o files, .so files, .a files, .dSYM directories # and the $(TARGET). # DISTCLEAN_FILES -- extra files to remove for distclean target # The default is to remove Makefile. # DEVCLEAN_FILES -- extra files to remove for devclean target # CLEAN_FILES += bmark-seq.c bmark-par.c bmark-cl.c bmark-cl.cl \ $(wildcard *.o) \ $(wildcard *.txt) \ $(wildcard *.nrrd) \ $(TARGETS) DISTCLEAN_FILES += Makefile .PHONY: sub-clean local-clean clean sub-clean: dirs="$(CLEAN_SUBDIRS)"; \ if test -n "$$dirs" ; then \ for dir in $$dirs ; do \ (cd $$dir && $(MAKE) clean) \ done \ fi local-clean: -rm -rf $(CLEAN_FILES) find . \( -name .cm -exec rm -rf {} \; -prune -print \) clean: sub-clean local-clean .PHONY: sub-distclean local-distclean distclean sub-distclean: dirs="$(CLEAN_SUBDIRS)"; \ if test -n "$$dirs" ; then \ for dir in $$dirs ; do \ (cd $$dir && $(MAKE) distclean) \ done \ fi local-distclean: local-clean -rm -rf $(DISTCLEAN_FILES) distclean: sub-distclean local-distclean .PHONY: sub-devclean local-devclean devclean sub-devclean: dirs="$(CLEAN_SUBDIRS)"; \ if test -n "$$dirs" ; then \ for dir in $$dirs ; do \ (cd $$dir && $(MAKE) devclean) \ done \ fi local-devclean: local-distclean -rm -rf $(DEVCLEAN_FILES) devclean: sub-devclean local-devclean
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |