Makefile 1.2 KB
Newer Older
1
2
3
4
5
all:

clean:

install:
EclipseSpark's avatar
EclipseSpark committed
6
	chown root:root parrot-core/*
7
	cp -rf parrot-core/* $(DESTDIR)/
Lorenzo "Palinuro" Faletra's avatar
Lorenzo "Palinuro" Faletra committed
8
	chmod 750 $(DESTDIR)/root/.bashrc
9
	mkdir -p $(DESTDIR)/etc/default/grub.d
10
	mkdir -p $(DESTDIR)/lib/systemd/{system/postgresql@.service.d,system-preset}
11
	mkdir -p $(DESTDIR)/sandbox
12
	cp grub.default $(DESTDIR)/etc/default/grub.d/parrot.cfg
13
14
	cp -r systemd/parrot_postgresql.conf $(DESTDIR)/lib/systemd/system/postgresql@.service.d/
	cp systemd/80-parrot.preset $(DESTDIR)/lib/systemd/system-preset/
15
	chown root:root $(DESTDIR)/etc/default/grub.d/parrot.cfg
Lorenzo "Palinuro" Faletra's avatar
Lorenzo "Palinuro" Faletra committed
16
	chown root:root $(DESTDIR)/sandbox
17
	chown -R root:root $(DESTDIR)/lib/
18
	chmod 644 $(DESTDIR)/etc/default/grub.d/parrot.cfg
Lorenzo "Palinuro" Faletra's avatar
Lorenzo "Palinuro" Faletra committed
19
	chmod 755 $(DESTDIR)/sandbox
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
	chmod 644 $(DESTDIR)/lib/systemd/system/postgresql@.service.d/*
	chmod 644 $(DESTDIR)/lib/systemd/system-preset/*
	ifeq ($(DEB_TARGET_ARCH), amd64)
		GOARCH=amd64
	endif
	ifeq ($(DEB_TARGET_ARCH), i386)
		GOARCH=386
	endif
	ifeq ($(DEB_TARGET_ARCH), armhf)
		GOARCH=arm
	endif
	ifeq ($(DEB_TARGET_ARCH), armel)
		GOARCH=arm
	endif
	ifeq ($(DEB_TARGET_ARCH), arm64)
		GOARCH=arm64
	endif
Lorenzo "Palinuro" Faletra's avatar
Lorenzo "Palinuro" Faletra committed
37
	go build -o $(DESTDIR)/usr/bin/update-sandbox-launchers update-sandbox-launchers.go
38
39
	strip $(DESTDIR)/usr/bin/update-sandbox-launchers