-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinstall.mk
49 lines (45 loc) · 1.67 KB
/
install.mk
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
INSTALL = install
INSTALL_DEPS = src/swirc.1\
swirc\
swirc-royal.png\
swirc.conf.5\
swirc.theme.5
LC_MSGS = po/de/swirc.mo\
po/fi/swirc.mo\
po/fr/swirc.mo\
po/sv/swirc.mo
# Don't provide a default value for DESTDIR. It should be empty.
DESTDIR ?=
DEST_PROGRAM = $(DESTDIR)$(PREFIX)/bin
DEST_MANUAL = $(DESTDIR)$(PREFIX)/share/man/man1
DEST_CONFMAN = $(DESTDIR)$(PREFIX)/share/man/man5
DEST_LOGO = $(DESTDIR)$(PREFIX)/share/swirc
DEST_LC_MSGS = $(DESTDIR)$(PREFIX)/share/locale/
install: $(INSTALL_DEPS) $(LC_MSGS)
$(INSTALL) -d $(DEST_PROGRAM)
$(INSTALL) -d $(DEST_MANUAL)
$(INSTALL) -d $(DEST_CONFMAN)
$(INSTALL) -d $(DEST_LOGO)
$(INSTALL) -d $(DEST_LC_MSGS)de/LC_MESSAGES
$(INSTALL) -d $(DEST_LC_MSGS)fi/LC_MESSAGES
$(INSTALL) -d $(DEST_LC_MSGS)fr/LC_MESSAGES
$(INSTALL) -d $(DEST_LC_MSGS)sv/LC_MESSAGES
$(INSTALL) -m 0755 swirc $(DEST_PROGRAM)
$(INSTALL) -m 0444 src/swirc.1 $(DEST_MANUAL)
$(INSTALL) -m 0444 swirc.conf.5 $(DEST_CONFMAN)
$(INSTALL) -m 0444 swirc.theme.5 $(DEST_CONFMAN)
$(INSTALL) -m 0444 swirc-royal.png $(DEST_LOGO)
$(INSTALL) -m 0644 po/de/swirc.mo $(DEST_LC_MSGS)de/LC_MESSAGES
$(INSTALL) -m 0644 po/fi/swirc.mo $(DEST_LC_MSGS)fi/LC_MESSAGES
$(INSTALL) -m 0644 po/fr/swirc.mo $(DEST_LC_MSGS)fr/LC_MESSAGES
$(INSTALL) -m 0644 po/sv/swirc.mo $(DEST_LC_MSGS)sv/LC_MESSAGES
install-no-lc-msgs: $(INSTALL_DEPS)
$(INSTALL) -d $(DEST_PROGRAM)
$(INSTALL) -d $(DEST_MANUAL)
$(INSTALL) -d $(DEST_CONFMAN)
$(INSTALL) -d $(DEST_LOGO)
$(INSTALL) -m 0755 swirc $(DEST_PROGRAM)
$(INSTALL) -m 0444 src/swirc.1 $(DEST_MANUAL)
$(INSTALL) -m 0444 swirc.conf.5 $(DEST_CONFMAN)
$(INSTALL) -m 0444 swirc.theme.5 $(DEST_CONFMAN)
$(INSTALL) -m 0444 swirc-royal.png $(DEST_LOGO)