changeset 32:315459a24bf4

fixed LOG and OBJ_DIR
author thomask
date Wed, 13 Oct 2004 07:16:24 +0000
parents 176f34f08034
children 3f81e192da0e
files Makefile
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun Oct 10 09:26:25 2004 +0000
+++ b/Makefile	Wed Oct 13 07:16:24 2004 +0000
@@ -1,7 +1,12 @@
 # GnuMakefile for dstress
 
+ifndef OBJ_DIR
 OBJ_DIR = obj
+endif
+
+ifndef LOG
 LOG	= log.txt
+endif
 
 ifndef DMD
 DMD	= dmd
@@ -48,6 +53,7 @@
 %.$(ext_nocompile) : %.$(ext_source_html)
 	@if $(DMD) $(DFLAGS) -c -of$@ $< $(to_log); then $(ECHO) "XPASS: $(subst .$(ext_nocompile),,$@)"; $(RM) $@; else $(ECHO) "FAIL:  $(subst .$(ext_nocompile),,$@)"; $(TOUCH) $@; fi
 
+
 compile : $(sort $(subst .$(ext_source),.$(ext_compile),$(shell $(FIND) compile -regex ".*\\.$(ext_source)" ) ) $(subst .$(ext_source_html),.$(ext_compile),$(shell $(FIND) compile -regex ".*\\.$(ext_source_html)" ) ) )
 
 %.$(ext_compile) : %.$(ext_source)
@@ -74,13 +80,16 @@
 %.$(ext_norun) : %.$(ext_source_html)
 	@if $(DMD) $(DFLAGS) -od$(OBJ_DIR) -of$@ $< $(to_log); then if $@ $(to_log); then $(ECHO) "XPASS:  $(subst .$(ext_norun),,$@)"; $(RM) $@; else $(ECHO) "FAIL: $(subst .$(ext_norun),,$@)"; fi else $(ECHO) "XFAIL: $(subst .$(ext_run),,$@) (compiling error)"; $(RM) $@; fi
 
+
+
 log : distclean all
 	
+
 distclean : clean_log clean
+	
 
 clean_log :
 	$(RM) $(LOG)
 
 clean :
 	$(RM) $(OBJ_DIR)/?*.o run/?*.$(ext_run) norun/?*.$(ext_norun) compile/?*.$(ext_compile) nocompile/?*.$(ext_nocompile)
-