-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
60 lines (47 loc) · 1.22 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
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"
@cat vit.pl | grep -v ^require \
| sed "s:%prefix%:$(PREFIX):" \
| sed "s/%BUILD%/$(VERSION) built `date`/" \
| sed "s/%VERSION%/$(VERSION) (`date +%Y%m%d`)/" \
| 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:
sudo mkdir -p @prefix@/bin
sudo cp vit @prefix@/bin/vit
sudo mkdir -p @prefix@/man/man1
sudo cp vit.1 @prefix@/man/man1/
sudo mkdir -p @prefix@/man/man5
sudo cp vitrc.5 @prefix@/man/man5/
sudo mkdir -p @prefix@/etc/
sudo cp commands @prefix@/etc/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