chiark / gitweb /
add man pages for *_id programs
[elogind.git] / extras / volume_id / Makefile
index 56cab10e2325b59d47a0693a5585ea73260ca8d2..23de2ba091a8f681e37709e581e8c43bba40e5df 100644 (file)
@@ -38,7 +38,9 @@ all: $(PROG) $(MAN_PAGES)
 
 $(PROG): %: $(HEADERS) %.o $(OBJS)
        $(QUIET) $(LD) $(LDFLAGS) $@.o $(OBJS) -o $@ $(LIBUDEV) $(LIBSYSFS) $(LIB_OBJS)
+ifneq ($(strip $(STRIPCMD)),)
        $(QUIET) $(STRIPCMD) $@
+endif
 
 # man pages
 %.8: %.xml
@@ -58,11 +60,11 @@ uninstall-bin:
 .PHONY: uninstall-bin
 
 install-man:
-       @echo "Please create a man page for this tool."
+       $(INSTALL_DATA) -D $(PROG).8 $(DESTDIR)$(mandir)/man8/$(PROG).8
 .PHONY: uninstall-man
 
 uninstall-man:
-       @echo "Please create a man page for this tool."
+       -rm -f $(DESTDIR)$(mandir)/man8/$(PROG).8
 .PHONY: uninstall-man
 
 install-config: