changed phony make targets for projects to be suffixies of 'all'
[physics.git] / rules.mk
index b2e3ed1..ff1f46c 100644 (file)
--- a/rules.mk
+++ b/rules.mk
@@ -1,19 +1,19 @@
 
 # HACK
-.PHONY: physics objs-physics deps-physics
-physics: ${TARGET_$P} ${CFGS_$P} ${LIBSTXT_$P} ${LIBSCPY_$P} ${TXT_$P}
+.PHONY: all-physics objs-physics deps-physics
+all-physics: ${TARGET_$P} ${CFGS_$P} ${LIBSTXT_$P} ${LIBSCPY_$P} ${TXT_$P}
 objs-physics: ${L_OBJS_$P}
 deps-physics: ${L_DEPS_$P}
 
 # HACK
-all: physics
+all: all-physics
 
 
-${TARGETTMP_$D}: ${BINDIR_$P}${SONAME_${G_LIB}}
+${TARGETTMP_$D}: ${BINDIR_$P}${LIBSDIRNAME_$P}${SONAME_${G_LIB}}
 
 
-# how to copy a library to the tests bin directory
-${BINDIR_$P}${SONAME_${G_LIB}}: ${TARGET_${G_LIB}} | $${@D}
+# rule to copy library lib into the working directory
+${BINDIR_$P}${LIBSDIRNAME_$P}${SONAME_${G_LIB}}: ${TARGET_${G_LIB}} | $${@D}
        ${cmd-cp}
 
 # how to link the main target