-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathMakefile
57 lines (39 loc) · 1.17 KB
/
Makefile
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
DESTDIR =
PREFIX := /usr
MANDIR := $(PREFIX)/man
DOCDIR := ${PREFIX}/share/doc
.PHONY : shell-fm manual all clean tags cscope install
all : shell-fm manual
shell-fm :
$(MAKE) -C source
manual :
$(MAKE) -C manual
install :
install -m 0755 -d $(DESTDIR)$(PREFIX)/bin/
install -m 0755 -d $(DESTDIR)$(MANDIR)/man1/
install -m 0755 source/shell-fm $(DESTDIR)$(PREFIX)/bin/
install -m 0644 manual/shell-fm.1.gz $(DESTDIR)$(MANDIR)/man1/
install-extras :
install -m 0755 -d $(DESTDIR)$(DOCDIR)/shell-fm/
cp -r scripts $(DESTDIR)$(DOCDIR)/shell-fm/
install-strip : install
strip $(PREFIX)/bin/shell-fm
uninstall : uninstall-extras
rm -f $(PREFIX)/bin/shell-fm
rm -f $(MANDIR)/man1/shell-fm.1.gz
rmdir --ignore-fail-on-non-empty $(PREFIX)/bin
rmdir --ignore-fail-on-non-empty $(MANDIR)/man1
rmdir --ignore-fail-on-non-empty $(MANDIR)
rmdir --ignore-fail-on-non-empty $(PREFIX)
uninstall-extras :
rm -rf $(DESTDIR)$(DOCDIR)/shell-fm/
clean :
$(MAKE) -C source clean
$(MAKE) -C manual clean
tags : cscope.files
@rm -f tags
xargs -n50 ctags -a < cscope.files
cscope : cscope.files
cscope -b
cscope.files :
find source -name '*.[ch]' > cscope.files