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
|
|
|
|
|
2012-06-09 05:52:10 +00:00
|
|
|
MANPAGES = mkfs.btrfs.8.gz btrfsck.8.gz btrfs-image.8.gz btrfs.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
|
|
|
@echo "Cleaning manpages"
|
|
|
|
$(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)
|