DESTDIR配置生效

This commit is contained in:
uzi 2022-12-06 16:28:05 +08:00
parent 8ecec6170f
commit 374b7a8bee

View File

@ -7,6 +7,7 @@ wmname:= wmname-0.1
libraries := $(dmenu) $(dwm) $(scroll) $(st) $(wmname)
# INSTALL_PATH := $(PWD)/_install
# export DESTDIR=${INSTALL_PATH}
.PHONY : all $(libraries)
@ -18,10 +19,10 @@ $(libraries) :
$(MAKE) -C $@
install:
rm -fr ./_install && true
mkdir ./_install
echo "${INSTALL_PATH}"
$(foreach dir,$(libraries), DESTDIR=${INSTALL_PATH} $(MAKE) -C $(dir) install;)
# rm -fr ./_install && true
# mkdir ./_install
echo "${DESTDIR}"
$(foreach dir,$(libraries), $(MAKE) -C $(dir) install;)
clean :
$(foreach dir,$(libraries), $(MAKE) -C $(dir) clean;)