]> git.llucax.com Git - software/makeit.git/commitdiff
Move the example to its own subdirectory
authorLeandro Lucarella <llucarella@integratech.com.ar>
Fri, 29 Oct 2010 18:17:09 +0000 (15:17 -0300)
committerLeandro Lucarella <llucarella@integratech.com.ar>
Fri, 29 Oct 2010 18:17:09 +0000 (15:17 -0300)
30 files changed:
.gitignore
Makefile
example/Build.mak [moved from Build.mak with 80% similarity]
example/Config.mak [moved from Config.mak with 100% similarity]
example/Makefile [moved from subproj/Makefile with 100% similarity]
example/Makeit.mak [moved from subproj/Makeit.mak with 100% similarity]
example/README [moved from README with 100% similarity]
example/Toplevel.mak [new symlink]
example/lib1/Build.mak [moved from lib1/Build.mak with 100% similarity]
example/lib1/Makefile [moved from lib1/Makefile with 100% similarity]
example/lib1/lib1.c [moved from lib1/lib1.c with 100% similarity]
example/lib1/lib1.h [moved from lib1/lib1.h with 100% similarity]
example/lib2/Build.mak [moved from lib2/Build.mak with 100% similarity]
example/lib2/Makefile [moved from lib2/Makefile with 100% similarity]
example/lib2/lib2.cpp [moved from lib2/lib2.cpp with 100% similarity]
example/lib2/lib2.h [moved from lib2/lib2.h with 100% similarity]
example/prog/Build.mak [moved from prog/Build.mak with 100% similarity]
example/prog/Makefile [moved from prog/Makefile with 100% similarity]
example/prog/main.cpp [moved from prog/main.cpp with 100% similarity]
example/subproj/Build.mak [moved from subproj/Build.mak with 100% similarity]
example/subproj/Config.mak [moved from subproj/Config.mak with 100% similarity]
example/subproj/Doxyfile [moved from subproj/Doxyfile with 100% similarity]
example/subproj/Makefile [new file with mode: 0644]
example/subproj/Makeit.mak [new symlink]
example/subproj/Toplevel.mak [new symlink]
example/subproj/otherproj.c [moved from subproj/otherproj.c with 100% similarity]
example/subproj/otherproj.h [moved from subproj/otherproj.h with 100% similarity]
example/subproj/pkg-config/Build.mak [moved from subproj/pkg-config/Build.mak with 100% similarity]
example/subproj/pkg-config/otherproj.pc.in [moved from subproj/pkg-config/otherproj.pc.in with 100% similarity]
subproj/Toplevel.mak [deleted file]

index 567609b1234a9b8806c5a05da6c866e480aa148d..614dbcfd865c76cc68c3a2acef9cf6f40815c39a 100644 (file)
@@ -1 +1 @@
-build/
+example/build/
index f78a4f000b262aaffb9902768c5969ec4f29b9a8..f16419cb7747c56901d8b4947f323c55fe0fe1fc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,9 @@
 
-# Top-level directory
-T := .
+.PHONY: example
+example:
+       @$(MAKE) -C example
 
-# Default goal for building this directory
-.DEFAULT_GOAL := all
-
-# Include the top-level makefile
-include $T/Toplevel.mak
+.PHONY: clean-example
+clean-example:
+       @$(MAKE) -C example clean
 
similarity index 80%
rename from Build.mak
rename to example/Build.mak
index e167580eed160485a9d4e43ba01fdda71ab3a5f4..c40fd01767a5e16465b2ebe45c0366aa2434914b 100644 (file)
--- a/Build.mak
@@ -7,10 +7,10 @@ $I/include/makeit/%.h: $T/%.h
        $(call install_file)
 
 # Include sub-directories makefiles
-$(call include_subdirs,
-       subproj
-       lib1
-       lib2
-       prog
+$(call include_subdirs, \
+       subproj \
+       lib1 \
+       lib2 \
+       prog \
 )
 
similarity index 100%
rename from Config.mak
rename to example/Config.mak
similarity index 100%
rename from subproj/Makefile
rename to example/Makefile
similarity index 100%
rename from subproj/Makeit.mak
rename to example/Makeit.mak
similarity index 100%
rename from README
rename to example/README
diff --git a/example/Toplevel.mak b/example/Toplevel.mak
new file mode 120000 (symlink)
index 0000000..5c1ec8f
--- /dev/null
@@ -0,0 +1 @@
+../Toplevel.mak
\ No newline at end of file
similarity index 100%
rename from lib1/Build.mak
rename to example/lib1/Build.mak
similarity index 100%
rename from lib1/Makefile
rename to example/lib1/Makefile
similarity index 100%
rename from lib1/lib1.c
rename to example/lib1/lib1.c
similarity index 100%
rename from lib1/lib1.h
rename to example/lib1/lib1.h
similarity index 100%
rename from lib2/Build.mak
rename to example/lib2/Build.mak
similarity index 100%
rename from lib2/Makefile
rename to example/lib2/Makefile
similarity index 100%
rename from lib2/lib2.cpp
rename to example/lib2/lib2.cpp
similarity index 100%
rename from lib2/lib2.h
rename to example/lib2/lib2.h
similarity index 100%
rename from prog/Build.mak
rename to example/prog/Build.mak
similarity index 100%
rename from prog/Makefile
rename to example/prog/Makefile
similarity index 100%
rename from prog/main.cpp
rename to example/prog/main.cpp
similarity index 100%
rename from subproj/Build.mak
rename to example/subproj/Build.mak
similarity index 100%
rename from subproj/Doxyfile
rename to example/subproj/Doxyfile
diff --git a/example/subproj/Makefile b/example/subproj/Makefile
new file mode 100644 (file)
index 0000000..f78a4f0
--- /dev/null
@@ -0,0 +1,10 @@
+
+# Top-level directory
+T := .
+
+# Default goal for building this directory
+.DEFAULT_GOAL := all
+
+# Include the top-level makefile
+include $T/Toplevel.mak
+
diff --git a/example/subproj/Makeit.mak b/example/subproj/Makeit.mak
new file mode 120000 (symlink)
index 0000000..901b31e
--- /dev/null
@@ -0,0 +1 @@
+../Makeit.mak
\ No newline at end of file
diff --git a/example/subproj/Toplevel.mak b/example/subproj/Toplevel.mak
new file mode 120000 (symlink)
index 0000000..5c1ec8f
--- /dev/null
@@ -0,0 +1 @@
+../Toplevel.mak
\ No newline at end of file
diff --git a/subproj/Toplevel.mak b/subproj/Toplevel.mak
deleted file mode 100644 (file)
index 8cffea4..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-ifndef Toplevel.mak.included
-Toplevel.mak.included := 1
-
-# Load top-level directory local configuration
-sinclude $T/Config.mak
-
-# Include the build system library
-include $T/Makeit.mak
-
-# Include the Build.mak for this directory
-include $T/Build.mak
-
-endif