Skip to content

Commit

Permalink
added uninstall section to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Unia committed Apr 15, 2013
1 parent d189893 commit 5d4a908
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CXX = g++
CC = gcc

PKGS=x11 xrandr xft fontconfig imlib2 xext
MYCFLAGS=-Wall -I. $(shell pkg-config --cflags $(PKGS)) -pthread
MYCFLAGS=-Wall -I. $(shell pkg-config --cflags $(PKGS)) -pthread
CXXFLAGS=$(CFLAGS) $(MYCFLAGS)
LIBS=$(shell pkg-config --libs $(PKGS)) -lrt -lpam -pthread
CUSTOM=
Expand Down Expand Up @@ -47,3 +47,9 @@ install: slimlock
@chmod u+s $(DESTDIR)$(PREFIX)/bin/slimlock
@install -D -m 644 slimlock.conf $(DESTDIR)$(CFGDIR)/slimlock.conf
@install -D -m 644 slimlock.pam $(DESTDIR)$(CFGDIR)/pam.d/slimlock

uninstall:
@rm -f $(DESTDIR)$(MANDIR)/man1/slimlock.1
@rm -f $(DESTDIR)$(PREFIX)/bin/slimlock
@rm -f $(DESTDIR)$(CFGDIR)/slimlock.conf
@rm -f $(DESTDIR)$(CFGDIR)/pam.d/slimlock

0 comments on commit 5d4a908

Please sign in to comment.