DESTDIR配置生效
This commit is contained in:
parent
8ecec6170f
commit
374b7a8bee
11
Makefile
11
Makefile
|
@ -7,6 +7,7 @@ wmname:= wmname-0.1
|
||||||
libraries := $(dmenu) $(dwm) $(scroll) $(st) $(wmname)
|
libraries := $(dmenu) $(dwm) $(scroll) $(st) $(wmname)
|
||||||
|
|
||||||
# INSTALL_PATH := $(PWD)/_install
|
# INSTALL_PATH := $(PWD)/_install
|
||||||
|
# export DESTDIR=${INSTALL_PATH}
|
||||||
|
|
||||||
.PHONY : all $(libraries)
|
.PHONY : all $(libraries)
|
||||||
|
|
||||||
|
@ -18,10 +19,10 @@ $(libraries) :
|
||||||
$(MAKE) -C $@
|
$(MAKE) -C $@
|
||||||
|
|
||||||
install:
|
install:
|
||||||
rm -fr ./_install && true
|
# rm -fr ./_install && true
|
||||||
mkdir ./_install
|
# mkdir ./_install
|
||||||
echo "${INSTALL_PATH}"
|
echo "${DESTDIR}"
|
||||||
$(foreach dir,$(libraries), DESTDIR=${INSTALL_PATH} $(MAKE) -C $(dir) install;)
|
$(foreach dir,$(libraries), $(MAKE) -C $(dir) install;)
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
$(foreach dir,$(libraries),$(MAKE) -C $(dir) clean;)
|
$(foreach dir,$(libraries), $(MAKE) -C $(dir) clean;)
|
Loading…
Reference in New Issue
Block a user