Project

General

Profile

Packaging Request #3359 » 001-Makefile.patch

wael, 2022-10-06 01:16 PM

View differences:

Makefile
22 22

  
23 23
.PHONY: install-man
24 24
install-man: bombadillo.1
25
	gzip -k ./bombadillo.1
26
	install -d ${DESTDIR}${MAN1DIR}
27
	install -m 0644 ./bombadillo.1.gz ${DESTDIR}${MAN1DIR}
25
	install -Dm 0644 ./bombadillo.1 -t ${DESTDIR}${MAN1DIR}
28 26

  
29 27
.PHONY: install-desktop
30 28
install-desktop:
31 29
ifeq ($(shell uname), Linux)
32 30
	# These steps will not work on Darwin, Plan9, or Windows
33 31
	# They would likely work on BSD systems
34
	install -d ${DESTDIR}${DATAROOTDIR}/applications
35
	install -m 0644 ./bombadillo.desktop ${DESTDIR}${DATAROOTDIR}/applications
36
	install -d ${DESTDIR}${DATAROOTDIR}/pixmaps
37
	install -m 0644 ./bombadillo-icon.png ${DESTDIR}${DATAROOTDIR}/pixmaps
38
	-update-desktop-database 2> /dev/null
32
	install -Dm 0644 ./bombadillo.desktop -t ${DESTDIR}${DATAROOTDIR}/applications
33
	install -Dm 0644 ./bombadillo-icon.png -t ${DESTDIR}${DATAROOTDIR}/pixmaps
39 34
else
40 35
	@echo "* Skipping protocol handler associations and desktop file creation for non-linux system *"
41 36
endif
42 37

  
43 38
.PHONY: install-bin
44 39
install-bin: build
45
	install -d ${DESTDIR}${BINDIR}
46
	install -m 0755 ./${BINARY} ${DESTDIR}${BINDIR}
40
	install -Dm 0755 ./${BINARY} -t ${DESTDIR}${BINDIR}
47 41

  
48 42
.PHONY: clean
49 43
clean: 
50 44
	${GOCMD} clean
51
	rm -f ./bombadillo.1.gz 2> /dev/null
52 45
	rm -f ./${BINARY}_* 2> /dev/null
53 46

  
54 47
.PHONY: uninstall
55 48
uninstall: clean
56
	rm -f ${DESTDIR}${MAN1DIR}/bombadillo.1.gz
57 49
	rm -f ${DESTDIR}${BINDIR}/${BINARY}
58 50
	rm -f ${DESTDIR}${DATAROOTDIR}/applications/bombadillo.desktop
59 51
	rm -f ${DESTDIR}${DATAROOTDIR}/pixmaps/bombadillo-icon.png
60
	-update-desktop-database 2> /dev/null
61 52

  
62 53
.PHONY: release
63 54
release:
(2-2/2)