-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile.joyent
31 lines (26 loc) · 1 KB
/
Makefile.joyent
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
world:
echo "Building world"
gmake rel
update:
git pull --rebase
manifest:
cp static/manifest $(DESTDIR)/$(DESTNAME)
install: world
echo "Building install"
mkdir -p $(DESTDIR)/lib/svc/method
mkdir -p $(DESTDIR)/lib/svc/manifest/system/
mkdir -p $(DESTDIR)/fifo/vmwebadm/js
mkdir -p $(DESTDIR)/usr/sbin
mkdir -p $(DESTDIR)/var/db/vmwebadm/images
cp out/client/client.js out/server/server.js $(DESTDIR)/fifo/vmwebadm/js
cp -r static/* jslib $(DESTDIR)/fifo/vmwebadm
rm -r $(DESTDIR)/fifo/vmwebadm/jslib/*/.git*
mv $(DESTDIR)/fifo/vmwebadm/data/vmwebadmd.xml $(DESTDIR)/lib/svc/manifest/system/
mv $(DESTDIR)/fifo/vmwebadm/vmwebadmd $(DESTDIR)/lib/svc/method/
mv $(DESTDIR)/fifo/vmwebadm/vmwebadm $(DESTDIR)/usr/sbin
sed -i $(DESTDIR)/lib/svc/manifest/system/vmwebadmd.xml -e 's;!DEPLOY_PATH!;/lib/svc/method;g'
sed -i $(DESTDIR)/usr/sbin/vmwebadm -e 's;!DEPLOY_PATH!;/fifo/vmwebadm;g'
sed -i $(DESTDIR)/lib/svc/method/vmwebadmd -e 's;!DEPLOY_PATH!;/fifo/vmwebadm;g'
clean:
gmake clean
.PHONY: manifest