|
|
|
|
@ -122,12 +122,12 @@ install: check uninstall
|
|
|
|
|
install -dm755 "${DESTDIR}${PREFIX}/share/icons/hicolor/$${SIZE}x$${SIZE}/apps"; \
|
|
|
|
|
rsvg-convert -w $${SIZE} -h $${SIZE} -f svg --keep-image-data "icons/apps/com.ublinux.${PKGNAME}.svg" -o "${DESTDIR}${PREFIX}/share/icons/hicolor/$${SIZE}x$${SIZE}/apps/com.ublinux.${PKGNAME}.svg"; \
|
|
|
|
|
done
|
|
|
|
|
@install -Dm755 -t "${DESTDIR}${PREFIX}/bin/" "${CMAKE_BUILD_DIR}/${PKGNAME}"
|
|
|
|
|
@install -Dm644 -t "${DESTDIR}${PREFIX}/share/applications/" "${PKGNAME}.desktop"
|
|
|
|
|
@for FILE_ICON in $(wildcard icons/*/*.svg); do \
|
|
|
|
|
SUB_NAME=$${FILE_ICON#*/}; SUB_NAME=$${SUB_NAME%/*}; \
|
|
|
|
|
install -Dm644 -t "${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/$${SUB_NAME}" $${FILE_ICON}; \
|
|
|
|
|
done
|
|
|
|
|
@install -Dm755 -t "${DESTDIR}${PREFIX}/bin/" "${CMAKE_BUILD_DIR}/${PKGNAME}"
|
|
|
|
|
@install -Dm644 -t "${DESTDIR}${PREFIX}/share/applications/" "${PKGNAME}.desktop"
|
|
|
|
|
@if [[ "${PREFIX}" == @("/usr"|"/usr/") ]]; then \
|
|
|
|
|
install -Dm644 -t "${DESTDIR}${PREFIX}/share/polkit-1/actions/" "com.ublinux.${PKGNAME}.policy"; \
|
|
|
|
|
else \
|
|
|
|
|
@ -146,7 +146,7 @@ install: check uninstall
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
@echo "Clean ..."
|
|
|
|
|
@$(RM) -rd ${CMAKE_BUILD_DIR}
|
|
|
|
|
@$(RM) -rd "${CMAKE_BUILD_DIR}"
|
|
|
|
|
@if [[ -d "${CMAKE_BUILD_DIR}" ]]; then \
|
|
|
|
|
echo "Clean: error, compile directory exist ${CMAKE_BUILD_DIR}"; \
|
|
|
|
|
else \
|
|
|
|
|
|