-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (24 loc) · 737 Bytes
/
Makefile
File metadata and controls
28 lines (24 loc) · 737 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
SYSNAM = ObserverPortal
# Is this an official or sandbox build?
ifeq ($(findstring sandbox, $(CURDIR)),sandbox)
VERNUM = ""
RELDIR = $(subst build,,$(CURDIR))
else
VERNUM = $(shell basename `pwd`)
RELDIR = /www/observers/$(SYSNAM)/$(VERNUM)
endif
BUILDDIR = dist
install:
@echo "rsync -abvhHS --recursive $(BUILDDIR)/ /$(RELDIR)/"
rsync -abvhHS --recursive $(BUILDDIR)/ /$(RELDIR)/
@if [ "$(VERNUM)" != "" ]; then \
echo "cd $(RELDIR)/..; rm rel; ln -s $(VERNUM) rel;"; \
cd $(RELDIR)/..; \
rm rel; \
ln -s $(VERNUM) rel; \
fi
show:
@echo CURDIR = $(CURDIR)
@echo SYSNAM = $(SYSNAM)
@echo VERNUM = $(VERNUM)
@echo RELDIR = $(RELDIR)