添加makefile

This commit is contained in:
root 2024-04-03 21:13:38 +08:00
parent 94642c4df5
commit 959726a6a5

View File

@ -37,12 +37,11 @@ cleanall: clean
clean: clean:
rm -r $(DIST_DIR) $(BUILD_DIR) pmpt.egg-info rm -r $(DIST_DIR) $(BUILD_DIR) pmpt.egg-info
push: commit:
@if [ -z "$(msg)" ]; then \ @if [ -z "$(msg)" ]; then \
echo "Please provide a commit message using 'msg' parameter."; \ echo "Please provide a commit message using 'msg' parameter."; \
exit 1; \ exit 1; \
else \ else \
git add .; \ git add .; \
git commit -m "$(msg)"; \ git commit -m "$(msg)"; \
git push origin master; \
fi fi