2013-01-22 20:51:19 +00:00
|
|
|
GZIPCMD=gzip
|
2009-01-21 18:22:49 +00:00
|
|
|
INSTALL= install
|
|
|
|
|
|
|
|
prefix ?= /usr/local
|
|
|
|
bindir = $(prefix)/bin
|
|
|
|
mandir = $(prefix)/man
|
|
|
|
man8dir = $(mandir)/man8
|
|
|
|
|
2013-01-24 23:32:52 +00:00
|
|
|
# clear out all suffixes
|
|
|
|
.SUFFIXES:
|
|
|
|
# list only those we use
|
|
|
|
.SUFFIXES: .in .gz
|
|
|
|
|
2013-08-14 04:29:11 +00:00
|
|
|
MANPAGES = mkfs.btrfs.8.gz btrfsck.8.gz btrfs-image.8.gz btrfs.8.gz \
|
2013-08-14 04:29:14 +00:00
|
|
|
btrfs-debug-tree.8.gz btrfs-show-super.8.gz btrfs-find-root.8.gz \
|
2013-08-14 04:29:17 +00:00
|
|
|
btrfs-convert.8.gz btrfstune.8.gz btrfs-zero-log.8.gz btrfs-map-logical.8.gz
|
2013-01-24 23:32:52 +00:00
|
|
|
INFILES = ${MANPAGES:.in=.gz}
|
2009-01-21 18:22:49 +00:00
|
|
|
|
|
|
|
all: $(MANPAGES)
|
|
|
|
|
2013-01-24 23:32:52 +00:00
|
|
|
.in.gz :
|
|
|
|
@echo " [MAN] $@"
|
|
|
|
$(Q)$(GZIPCMD) -n -c $< > $@
|
2009-06-03 16:00:20 +00:00
|
|
|
|
2009-01-21 18:22:49 +00:00
|
|
|
clean :
|
2013-01-24 23:32:52 +00:00
|
|
|
$(Q)rm -f $(MANPAGES)
|
2009-01-21 18:22:49 +00:00
|
|
|
|
|
|
|
install: $(MANPAGES)
|
|
|
|
$(INSTALL) -m755 -d $(DESTDIR)$(man8dir)
|
|
|
|
$(INSTALL) -m 644 $(MANPAGES) $(DESTDIR)$(man8dir)
|