renamed to dir.mk files
authorPatrik Gornicz <Gornicz.P@gmail.com>
Mon, 19 Jan 2009 00:59:04 +0000 (19:59 -0500)
committerPatrik Gornicz <Gornicz.P@gmail.com>
Mon, 19 Jan 2009 00:59:04 +0000 (19:59 -0500)
Makefile
src/Effects/dir.mk [moved from src/Effects/files.mk with 100% similarity]
src/Entities/dir.mk [moved from src/Entities/files.mk with 100% similarity]
src/GameStates/dir.mk [moved from src/GameStates/files.mk with 100% similarity]
src/config/dir.mk [moved from src/config/files.mk with 100% similarity]
src/dir.mk [moved from src/files.mk with 100% similarity]
src/graphics/dir.mk [moved from src/graphics/files.mk with 100% similarity]
src/input/dir.mk [moved from src/input/files.mk with 100% similarity]
src/locks/dir.mk [moved from src/locks/files.mk with 100% similarity]

index e1b2afd..85ac199 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -26,8 +26,8 @@ DIRS += locks/
 SRCSDIR := src/
 SRCS    := # := start
 
-# include all of the files.mk
-include $(addprefix ${SRCSDIR},$(addsuffix files.mk,${DIRS}))
+# include all of the dir.mk
+include $(addprefix ${SRCSDIR},$(addsuffix dir.mk,${DIRS}))
 
 WORKINGDIR  := bind/
 
@@ -56,6 +56,8 @@ OBJSBLDDIRS := $(addprefix ${OBJSDIR},${DIRS})
 BLDDIRS     := ${OBJSBLDDIRS} ${DEPSBLDDIRS} ${WORKINGDIR} ${DSTCFGDIR}
 
 
+PRNTFMT := printf "%-5s: %s\n"
+
 VERBOSE := 0
 
 ifeq (${VERBOSE},0)
@@ -70,8 +72,6 @@ else
     Q2 :=
 endif
 
-PRNTFMT := printf "%-5s: %s\n"
-
 .PHONY: all
 all: ${TARGET} ${CFGS}
 
@@ -115,16 +115,16 @@ tags: ${SRCS}
 
 .PHONY: clean
 clean:
-       ${Q1}${PRNTFMT} "CLEAN" "OBJS"
-       ${Q2}rm -f ${OBJS}
-       ${Q1}${PRNTFMT} "CLEAN" "TARGET"
+       ${Q1}${PRNTFMT} "rm" "${OBJSDIR}"
+       ${Q2}rm -rf ${OBJSDIR}
+       ${Q1}${PRNTFMT} "rm" "${TARGET} ${TARGETTMP}"
        ${Q2}rm -f ${TARGET}
 
 .PHONY: distclean
 distclean: clean
-       ${Q1}${PRNTFMT} "CLEAN" "DEPS"
-       ${Q2}rm -f ${DEPS}
-       ${Q1}${PRNTFMT} "CLEAN" "tags prof gmon.out"
+       ${Q1}${PRNTFMT} "rm" "${DEPSDIR}"
+       ${Q2}rm -rf ${DEPSDIR}
+       ${Q1}${PRNTFMT} "rm" "tags prof gmon.out"
        ${Q2}rm -f tags prof gmon.out
 
 .PHONY: gitclean
similarity index 100%
rename from src/Effects/files.mk
rename to src/Effects/dir.mk
similarity index 100%
rename from src/Entities/files.mk
rename to src/Entities/dir.mk
similarity index 100%
rename from src/config/files.mk
rename to src/config/dir.mk
similarity index 100%
rename from src/files.mk
rename to src/dir.mk
similarity index 100%
rename from src/graphics/files.mk
rename to src/graphics/dir.mk
similarity index 100%
rename from src/input/files.mk
rename to src/input/dir.mk
similarity index 100%
rename from src/locks/files.mk
rename to src/locks/dir.mk