Skip to content

Commit

Permalink
Merge pull request #259 from jasyip/main
Browse files Browse the repository at this point in the history
  • Loading branch information
b3nj5m1n authored May 11, 2023
2 parents 569bd74 + 7847f2c commit a9bc919
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ all:
.PHONY: all install uninstall

install:
install -Dm 0755 xdg-ninja.sh $(DESTDIR)$(PREFIX)/bin/xdg-ninja
install -d $(DESTDIR)$(PREFIX)/share/xdg-ninja/
cp -r programs $(DESTDIR)$(PREFIX)/share/xdg-ninja/
install -d $(DESTDIR)$(PREFIX)/share/doc/xdg-ninja/
install -m 0644 LICENSE README.md $(DESTDIR)$(PREFIX)/share/doc/xdg-ninja/
install -m 0644 man/xdg-ninja.1 $(DESTDIR)$(PREFIX)/share/man/man1/
install -Dm 0755 -T xdg-ninja.sh '$(DESTDIR)$(PREFIX)/bin/xdg-ninja'
install -d '$(DESTDIR)$(PREFIX)/share/xdg-ninja/'
cp -r programs '$(DESTDIR)$(PREFIX)/share/xdg-ninja/'
install -Dm 0644 -t '$(DESTDIR)$(PREFIX)/share/doc/xdg-ninja/' LICENSE README.md
install -Dm 0644 -t '$(DESTDIR)$(PREFIX)/share/man/man1/' man/xdg-ninja.1

uninstall:
rm -rf $(DESTDIR)$(PREFIX)/bin/xdg-ninja \
$(DESTDIR)$(PREFIX)/share/xdg-ninja \
$(DESTDIR)$(PREFIX)/share/doc/xdg-ninja \
$(DESTDIR)$(PREFIX)/share/man/man1/xdg-ninja.1
rm -rf '$(DESTDIR)$(PREFIX)/bin/xdg-ninja' \
'$(DESTDIR)$(PREFIX)/share/xdg-ninja' \
'$(DESTDIR)$(PREFIX)/share/doc/xdg-ninja' \
'$(DESTDIR)$(PREFIX)/share/man/man1/xdg-ninja.1'

0 comments on commit a9bc919

Please sign in to comment.