mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38: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:
|
||||
$(MAKE) -C .. all
|
||||
|
||||
clean:
|
||||
$(MAKE) -C .. clean
|
||||
.DEFAULT:
|
||||
$(MAKE) -C .. $@
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# See Makfefile.local for the list of files to be compiled in this
|
||||
# directory.
|
||||
all:
|
||||
$(MAKE) -C .. all
|
||||
|
||||
clean:
|
||||
$(MAKE) -C .. clean
|
||||
.DEFAULT:
|
||||
$(MAKE) -C .. $@
|
||||
|
|
Loading…
Reference in a new issue