OSDN Git Service

update OMakefile/gitignore for habc-link
authormzp <mzpppp@gmail.com>
Sun, 11 Oct 2009 05:48:16 +0000 (14:48 +0900)
committermzp <mzpppp@gmail.com>
Sun, 11 Oct 2009 05:48:16 +0000 (14:48 +0900)
.gitignore
OMakefile

index 47240dd..8b8557b 100644 (file)
@@ -11,6 +11,7 @@
 # target
 habc-scm
 habc-xml
+habc-link
 habc
 *-runner
 
index 0da8096..bc93365 100644 (file)
--- a/OMakefile
+++ b/OMakefile
@@ -242,16 +242,17 @@ OCAMLINCLUDES += $(ROOT)
 # ------------------------------
 # all
 # ------------------------------
-habc-scm$(EXE): scm/habc-scm$(EXE)
-       ln-or-cp $^ .
 
-habc-xml$(EXE): xml/habc-xml$(EXE)
-       ln-or-cp $^ .
+public.CopyFrom(paths) =
+       foreach(path,$(paths))
+               protected.PROG = $(basename $(path))
+               $(PROG) : $(path)
+                       ln-or-cp $(file $(path)) $(PROG)
+               export
 
-habc$(EXE) : driver/habc$(EXE)
-       ln-or-cp $^ .
+CopyFrom(scm/habc-scm$(EXE) xml/habc-xml$(EXE) driver/habc$(EXE) link/habc-link$(EXE))
 
-PROGRAM = habc$(EXE) habc-xml$(EXE) habc-scm$(EXE)
+PROGRAM = habc$(EXE) habc-xml$(EXE) habc-scm$(EXE) link/habc-link$(EXE)
 
 all: config $(PROGRAM) lib