diff --git a/clash/Makefile b/clash/Makefile index 1890405..e76c267 100644 --- a/clash/Makefile +++ b/clash/Makefile @@ -41,9 +41,11 @@ $(DEPLOY_OUTPUT): $(SRCS) --eval '(uiop:quit)' deploy-install: deploy-build clash.1 - install -m 0644 -Dt "$(PREFIX)/lib/clash" $(DEPLOY_OUTPUT) - install -m 0644 -Dt "$(PREFIX)/share/man/man1/" clash.1 + mkdir -p "$(PREFIX)/lib/clash/" + cp $(DEPLOY_OUTPUT) "$(PREFIX)/bin/clash/" ln -sf "$(PREFIX)/lib/clash/clash" "$(PREFIX)/bin/clash" + mkdir -p "$(PREFIX)/share/man/man1/" + cp clash.1 "$(PREFIX)/share/man/man1/" clean: rm -f clash clash.md clash.1