Added support for ^u (clear line).
[shell-fm.git] / Makefile
blobd848809c4cf1a3bc7024af238642729763d4b00a
2 DESTDIR =
3 PREFIX := /usr
4 MANDIR := $(PREFIX)/man
5 DOCDIR := ${PREFIX}/share/doc
7 .PHONY : shell-fm manual all clean tags cscope
9 all : shell-fm manual
11 shell-fm :
12 $(MAKE) -C source
14 manual :
15 $(MAKE) -C manual
17 install :
18 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin/
19 install -m 0755 -d $(DESTDIR)$(MANDIR)/man1/
20 install -m 0755 source/shell-fm $(DESTDIR)$(PREFIX)/bin/
21 install -m 0644 manual/shell-fm.1.gz $(DESTDIR)$(MANDIR)/man1/
23 install-extras :
24 install -m 0755 -d $(DESTDIR)$(DOCDIR)/shell-fm/
25 cp -r scripts $(DESTDIR)$(DOCDIR)/shell-fm/
29 install-strip : install
30 strip $(PREFIX)/bin/shell-fm
32 uninstall : uninstall-extras
33 rm -f $(PREFIX)/bin/shell-fm
34 rm -f $(MANDIR)/man1/shell-fm.1.gz
35 rmdir --ignore-fail-on-non-empty $(PREFIX)/bin
36 rmdir --ignore-fail-on-non-empty $(MANDIR)/man1
37 rmdir --ignore-fail-on-non-empty $(MANDIR)
38 rmdir --ignore-fail-on-non-empty $(PREFIX)
40 uninstall-extras :
41 rm -rf $(DESTDIR)$(DOCDIR)/shell-fm/
43 clean :
44 $(MAKE) -C source clean
45 $(MAKE) -C manual clean
48 tags : cscope.files
49 @rm -f tags
50 xargs -n50 ctags -a < cscope.files
52 cscope : cscope.files
53 cscope -b
55 cscope.files :
56 find source -name '*.[ch]' > cscope.files