Corrected patch loop in Makefile
This commit is contained in:
5
Makefile
5
Makefile
@@ -13,7 +13,7 @@ ARCH = x86_64
|
||||
URL = http://ex-vi.sourceforge.net/
|
||||
BRIEF = Text editor
|
||||
DESC = The vi editor is one of the most common text editors on Unix.
|
||||
SNAPVER = 2
|
||||
SNAPVER = 3
|
||||
|
||||
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
||||
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
||||
@@ -39,7 +39,8 @@ $(SRCDIR)/Makefile: $(ARCHIVE)
|
||||
@touch $(SRCDIR)/Makefile
|
||||
|
||||
$(SRCDIR)/ex: $(SRCDIR)/Makefile
|
||||
@cd $(SRCDIR) && for patch in `find $(PATCHDIR) -name \*.patch`; do \
|
||||
@cd $(SRCDIR) && \
|
||||
for patch in `find $(PATCHDIR) -name \*.patch|sort`; do \
|
||||
patch --verbose -Np1 -i $$patch; \
|
||||
done
|
||||
@cd $(SRCDIR) && make
|
||||
|
||||
Reference in New Issue
Block a user