From: Lucas De Marchi Date: Thu, 6 Mar 2014 04:51:33 +0000 (-0300) Subject: build-sys: add small redirecting Makefiles X-Git-Tag: v17~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06eb29e1171e5def51554adf559b78597e559bbe;p=thirdparty%2Fkmod.git build-sys: add small redirecting Makefiles 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") --- diff --git a/.gitignore b/.gitignore index 5bfab9a1..88c81497 100644 --- a/.gitignore +++ b/.gitignore @@ -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 index 00000000..223bec2a --- /dev/null +++ b/libkmod/Makefile @@ -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 diff --git a/libkmod/docs/.gitignore b/libkmod/docs/.gitignore index 21e2279e..7514b08b 100644 --- a/libkmod/docs/.gitignore +++ b/libkmod/docs/.gitignore @@ -10,3 +10,5 @@ version.xml xml html gtk-doc.make +Makefile +Makefile.in diff --git a/man/.gitignore b/man/.gitignore index bc0cce86..a229b2f7 100644 --- a/man/.gitignore +++ b/man/.gitignore @@ -1,2 +1,4 @@ *.5 *.8 +Makefile +Makefile.in diff --git a/testsuite/Makefile b/testsuite/Makefile new file mode 100644 index 00000000..38ba552e --- /dev/null +++ b/testsuite/Makefile @@ -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 index 00000000..223bec2a --- /dev/null +++ b/tools/Makefile @@ -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