Skip to content

Commit 2cabb25

Browse files
linvjwmcgrof
authored andcommitted
crda: Add DESTDIR support in install-libreg* rules in Makefile
Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
1 parent fefefdb commit 2cabb25

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ $(LIBREG): regdb.h reglib.h reglib.c
120120

121121
install-libreg-headers:
122122
$(NQ) ' INSTALL libreg-headers'
123-
$(Q)mkdir -p $(INCLUDE_DIR)
124-
$(Q)cp *.h $(INCLUDE_DIR)/
123+
$(Q)mkdir -p $(DESTDIR)/$(INCLUDE_DIR)
124+
$(Q)cp *.h $(DESTDIR)/$(INCLUDE_DIR)/
125125

126126
install-libreg:
127127
$(NQ) ' INSTALL libreg'
128-
$(Q)mkdir -p $(LIBDIR)
129-
$(Q)cp $(LIBREG) $(LIBDIR)/
128+
$(Q)mkdir -p $(DESTDIR)/$(LIBDIR)
129+
$(Q)cp $(LIBREG) $(DESTDIR)/$(LIBDIR)/
130130
$(Q)ldconfig
131131

132132
%.o: %.c regdb.h $(LIBREG)

0 commit comments

Comments
 (0)