Makefile 1.24 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
Lorenzo "Palinuro" Faletra's avatar
Lorenzo "Palinuro" Faletra committed
10
11
	mkdir -p $(DESTDIR)/lib/systemd/system/postgresql@.service.d
	mkdir -p $(DESTDIR)/lib/systemd/system-preset
12
	mkdir -p $(DESTDIR)/sandbox
13
	cp grub.default $(DESTDIR)/etc/default/grub.d/parrot.cfg
14
15
	cp -r systemd/parrot_postgresql.conf $(DESTDIR)/lib/systemd/system/postgresql@.service.d/
	cp systemd/80-parrot.preset $(DESTDIR)/lib/systemd/system-preset/
16
	chown root:root $(DESTDIR)/etc/default/grub.d/parrot.cfg
Lorenzo "Palinuro" Faletra's avatar
Lorenzo "Palinuro" Faletra committed
17
	chown root:root $(DESTDIR)/sandbox
18
	chown -R root:root $(DESTDIR)/lib/
19
	chmod 644 $(DESTDIR)/etc/default/grub.d/parrot.cfg
Lorenzo "Palinuro" Faletra's avatar
Lorenzo "Palinuro" Faletra committed
20
	chmod 755 $(DESTDIR)/sandbox
21
22
	chmod 644 $(DESTDIR)/lib/systemd/system/postgresql@.service.d/*
	chmod 644 $(DESTDIR)/lib/systemd/system-preset/*
Lorenzo "Palinuro" Faletra's avatar
Lorenzo "Palinuro" Faletra committed
23
	ifeq ($(DEB_TARGET_ARCH)x, amd64x)
24
25
		GOARCH=amd64
	endif
Lorenzo "Palinuro" Faletra's avatar
Lorenzo "Palinuro" Faletra committed
26
	ifeq ($(DEB_TARGET_ARCH)x, i386x)
27
28
		GOARCH=386
	endif
Lorenzo "Palinuro" Faletra's avatar
Lorenzo "Palinuro" Faletra committed
29
	ifeq ($(DEB_TARGET_ARCH)x, armhfx)
30
31
		GOARCH=arm
	endif
Lorenzo "Palinuro" Faletra's avatar
Lorenzo "Palinuro" Faletra committed
32
	ifeq ($(DEB_TARGET_ARCH)x, armelx)
33
34
		GOARCH=arm
	endif
Lorenzo "Palinuro" Faletra's avatar
Lorenzo "Palinuro" Faletra committed
35
	ifeq ($(DEB_TARGET_ARCH)x, arm64x)
36
37
		GOARCH=arm64
	endif
Lorenzo "Palinuro" Faletra's avatar
Lorenzo "Palinuro" Faletra committed
38
	go build -o $(DESTDIR)/usr/bin/update-sandbox-launchers update-sandbox-launchers.go
39
40
	strip $(DESTDIR)/usr/bin/update-sandbox-launchers