mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
Use make's internal $(foreach) instead of 'for file in ...' loop
Should hopefully fix problems with older make versions (3.79.1, 3.80, and 3.81beta3) reported by zas. Re-committed.
This commit is contained in:
parent
e31a66745a
commit
083bce589c
15
Makefile.lib
15
Makefile.lib
@ -102,21 +102,18 @@ clean-default:
|
||||
install-default: all-default
|
||||
ifdef PROGS
|
||||
$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
|
||||
@for file in $(PROGS); do \
|
||||
$(call ncmd,installprog,$$file,$(DESTDIR)$(bindir)); \
|
||||
done
|
||||
$(foreach file,$(PROGS), \
|
||||
$(call ncmd,installprog,$(file),$(DESTDIR)$(bindir));)
|
||||
endif
|
||||
ifdef MAN1
|
||||
$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man1
|
||||
@for file in $(MAN1); do \
|
||||
$(call ncmd,installdata,$$file,$(DESTDIR)$(mandir)/man1); \
|
||||
done
|
||||
$(foreach file,$(MAN1), \
|
||||
$(call ncmd,installdata,$(file),$(DESTDIR)$(mandir)/man1);)
|
||||
endif
|
||||
ifdef MAN5
|
||||
$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man5
|
||||
@for file in $(MAN5); do \
|
||||
$(call ncmd,installdata,$$file,$(DESTDIR)$(mandir)/man5); \
|
||||
done
|
||||
$(foreach file,$(MAN5), \
|
||||
$(call ncmd,installdata,$(file),$(DESTDIR)$(mandir)/man5);)
|
||||
endif
|
||||
|
||||
# Recursion:
|
||||
|
Loading…
Reference in New Issue
Block a user