Created
March 3, 2020 10:49
-
-
Save John-Gee/d425d3c537f77131cb20569f3ea35825 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index 8e38d9a..2db4c82 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -8,13 +8,12 @@ CFLAGS+=-O2 -Wall -g | |
all: make-bcache probe-bcache bcache-super-show bcache-register | |
install: make-bcache probe-bcache bcache-super-show | |
- $(INSTALL) -m0755 make-bcache bcache-super-show $(DESTDIR)${PREFIX}/sbin/ | |
- $(INSTALL) -m0755 probe-bcache bcache-register $(DESTDIR)$(UDEVLIBDIR)/ | |
- $(INSTALL) -m0644 69-bcache.rules $(DESTDIR)$(UDEVLIBDIR)/rules.d/ | |
+ $(INSTALL) -m0755 make-bcache bcache-super-show $(DESTDIR)${PREFIX}/bin/ | |
+ $(INSTALL) -m0755 probe-bcache bcache-register $(DESTDIR)${PREFIX}$(UDEVLIBDIR)/ | |
+ $(INSTALL) -m0644 69-bcache.rules $(DESTDIR)${PREFIX}$(UDEVLIBDIR)/rules.d/ | |
$(INSTALL) -m0644 -- *.8 $(DESTDIR)${PREFIX}/share/man/man8/ | |
- $(INSTALL) -D -m0755 initramfs/hook $(DESTDIR)/usr/share/initramfs-tools/hooks/bcache | |
$(INSTALL) -D -m0755 initcpio/install $(DESTDIR)/usr/lib/initcpio/install/bcache | |
- $(INSTALL) -D -m0755 dracut/module-setup.sh $(DESTDIR)$(DRACUTLIBDIR)/modules.d/90bcache/module-setup.sh | |
+ $(INSTALL) -D -m0755 dracut/module-setup.sh $(DESTDIR)${PREFIX}$(DRACUTLIBDIR)/modules.d/90bcache/module-setup.sh | |
# $(INSTALL) -m0755 bcache-test $(DESTDIR)${PREFIX}/sbin/ | |
clean: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment