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")
This commit is contained in:
Lucas De Marchi 2014-03-06 01:51:33 -03:00
parent 49776627e6
commit 06eb29e117
6 changed files with 47 additions and 2 deletions

4
.gitignore vendored
View File

@ -3,8 +3,8 @@
/*.md5sum
.deps/
.libs/
Makefile
Makefile.in
/Makefile
/Makefile.in
/aclocal.m4
/autom4te.cache/

13
libkmod/Makefile Normal file
View File

@ -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

View File

@ -10,3 +10,5 @@ version.xml
xml
html
gtk-doc.make
Makefile
Makefile.in

2
man/.gitignore vendored
View File

@ -1,2 +1,4 @@
*.5
*.8
Makefile
Makefile.in

15
testsuite/Makefile Normal file
View File

@ -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

13
tools/Makefile Normal file
View File

@ -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