]> git.llucax.com Git - software/makeit.git/blobdiff - Build.mak
Make call to include_subdirs easier to read
[software/makeit.git] / Build.mak
index 45a47409d3cbd76cff4fc349514021af99b5c10b..e167580eed160485a9d4e43ba01fdda71ab3a5f4 100644 (file)
--- a/Build.mak
+++ b/Build.mak
@@ -1,16 +1,16 @@
 
-setup_include_dir__ := $(call symlink_include_dir,remake)
+# Create the include directory symbolic link
+setup_include_dir__ := $(call symlink_include_dir,makeit)
 
-# Include sub-directories makefiles
-
-C := subproj
-include $T/subproj/Build.mak
+# General rule to install headers of this project
+$I/include/makeit/%.h: $T/%.h
+       $(call install_file)
 
-C := lib1
-include $T/lib1/Build.mak
-
-C := lib2
-include $T/lib2/Build.mak
+# Include sub-directories makefiles
+$(call include_subdirs,
+       subproj
+       lib1
+       lib2
+       prog
+)
 
-C := prog
-include $T/prog/Build.mak