-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 905 Bytes
/
Makefile
File metadata and controls
34 lines (26 loc) · 905 Bytes
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
VERSION=2.0
HOMEDIR=/home/user
DESTDIR=/opt/buildtools
INSTALL=install
CP=cp
SED=sed
install:
echo "Error: you must sepcify a system type to install."
exit 1
install-skeleton:
$(INSTALL) -d $(DESTDIR)
install-common: install-skeleton
$(CP) common/* $(DESTDIR)/
install-staging-server: install-common
$(CP) staging-server/home/* $(HOMEDIR)/
$(CP) staging-server/bin/* $(DESTDIR)/
$(SED) -i $(DESTDIR)/config -e "s@%HOMEDIR%@$(HOMEDIR)@g"
$(SED) -i $(DESTDIR)/config -e "s@%VERSION%@$(VERSION)@g"
install-bootstrap-server: install-common
$(CP) bootstrap-server/bin/* $(DESTDIR)/
$(SED) -i $(DESTDIR)/config -e "s@%HOMEDIR%@$(HOMEDIR)@g"
$(SED) -i $(DESTDIR)/config -e "s@%VERSION%@$(VERSION)@g"
install-build-server: install-common
$(CP) build-server/bin/* $(DESTDIR)/
$(SED) -i $(DESTDIR)/config -e "s@%HOMEDIR%@$(HOMEDIR)@g"
$(SED) -i $(DESTDIR)/config -e "s@%VERSION%@$(VERSION)@g"