mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
Makefiles: Use .DEFAULT to support arbitrary targets from sub directories.
Taking advantage of the .DEFAULT construct means that we won't need to explicitly list targets such as "clean", etc. in each sub-Makefile.
This commit is contained in:
parent
3f32fd8a1c
commit
341d49b061
2 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
all:
|
all:
|
||||||
$(MAKE) -C .. all
|
$(MAKE) -C .. all
|
||||||
|
|
||||||
clean:
|
.DEFAULT:
|
||||||
$(MAKE) -C .. clean
|
$(MAKE) -C .. $@
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
|
# See Makfefile.local for the list of files to be compiled in this
|
||||||
|
# directory.
|
||||||
all:
|
all:
|
||||||
$(MAKE) -C .. all
|
$(MAKE) -C .. all
|
||||||
|
|
||||||
clean:
|
.DEFAULT:
|
||||||
$(MAKE) -C .. clean
|
$(MAKE) -C .. $@
|
||||||
|
|
Loading…
Reference in a new issue