build-sys: add small redirecting Makefiles
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 6 Mar 2014 04:51:33 +0000 (01:51 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 6 Mar 2014 04:59:58 +0000 (01:59 -0300)
These redirecting makefiles simplifies compiling from some editors and
when CWD is not the root of the source tree. This is similar to what was
introduced in systemd in 340d89e ("build-sys: add small redirecting
Makefiles to simplify compilation from within emacs")

.gitignore
libkmod/Makefile [new file with mode: 0644]
libkmod/docs/.gitignore
man/.gitignore
testsuite/Makefile [new file with mode: 0644]
tools/Makefile [new file with mode: 0644]

index 5bfab9a..88c8149 100644 (file)
@@ -3,8 +3,8 @@
 /*.md5sum
 .deps/
 .libs/
-Makefile
-Makefile.in
+/Makefile
+/Makefile.in
 
 /aclocal.m4
 /autom4te.cache/
diff --git a/libkmod/Makefile b/libkmod/Makefile
new file mode 100644 (file)
index 0000000..223bec2
--- /dev/null
@@ -0,0 +1,13 @@
+#  Copyright 2010 Lennart Poettering
+#
+# This file has been copied from systemd. It is a dirty trick to simplify
+# compilation when CWD is not the root of the source tree. This file is not
+# intended to be distributed.  So, don't touch it, even better ignore it!
+
+all:
+       $(MAKE) -C ..
+
+clean:
+       $(MAKE) -C .. clean
+
+.PHONY: all clean
index 21e2279..7514b08 100644 (file)
@@ -10,3 +10,5 @@ version.xml
 xml
 html
 gtk-doc.make
+Makefile
+Makefile.in
index bc0cce8..a229b2f 100644 (file)
@@ -1,2 +1,4 @@
 *.5
 *.8
+Makefile
+Makefile.in
diff --git a/testsuite/Makefile b/testsuite/Makefile
new file mode 100644 (file)
index 0000000..38ba552
--- /dev/null
@@ -0,0 +1,15 @@
+#  Copyright 2010 Lennart Poettering
+#
+# This file has been copied from systemd. It is a dirty trick to simplify
+# compilation when CWD is not the root of the source tree. This file is not
+# intended to be distributed.  So, don't touch it, even better ignore it!
+
+all:
+       $(MAKE) -C .. check
+check:
+       $(MAKE) -C .. check
+
+clean:
+       $(MAKE) -C .. clean
+
+.PHONY: all clean check
diff --git a/tools/Makefile b/tools/Makefile
new file mode 100644 (file)
index 0000000..223bec2
--- /dev/null
@@ -0,0 +1,13 @@
+#  Copyright 2010 Lennart Poettering
+#
+# This file has been copied from systemd. It is a dirty trick to simplify
+# compilation when CWD is not the root of the source tree. This file is not
+# intended to be distributed.  So, don't touch it, even better ignore it!
+
+all:
+       $(MAKE) -C ..
+
+clean:
+       $(MAKE) -C .. clean
+
+.PHONY: all clean