-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
37 lines (30 loc) · 1.05 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
prefix = /usr
libdir = $(prefix)/lib
datarootdir = $(prefix)/share
datadir = $(datarootdir)
eselectdir = $(datadir)/eselect/modules
moduledir = $(datadir)/shadowman
INSTALL_MODULES_COMPILER = clang gcc posix
INSTALL_MODULES_TOOL = ccache distcc icecc
all:
:
install: install-eselect install-modules-compiler install-modules-tool
install-eselect: compiler-shadow.eselect
install -d "$(DESTDIR)$(eselectdir)"
rm -f $<.tmp
sed -e "s@^\(MASQ_MODULEDIR=\).*\$$@\1$(moduledir)@" $< > $<.tmp
install -m0644 $<.tmp "$(DESTDIR)$(eselectdir)/$<"
rm -f $<.tmp
install-modules-compiler:
install -d "$(DESTDIR)$(moduledir)/compilers"
for f in $(INSTALL_MODULES_COMPILER); do \
install -m0644 modules/compilers/"$${f}" "$(DESTDIR)$(moduledir)/compilers/" || \
exit $${?}; \
done
install-modules-tool:
install -d "$(DESTDIR)$(moduledir)/tools"
for f in $(INSTALL_MODULES_TOOL); do \
install -m0644 modules/tools/"$${f}" "$(DESTDIR)$(moduledir)/tools/" || \
exit $${?}; \
done
.PHONY: all install install-eselect install-modules-compiler install-modules-tool