btrfs-progs/man/Makefile

31 lines
597 B
Makefile

GZIPCMD=gzip
INSTALL= install
prefix ?= /usr/local
bindir = $(prefix)/bin
mandir = $(prefix)/man
man8dir = $(mandir)/man8
# clear out all suffixes
.SUFFIXES:
# list only those we use
.SUFFIXES: .in .gz
MANPAGES = mkfs.btrfs.8.gz btrfsctl.8.gz btrfsck.8.gz btrfs-image.8.gz \
btrfs-show.8.gz btrfs.8.gz
INFILES = ${MANPAGES:.in=.gz}
all: $(MANPAGES)
.in.gz :
@echo " [MAN] $@"
$(Q)$(GZIPCMD) -n -c $< > $@
clean :
@echo "Cleaning manpages"
$(Q)rm -f $(MANPAGES)
install: $(MANPAGES)
$(INSTALL) -m755 -d $(DESTDIR)$(man8dir)
$(INSTALL) -m 644 $(MANPAGES) $(DESTDIR)$(man8dir)