chiark / gitweb /
add man pages for *_id programs
[elogind.git] / extras / ata_id / Makefile
index d93e69477824afb2ecb075e893a866ad37e58885..4080df1b42f4c7c39baa567f319f0b913593dddf 100644 (file)
@@ -35,7 +35,9 @@ all: $(PROG) $(MAN_PAGES)
 
 $(PROG): %: $(HEADERS) %.o $(OBJS)
        $(QUIET) $(LD) $(LDFLAGS) $@.o $(OBJS) -o $@ $(LIBUDEV) $(LIBSYSFS) $(LIB_OBJS)
+ifneq ($(STRIPCMD),)
        $(QUIET) $(STRIPCMD) $@
+endif
 
 # man pages
 %.8: %.xml
@@ -55,11 +57,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: