Advertisement
devinteske

RBuild.Makefile

Apr 28th, 2022
2,593
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 1.03 KB | None | 0 0
  1. # -*- tab-width: 4 -*- ;; Emacs
  2. # vi: set noexpandtab  :: Vi/ViM
  3. ############################################################ IDENT(1)
  4. #
  5. # $Title: Makefile for compiling AppleScript applet/droplet on Mac OS X $
  6. # $Copyright: 2019-2022 Devin Teske. All rights reserved. $
  7. # $FrauBSD$
  8. #
  9. ############################################################ CONFIGURATION
  10.  
  11. APP = RBuild.app
  12. SRC = RBuild.applescript
  13.  
  14. ############################################################ TARGETS
  15.  
  16. all: $(APP)
  17.  
  18. $(APP): $(SRC)
  19.     osacompile -o $(@) $(?)
  20.     touch $(@)
  21.  
  22. install: $(APP)
  23.     mkdir -p ~/Applications
  24.     cp -R $(?) ~/Applications/
  25.  
  26. open: install
  27.     open ~/Applications/$(APP)
  28.  
  29. zip: $(APP).zip
  30.  
  31. $(APP).zip: $(APP)
  32.     zip -r $(@) $(?)
  33.  
  34. test:
  35.     osacompile -o /dev/null $(SRC)
  36.     @echo $(SRC) syntax OK
  37.  
  38. clean:
  39.     rm -Rf $(APP)
  40.  
  41. distclean cleandir: clean
  42.     rm -f .DS_Store
  43.  
  44. ################################################################################
  45. # END
  46. ################################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement