mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Introduce *-default family
Use it to put stuff which are automatically done, so that *-local now is truely local.
This commit is contained in:
parent
123b71ab49
commit
98ce75f7bf
23
Makefile.lib
23
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:
|
||||
|
Loading…
Reference in New Issue
Block a user