summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 329cc89..2b564e2 100644
--- a/Makefile
+++ b/Makefile
@@ -47,6 +47,9 @@ build: share/man/*.txt
done
install: build
+ mkdir -p $(DESTDIR)/usr/share/doc/$(SOFTWARE)
+ cp -a README.txt $(DESTDIR)/usr/share/doc/$(SOFTWARE)
+
mkdir -p $(DESTDIR)/usr/share/$(SOFTWARE)
cp -a build/* $(DESTDIR)/usr/share/$(SOFTWARE)
@@ -91,6 +94,9 @@ uninstall:
rm -rf $(DESTDIR)/usr/share/$(SOFTWARE)/*
rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/share/$(SOFTWARE) || true
+ rm -rf $(DESTDIR)/usr/share/doc/$(SOFTWARE)/*
+ rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/share/doc/$(SOFTWARE) || true
+
clean:
$(MAKE) -C share/man clean