-
-
Notifications
You must be signed in to change notification settings - Fork 88
/
Makefile
31 lines (24 loc) · 1.23 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
SHELL = /bin/sh
prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
datarootdir = $(prefix)/share
datadir = $(datarootdir)
docdir = $(datarootdir)/doc/bootiso
htmldir = $(docdir)
mandir = $(datarootdir)/man
zsh_completions_dir = $(datadir)/zsh/site-functions
bash_completions_dir = $(datadir)/bash-completion/completions
.PHONY: build install uninstall
all: install
build:
install:
install -D bootiso '$(DESTDIR)$(bindir)/bootiso'
install -Dm644 extra/man/bootiso.1 '$(DESTDIR)$(mandir)/man1/bootiso.1'
install -Dm644 extra/completions/completions.zsh '$(DESTDIR)$(zsh_completions_dir)/_bootiso'
install -Dm644 extra/completions/completions.bash '$(DESTDIR)$(bash_completions_dir)/bootiso'
uninstall:
$(RM) '$(DESTDIR)$(bindir)/bootiso'
$(RM) '$(DESTDIR)$(mandir)/man1/bootiso.1'
$(RM) '$(DESTDIR)$(zsh_completions_dir)/_bootiso'
$(RM) '$(DESTDIR)$(bash_completions_dir)/bootiso'