diff Makefile @ 6:e238a15dbc74

1) added added html-sourcefile support 2) added html_entity, html_tag_case, empt, html_empty and html_defect tests
author thomask
date Mon, 04 Oct 2004 13:59:18 +0000
parents 3269e4627918
children b1c36563cbed
line wrap: on
line diff
--- a/Makefile	Sun Sep 26 21:41:08 2004 +0000
+++ b/Makefile	Mon Oct 04 13:59:18 2004 +0000
@@ -1,4 +1,4 @@
-# $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/Makefile,v 1.8 2004/09/23 09:29:40 th Exp $
+# GnuMakefile for dstress
 
 OBJ_DIR = obj
 LOG	= log.txt
@@ -29,17 +29,30 @@
 TOUCH	= touch
 endif
 
+ifndef MAKE
+MAKE 	= make
+endif
+
 to_log = >> $(LOG) 2>&1
 ext_run = exe
 ext_norun = bin
 ext_nocompile = no
 ext_compile = o
 ext_source = d
+ext_source_html = html
 
 dest_run = $(sort $(subst .$(ext_source),.$(ext_run),$(shell $(FIND) run -regex ".*\\.$(ext_source)" ) ) )
+dest_run += $(sort $(subst .$(ext_source_html),.$(ext_run),$(shell $(FIND) run -regex ".*\\.$(ext_source_html)" ) ) )
+
 dest_norun = $(sort $(subst .$(ext_source),.$(ext_norun),$(shell $(FIND) norun -regex ".*\\.$(ext_source)" ) ) )
+dest_norun += $(sort $(subst .$(ext_source_html),.$(ext_norun),$(shell $(FIND) norun -regex ".*\\.$(ext_source_html)" ) ) )
+
 dest_compile = $(sort $(subst .$(ext_source),.$(ext_compile),$(shell $(FIND) compile -regex ".*\\.$(ext_source)" ) ) )
+dest_compile += $(sort $(subst .$(ext_source_html),.$(ext_compile),$(shell $(FIND) compile -regex ".*\\.$(ext_source_html)" ) ) )
+
+
 dest_nocompile = $(sort $(subst .$(ext_source),.$(ext_nocompile),$(shell $(FIND) nocompile -regex ".*\\.$(ext_source)" ) ) )
+dest_nocompile += $(sort $(subst .$(ext_source_html),.$(ext_nocompile),$(shell $(FIND) nocompile -regex ".*\\.$(ext_source_html)" ) ) )
 
 all : compile nocompile run norun 
 
@@ -48,21 +61,36 @@
 %.$(ext_nocompile) : %.$(ext_source)
 	@if $(DMD) $(DFLAGS) -of$@ $< $(to_log); then $(ECHO) "XPASS: $(subst .$(ext_nocompile),,$@)"; $(RM) $@; else $(ECHO) "FAIL:  $(subst .$(ext_nocompile),,$@)"; $(TOUCH) $@; fi
 
+%.$(ext_nocompile) : %.$(ext_source_html)
+	        @if $(DMD) $(DFLAGS) -of$@ $< $(to_log); then $(ECHO) "XPASS: $(subst .$(ext_nocompile),,$@)"; $(RM) $@; else $(ECHO) "FAIL:  $(subst .$(ext_nocompile),,$@)"; $(TOUCH) $@; fi
+
+
 compile : $(dest_compile)
 
 %.$(ext_compile) : %.$(ext_source)
 	@if $(DMD) -c -of$@ $< $(to_log) ; then $(ECHO) "PASS:  $(subst .$(ext_compile),,$@)"; $(TOUCH) $@; else $(ECHO) "XFAIL: $(subst .$(ext_compile),,$@)"; $(RM) $@; fi
 
+%.$(ext_compile) : %.$(ext_source_html)
+	        @if $(DMD) -c -of$@ $< $(to_log) ; then $(ECHO) "PASS:  $(subst .$(ext_compile),,$@)"; $(TOUCH) $@; else $(ECHO) "XFAIL: $(subst .$(ext_compile),,$@)"; $(RM) $@; fi
+
+
 run : $(dest_run)
 
 %.$(ext_run) : %.$(ext_source)
 	@if $(DMD) $(DFLAGS) -of$@ $< $(to_log); then if $@ $(to_log); then $(ECHO) "PASS:  $(subst .$(ext_run),,$@)"; else $(ECHO) "XFAIL: $(subst .$(ext_run),,$@)"; $(RM) $@; fi else $(ECHO) "XFAIL: $(subst .$(ext_run),,$@) (compiling error)"; fi
 
+%.$(ext_run) : %.$(ext_source_html)
+	        @if $(DMD) $(DFLAGS) -of$@ $< $(to_log); then if $@ $(to_log); then $(ECHO) "PASS:  $(subst .$(ext_run),,$@)"; else $(ECHO) "XFAIL: $(subst .$(ext_run),,$@)"; $(RM) $@; fi else $(ECHO) "XFAIL: $(subst .$(ext_run),,$@) (compiling error)"; fi
+
 norun : $(dest_norun)
 
 %.$(ext_norun) : %.$(ext_source)
 	@if $(DMD) $(DFLAGS) -of$@ $< $(to_log); then if $@ $(to_log); then $(ECHO) "XPASS:  $(subst .$(ext_norun),,$@)"; else $(ECHO) "FAIL: $(subst .$(ext_norun),,$@)"; $(RM) $@; fi else $(ECHO) "XFAIL: $(subst .$(ext_run),,$@) (compiling error)"; fi
 
+%.$(ext_norun) : %.$(ext_source_html)
+	        @if $(DMD) $(DFLAGS) -of$@ $< $(to_log); then if $@ $(to_log); then $(ECHO) "XPASS:  $(subst .$(ext_norun),,$@)"; else $(ECHO) "FAIL: $(subst .$(ext_norun),,$@)"; $(RM) $@; fi else $(ECHO) "XFAIL: $(subst .$(ext_run),,$@) (compiling error)"; fi
+
+
 clean_log :
 	$(RM) $(LOG)