我有这个makefile:
SHELL = /bin/sh
INSTALL =/usr/bin/install
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL) -m 644
STRIP=$(TARGET_CROSS)strip
EXEC=monApp
SRC= $(wildcard src/*.cpp)
OBJ= $(SRC:.cpp=.o)
CXX=$(TARGET_CROSS)g++
CXXFLAGS = -I./include –I$(STAGING_DIR)/include –I(STAGING_DIR)/usr/include/
LDFLAGS = -g -Wall -L$(STAGING_DIR)/lib –lEGL –lGLESv2 –lIMGegl –L$(STAGING_DIR)/usr/lib
all: $(EXEC)
$(EXEC): $(OBJ)
$(CXX) -o $@ $^ $(LDFLAGS)
%.o: %.cpp
@$(CXX) -o $@ -c $< $(CXXFLAGS)
.PHONY: clean
clean:
@rm -rf src/*.o
@rm -rf $(EXEC)
install: $(EXEC)
mkdir -p ./package.release
$(INSTALL_PROGRAM) $(EXEC) ./package.release/
$(STRIP) ./package.release/$(EXEC)
uninstall:
@rm -rf ./package.release/
如何在不更改为 /bin/bash 的情况下解决此问题(我没有 bash,所以我必须使用 sh)?
谢谢,