summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 22 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 02ab179..c7c6c88 100644
--- a/Makefile
+++ b/Makefile
@@ -15,9 +15,19 @@ install:
mkdir -p $(DESTDIR)/usr/share/doc/live-helper
cp -r COPYING doc/* $(DESTDIR)/usr/share/doc/live-helper
+ # Installing manpages
+ mkdir -p $(DESTDIR)/usr/share/man/man1
+ cp manpages/*.1 $(DESTDIR)/usr/share/man/man1
+
+ mkdir -p $(DESTDIR)/usr/share/man/man7
+ cp manpages/*.7 $(DESTDIR)/usr/share/man/man7
+
uninstall:
# Uninstalling executables
- rm -f $(DESTDIR)/usr/bin/lh_* $(DESTDIR)/usr/bin/make-live
+ for HELPER in helpers/*; \
+ do \
+ rm -f $(DESTDIR)/usr/bin/`basename $$HELPER`; \
+ done
# Uninstalling shared data
rm -rf $(DESTDIR)/usr/share/live-helper
@@ -25,6 +35,17 @@ uninstall:
# Uninstalling documentation
rm -rf $(DESTDIR)/usr/share/doc/live-helper
+ # Uninstalling manpages
+ for MANPAGE in manpages/*.1; \
+ do \
+ rm -f $(DESTDIR)/usr/share/man/man1/`basename $$MANPAGE`; \
+ done
+
+ for MANPAGE in manpages/*.7; \
+ do \
+ rm -f $(DESTDIR)/usr/share/man/man7/`basename $$MANPAGE`; \
+ done
+
clean:
reinstall: uninstall install