28 lines
566 B
Makefile
28 lines
566 B
Makefile
|
GZIP=gzip
|
||
|
INSTALL= install
|
||
|
|
||
|
prefix ?= /usr/local
|
||
|
bindir = $(prefix)/bin
|
||
|
mandir = $(prefix)/man
|
||
|
man8dir = $(mandir)/man8
|
||
|
|
||
|
MANPAGES = mkfs.btrfs.8.gz btrfsctl.8.gz btrfsck.8.gz
|
||
|
|
||
|
all: $(MANPAGES)
|
||
|
|
||
|
mkfs.btrfs.8.gz: mkfs.btrfs.8.in
|
||
|
$(GZIP) -n -c mkfs.btrfs.8.in > mkfs.btrfs.8.gz
|
||
|
|
||
|
btrfsctl.8.gz: btrfsctl.8.in
|
||
|
$(GZIP) -n -c btrfsctl.8.in > btrfsctl.8.gz
|
||
|
|
||
|
btrfsck.8.gz: btrfsck.8.in
|
||
|
$(GZIP) -n -c btrfsck.8.in > btrfsck.8.gz
|
||
|
|
||
|
clean :
|
||
|
rm -f $(MANPAGES)
|
||
|
|
||
|
install: $(MANPAGES)
|
||
|
$(INSTALL) -m755 -d $(DESTDIR)$(man8dir)
|
||
|
$(INSTALL) -m 644 $(MANPAGES) $(DESTDIR)$(man8dir)
|