add Makefile to build e2fs tools and install everything in /usr/local/bin

This commit is contained in:
Simone Karin Lehmann 2018-03-13 22:04:54 +01:00 committed by Simone Karin Lehmann
parent 35e91edc75
commit 39de57246b
1 changed files with 16 additions and 0 deletions

16
Makefile Normal file
View File

@ -0,0 +1,16 @@
# Makefile to easily build all needed tools
BINS = e2fsck resize2fs tune2fs
$(BINS):
./make_e2fstools
clean:
rm -f $(BINS)
install:
install -d /usr/local/bin
install -m 755 e2fsck /usr/local/bin
install -m 755 resize2fs /usr/local/bin
install -m 755 tune2fs /usr/local/bin
install -m 755 pishrink /usr/local/bin