diff options
author | Steven Barth <steven@midlink.org> | 2008-04-11 19:16:16 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-04-11 19:16:16 +0000 |
commit | 120717c6ec1bd64dbf5606fe1edcc207aebcc560 (patch) | |
tree | ae1dc987ae2840bfd5a195689abbb6e99c90f7b6 /module | |
parent | c3755056f8e4871f96a21a17b20c5a391b7c3b30 (diff) |
* Fixing Makefiles
Diffstat (limited to 'module')
-rw-r--r-- | module/admin-core/Makefile | 14 | ||||
-rw-r--r-- | module/public-core/Makefile | 13 |
2 files changed, 12 insertions, 15 deletions
diff --git a/module/admin-core/Makefile b/module/admin-core/Makefile index 9b57451399..84c2277ddb 100644 --- a/module/admin-core/Makefile +++ b/module/admin-core/Makefile @@ -16,20 +16,18 @@ CPFILES = $(FILES:%=src/%) all: compile - depends: mkdir -p $(OUTDIRS) - for i in $(CPFILES); do [ -f "$$i" ] && (i=$$(echo $$i | cut -d/ -f2-); \ - mkdir -p dist/$$(dirname $$i); cp src/$$i dist/$$i); done + for i in $(CPFILES); do if [ -f "$i" ]; then i=$$(echo $$i | cut -d/ -f2-); \ + mkdir -p dist/$$(dirname $$i); cp src/$$i dist/$$i; fi; done compile: depends - for i in $(INFILES); do [ -f "$$i" ] && (i=$$(echo $$i | cut -d/ -f2-); \ - mkdir -p dist/$$(dirname $$i); $(LUAC) $(LUAC_OPTIONS) -o dist/$$i src/$$i); done + for i in $(INFILES); do if [ -f "$i" ]; then i=$$(echo $$i | cut -d/ -f2-); \ + mkdir -p dist/$$(dirname $$i); $(LUAC) $(LUAC_OPTIONS) -o dist/$$i src/$$i; fi; done - source: depends - for i in $(INFILES); do [ -f "$$i" ] && (i=$$(echo $$i | cut -d/ -f2-); \ - mkdir -p dist/$$(dirname $$i); cp src/$$i dist/$$i); done + for i in $(INFILES); do if [ -f "$i" ]; then i=$$(echo $$i | cut -d/ -f2-); \ + mkdir -p dist/$$(dirname $$i); cp src/$$i dist/$$i; fi; done clean: diff --git a/module/public-core/Makefile b/module/public-core/Makefile index 9b57451399..a4ac9fc0e5 100644 --- a/module/public-core/Makefile +++ b/module/public-core/Makefile @@ -19,17 +19,16 @@ all: compile depends: mkdir -p $(OUTDIRS) - for i in $(CPFILES); do [ -f "$$i" ] && (i=$$(echo $$i | cut -d/ -f2-); \ - mkdir -p dist/$$(dirname $$i); cp src/$$i dist/$$i); done + for i in $(CPFILES); do if [ -f "$i" ]; then i=$$(echo $$i | cut -d/ -f2-); \ + mkdir -p dist/$$(dirname $$i); cp src/$$i dist/$$i; fi; done compile: depends - for i in $(INFILES); do [ -f "$$i" ] && (i=$$(echo $$i | cut -d/ -f2-); \ - mkdir -p dist/$$(dirname $$i); $(LUAC) $(LUAC_OPTIONS) -o dist/$$i src/$$i); done + for i in $(INFILES); do if [ -f "$i" ]; then i=$$(echo $$i | cut -d/ -f2-); \ + mkdir -p dist/$$(dirname $$i); $(LUAC) $(LUAC_OPTIONS) -o dist/$$i src/$$i; fi; done - source: depends - for i in $(INFILES); do [ -f "$$i" ] && (i=$$(echo $$i | cut -d/ -f2-); \ - mkdir -p dist/$$(dirname $$i); cp src/$$i dist/$$i); done + for i in $(INFILES); do if [ -f "$i" ]; then i=$$(echo $$i | cut -d/ -f2-); \ + mkdir -p dist/$$(dirname $$i); cp src/$$i dist/$$i; fi; done clean: |