Skip to content
This repository was archived by the owner on Aug 10, 2020. It is now read-only.

Commit 254f6d8

Browse files
committed
Improve Makefile for maintainability
1 parent ddc6039 commit 254f6d8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1+
PREFIX ?= /usr/share
2+
13
all:
24

35
install:
4-
mkdir -p $(DESTDIR)/usr/share/libreoffice/share/config
5-
cp --no-preserve=mode,ownership -r \
6-
images_papirus.zip \
7-
images_epapirus.zip \
8-
images_papirus_dark.zip \
9-
$(DESTDIR)/usr/share/libreoffice/share/config
6+
install -dpm 755 $(DESTDIR)$(PREFIX)/libreoffice/share/config
7+
install -Dpm 644 images_papirus.zip $(DESTDIR)$(PREFIX)/libreoffice/share/config/images_papirus.zip
8+
install -Dpm 644 images_epapirus.zip $(DESTDIR)$(PREFIX)/libreoffice/share/config/images_epapirus.zip
9+
install -Dpm 644 images_papirus_dark.zip $(DESTDIR)$(PREFIX)/libreoffice/share/config/images_papirus_dark.zip
1010

1111
uninstall:
12-
-rm -f $(DESTDIR)/usr/share/libreoffice/share/config/images_papirus.zip
13-
-rm -f $(DESTDIR)/usr/share/libreoffice/share/config/images_epapirus.zip
14-
-rm -f $(DESTDIR)/usr/share/libreoffice/share/config/images_papirus_dark.zip
12+
-rm -f $(DESTDIR)$(PREFIX)/libreoffice/share/config/images_papirus.zip
13+
-rm -f $(DESTDIR)$(PREFIX)/libreoffice/share/config/images_epapirus.zip
14+
-rm -f $(DESTDIR)$(PREFIX)/libreoffice/share/config/images_papirus_dark.zip
1515

1616
_get_version:
1717
$(eval VERSION := $(shell git show -s --format=%cd --date=format:%Y%m%d HEAD))

0 commit comments

Comments
 (0)