Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
MathCancer authored Aug 6, 2023
1 parent 7027947 commit 1f4ba24
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions sample_projects/mechano/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,25 @@ load:
cp ./user_projects/$(PROJ)/config/* ./config/
cp ./user_projects/$(PROJ)/custom_modules/* ./custom_modules/

pack:
@echo " "
@echo "Preparing project $(PROJ) for sharing ... "
@echo " "
cd ./user_projects && zip -r $(PROJ).zip $(PROJ)
@echo " "
@echo "Share ./user_projects/$(PROJ).zip ... "
@echo "Other users can unzip $(PROJ).zip in their ./user_projects, compile, and run."
@echo " "

unpack:
@echo " "
@echo "Preparing shared project $(PROJ).zip for use ... "
@echo " "
cd ./user_projects && unzip $(PROJ).zip
@echo " "
@echo "Load this project via make load PROJ=$(PROJ) ... "
@echo " "

list-user-projects:
@echo "user projects::"
@cd ./user_projects && ls -dt1 * | grep . | sed 's!empty.txt!!'

0 comments on commit 1f4ba24

Please sign in to comment.