mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-27 00:22:22 +00:00
dd4d4260d1
Preparatory patch to move cmd & test files into their own subdirs. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
31 lines
688 B
Makefile
31 lines
688 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 btrfsck.8.gz btrfs-image.8.gz btrfs.8.gz \
|
|
btrfs-debug-tree.8.gz btrfs-show-super.8.gz btrfs-find-root.8.gz \
|
|
btrfs-convert.8.gz btrfstune.8.gz btrfs-zero-log.8.gz btrfs-map-logical.8.gz
|
|
INFILES = ${MANPAGES:.in=.gz}
|
|
|
|
all: $(MANPAGES)
|
|
|
|
.in.gz :
|
|
@echo " [MAN] $@"
|
|
$(Q)$(GZIPCMD) -n -c $< > $@
|
|
|
|
clean :
|
|
$(Q)rm -f $(MANPAGES)
|
|
|
|
install: $(MANPAGES)
|
|
$(INSTALL) -m755 -d $(DESTDIR)$(man8dir)
|
|
$(INSTALL) -m 644 $(MANPAGES) $(DESTDIR)$(man8dir)
|