1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-25 01:05:37 +00: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
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: