Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b39f050299 | ||
|
|
a8fb6adac5 | ||
|
|
047f3ba4e5 | ||
|
|
4c04074e61 |
8
Makefile
8
Makefile
@@ -13,7 +13,7 @@ ARCH = x86_64
|
|||||||
URL = http://ex-vi.sourceforge.net/
|
URL = http://ex-vi.sourceforge.net/
|
||||||
BRIEF = Text editor
|
BRIEF = Text editor
|
||||||
DESC = The vi editor is one of the most common text editors on Unix.
|
DESC = The vi editor is one of the most common text editors on Unix.
|
||||||
SNAPVER = 2
|
SNAPVER = 6
|
||||||
|
|
||||||
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
||||||
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
||||||
@@ -39,7 +39,8 @@ $(SRCDIR)/Makefile: $(ARCHIVE)
|
|||||||
@touch $(SRCDIR)/Makefile
|
@touch $(SRCDIR)/Makefile
|
||||||
|
|
||||||
$(SRCDIR)/ex: $(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; \
|
patch --verbose -Np1 -i $$patch; \
|
||||||
done
|
done
|
||||||
@cd $(SRCDIR) && make
|
@cd $(SRCDIR) && make
|
||||||
@@ -54,8 +55,7 @@ $(ROOT): $(SRCDIR)/ex
|
|||||||
@cd $(SRCDIR) && make install DESTDIR=$(ROOT)
|
@cd $(SRCDIR) && make install DESTDIR=$(ROOT)
|
||||||
|
|
||||||
test: $(ROOT)
|
test: $(ROOT)
|
||||||
@cd $(SRCDIR); \
|
# @cd $(SRCDIR) && make test
|
||||||
make test
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -rvf $(ROOT) \
|
@rm -rvf $(ROOT) \
|
||||||
|
|||||||
Reference in New Issue
Block a user