aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-16 18:36:15 +0200
committerMattias Andrée <maandree@kth.se>2021-09-16 18:36:15 +0200
commit69c1d2d61902b314223afb304543f22db4c15da5 (patch)
tree02ce3f2f34c63ce5994cdee4b85ebb7efc97951d /Makefile
parentFix makefile (diff)
downloadpdeath-69c1d2d61902b314223afb304543f22db4c15da5.tar.gz
pdeath-69c1d2d61902b314223afb304543f22db4c15da5.tar.bz2
pdeath-69c1d2d61902b314223afb304543f22db4c15da5.tar.xz
Improve makefile1.1.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index f239a15..5399d45 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@
CONFIGFILE = config.mk
include $(CONFIGFILE)
+
all: pdeath tinysleep test
pdeath: pdeath.o
@@ -44,19 +45,16 @@ check: pdeath tinysleep test
install: pdeath
mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
- mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/pdeath"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1"
cp -- pdeath "$(DESTDIR)$(PREFIX)/bin/"
- cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/pdeath/"
cp -- pdeath.1 "$(DESTDIR)$(MANPREFIX)/man1/"
uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/bin/pdeath"
-rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/pdeath.1"
- -rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/pdeath"
clean:
- -rm -rf -- *.o pdeath tinysleep test .testdir
+ -rm -rf -- *.o *.su pdeath tinysleep test .testdir
SUFFIXES:
SUFFIXES: .o .c