0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-10-21 19:54:04 -04:00

Implicit recursiveness and clean rule

All objects defining $(OBJS) will get them and *.a deleted during
make clean.

The all, clean and install rules now implicitly imply their -recursive
counterparts - those will just do nothing in case of $(SUBDIRS) not
defined, so that's ok.
This commit is contained in:
Petr Baudis
2005-09-15 23:28:56 +02:00
parent 6aea3df7ac
commit 833770a5f7
10 changed files with 20 additions and 27 deletions

View File

@@ -58,6 +58,11 @@ endif
%.a:
$(call cmd,archive)
ifdef $(OBJS)
clean:
rm -f $(OBJS) *.a
endif
# Recursion:
@@ -68,5 +73,9 @@ all-recursive install-recursive clean-recursive:
$(call ncmd,recmake) || exit 1; \
done
all: all-recursive
install: install-recursive
clean: clean-recursive
# vim:syntax=make