commit | 1d0df6996457273367e6d9d9d08bf6adb0fc9b65 | [log] [tgz] |
---|---|---|
author | Travis Geiselbrecht <geist@foobox.com> | Mon Sep 01 02:26:09 2008 -0700 |
committer | Travis Geiselbrecht <geist@foobox.com> | Mon Sep 01 02:26:09 2008 -0700 |
tree | 3ca2fd9b6167efde245cacdf522e35f56e3cb176 |
initial commit of lk (little kernel) project
diff --git a/macros.mk b/macros.mk new file mode 100644 index 0000000..13c1d9b --- /dev/null +++ b/macros.mk
@@ -0,0 +1,5 @@ +# Find the local dir of the make file +GET_LOCAL_DIR = $(patsubst %/,%,$(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))) + +# makes sure the target dir exists +MKDIR = if [ ! -d $(dir $@) ]; then mkdir -p $(dir $@); fi