1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04: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:
Laurent MONIN 2005-10-17 15:39:40 +02:00 committed by Laurent MONIN
parent e31a66745a
commit 083bce589c

View File

@ -102,21 +102,18 @@ clean-default:
install-default: all-default install-default: all-default
ifdef PROGS ifdef PROGS
$(MKINSTALLDIRS) $(DESTDIR)$(bindir) $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
@for file in $(PROGS); do \ $(foreach file,$(PROGS), \
$(call ncmd,installprog,$$file,$(DESTDIR)$(bindir)); \ $(call ncmd,installprog,$(file),$(DESTDIR)$(bindir));)
done
endif endif
ifdef MAN1 ifdef MAN1
$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man1 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man1
@for file in $(MAN1); do \ $(foreach file,$(MAN1), \
$(call ncmd,installdata,$$file,$(DESTDIR)$(mandir)/man1); \ $(call ncmd,installdata,$(file),$(DESTDIR)$(mandir)/man1);)
done
endif endif
ifdef MAN5 ifdef MAN5
$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man5 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man5
@for file in $(MAN5); do \ $(foreach file,$(MAN5), \
$(call ncmd,installdata,$$file,$(DESTDIR)$(mandir)/man5); \ $(call ncmd,installdata,$(file),$(DESTDIR)$(mandir)/man5);)
done
endif endif
# Recursion: # Recursion: