From 98ce75f7bfb69618c7a9c5043c193d9d8677a53e Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sun, 2 Oct 2005 23:55:37 +0200 Subject: [PATCH] Introduce *-default family Use it to put stuff which are automatically done, so that *-local now is truely local. --- Makefile.lib | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Makefile.lib b/Makefile.lib index 5b1ce190a..35c6ae3a2 100644 --- a/Makefile.lib +++ b/Makefile.lib @@ -85,18 +85,21 @@ OBJS += $(subobjs) endif ifdef OBJS -CLEAN += $(OBJS) - -clean-local: - $(RM) lib.o $(CLEAN) - lib.o: $(sort $(OBJS)) $(call cmd,ld_objs) -all-local: lib.o +LIB_O = lib.o +CLEAN += $(OBJS) $(LIB_O) endif -install-local: +CLEAN += $(PROG) + +all-default: $(LIB_O) $(PROGS) $(MAN1) $(MAN5) + +clean-default: + -test -z "$(CLEAN)" || $(RM) $(CLEAN) + +install-default: all-default ifdef PROGS $(MKINSTALLDIRS) $(DESTDIR)$(bindir) @for file in $(PROGS); do \ @@ -127,9 +130,9 @@ ifdef SUBDIRS done endif -all: all-recursive all-local -install: install-recursive install-local -clean: clean-recursive clean-local +all: all-recursive all-default all-local +install: install-recursive install-default install-local +clean: clean-recursive clean-default clean-local all-local: install-local: