-
Notifications
You must be signed in to change notification settings - Fork 70
/
Makefile.in
70 lines (54 loc) · 1.51 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
64
65
66
67
68
69
70
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
datarootdir=@datarootdir@
mandir=@mandir@
CC=@CC@
CFLAGS=@CFLAGS@
CPPFLAGS=@CPPFLAGS@
INSTALL=@INSTALL@
.PHONY: all install test dist lint clean
DISTDIR=@PACKAGE_TARNAME@-@PACKAGE_VERSION@
DISTTGZ=$(DISTDIR).tgz
TARGETS=$(if $(findstring yes,@enable_utils@),utils/try-summary utils/try-commit) man/try.1.gz
all: $(TARGETS)
install: $(TARGETS)
$(INSTALL) -d $(bindir)
$(INSTALL) -m 755 try $(bindir)
ifeq (@enable_utils@, yes)
$(INSTALL) -m 755 utils/try-summary $(bindir)
$(INSTALL) -m 755 utils/try-commit $(bindir)
endif
$(INSTALL) -d $(mandir)/man1
$(INSTALL) -m 644 man/try.1.gz $(mandir)/man1
dist: $(DISTTGZ)
$(DISTTGZ): $(DISTDIR)
tar czf $@ $<
rm -rf $(DISTDIR)
$(DISTDIR): man/try.1 man/try.1.gz
mkdir $@
cp configure configure.ac config.guess config.sub install-sh LICENSE Makefile.in README.md STYLE.md try Vagrantfile $@
cp -R completions $@
cp -R docs $@
cp -R man $@
cp -R scripts $@
cp -R test $@
cp -R utils $@
man/try.1.gz: man/try.1
cat $< | gzip >$@
man/try.1: docs/try.1.md
pandoc --standalone --from markdown-smart --to man $< -o $@
utils/try-summary: utils/ignores.o utils/try-summary.o
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -g $^
utils/try-commit: utils/ignores.o utils/try-commit.o
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -g $^
test: try utils/try-summary utils/try-commit
scripts/run_tests.sh
lint:
scripts/lint.sh
clean:
ifeq (@enable_manpage@, yes)
-rm man/try.1 man/try.1.gz
endif
-rm utils/*.o
-rm utils/try-summary utils/try-commit