forked from vit-project/vit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
64 lines (51 loc) · 1.45 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
PARTS = args.pl cmdline.pl cmds.pl color.pl curses.pl draw.pl env.pl exec.pl \
getch.pl misc.pl prompt.pl read.pl search.pl screen.pl vitrc.pl
PREFIX=@prefix@
VERSION=@VERSION@
TASK=@TASK@
PERL=@PERL@
CLEAR=@CLEAR@
.PHONY : install
build:
@echo "adding vit.pl to vit"
@if which git > /dev/null && git rev-parse > /dev/null 2>&1; \
then GITHASH=" ($$(git rev-parse --short HEAD))"; \
else GITHASH=""; \
fi && \
cat vit.pl | grep -v ^require \
| sed "s:%prefix%:$(PREFIX):" \
| sed "s/%BUILD%/$(VERSION) built after `date -r CHANGES`/" \
| sed "s/%VERSION%/$(VERSION)$${GITHASH}/" \
| sed "s:%TASK%:$(TASK):" \
| sed "s:%CLEAR%:$(CLEAR):" \
> vit
@for f in $(PARTS); do \
echo "adding $$f to vit"; \
echo "########################################################" >> vit; \
echo "## $$f..." >> vit; \
grep -v ^return $$f >> vit; \
done
chmod 755 vit
install:
mkdir -p $(DESTDIR)/@prefix@/bin
cp vit $(DESTDIR)/@prefix@/bin/
mkdir -p $(DESTDIR)/@prefix@/share/man/man1
cp vit.1 $(DESTDIR)/@prefix@/share/man/man1/
mkdir -p $(DESTDIR)/@prefix@/share/man/man5
cp vitrc.5 $(DESTDIR)/@prefix@/share/man/man5/
mkdir -p $(DESTDIR)/@prefix@/share/vit
cp commands $(DESTDIR)/@prefix@/share/vit/commands
autoconf:
@make -f .makefile autoconf
release:
@make -f .makefile release
push:
@make -f .makefile push
debug:
@make -f .makefile debug
test:
@make -f .makefile test
diffs:
@make -f .makefile diffs
ci:
@make -f .makefile ci