forked from Dragoncraft89/nautilus-kdeconnect
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Nemo file manager (compile time switch)
- Loading branch information
Showing
4 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,30 @@ | ||
all: | ||
mkdir -p ~/.local/share/nautilus-python/extensions && cp *.py ~/.local/share/nautilus-python/extensions | ||
echo "Done. Please restart Nautilus." | ||
TARGET ?= Nautilus | ||
|
||
# To lower case function | ||
lc = $(shell echo "$1" | tr '[:upper:]' '[:lower:]') | ||
|
||
# File manager extension directory | ||
directory-ext := ${HOME}/.local/share/$(call lc,${TARGET})-python/extensions | ||
directory-build := build | ||
|
||
.PHONY: all | ||
all: build | ||
|
||
# Copy files to build directory and substitute %%TARGET%% for the given target name | ||
.PHONY: build | ||
build: | ||
mkdir -p "${directory-build}" | ||
cp $(wildcard *.py) "${directory-build}/" | ||
sed -i "s/%%TARGET%%/$(call lc,${TARGET})/g" "${directory-build}"/* | ||
|
||
# Copy files from build directory to the target's python extension directory | ||
.PHONY: install | ||
install: build | ||
mkdir -p "${directory-ext}" | ||
cp "${directory-build}"/* "${directory-ext}/" | ||
@echo "Done. Please restart ${TARGET}." | ||
|
||
# Remove build directory | ||
.PHONY: clean | ||
clean: | ||
rm -rf "${directory-build}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters