Skip to content

Commit

Permalink
Merge pull request #37 from maximbaz/patch-1
Browse files Browse the repository at this point in the history
`make install` should install LICENSE
  • Loading branch information
Airblader authored Dec 10, 2018
2 parents 73f1d87 + 066733c commit 9509f4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ PREFIX = /usr

BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/share/man/man1
LICENSEDIR = $(PREFIX)/share/licenses/$(TARGET)

CC = gcc
LD = $(CC)
Expand Down Expand Up @@ -45,11 +46,13 @@ $(ODIR)/%.o: $(SDIR)/%.c $(INCS)
install: $(TARGET) mans
$(INSTALL) -Dm 0755 "$(TARGET)" "$(DESTDIR)$(BINDIR)/$(TARGET)"
$(INSTALL) -Dm 0644 man/unclutter-xfixes.1 "$(DESTDIR)$(MANDIR)/unclutter.1"
$(INSTALL) -Dm 0644 -t "$(DESTDIR)$(LICENSEDIR)/" LICENSE

.PHONY: uninstall
uninstall:
$(RM) "$(DESTDIR)$(BINDIR)/$(TARGET)"
$(RM) "$(DESTDIR)$(MANDIR)/unclutter.1"
$(RM) "$(DESTDIR)$(LICENSEDIR)/LICENSE"

.PHONY: mans
mans: $(MANS)
Expand Down

0 comments on commit 9509f4b

Please sign in to comment.