Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. # UltrasonicHelix is a Java Swing-based GUI frontend for SoundHelix.
  2. # Copyright (C) 2017 UltrasonicMadness
  3. #
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. # Compiles UltrasonicHelix.java, sourcepath src, compiled files going
  17. # into the bin folder, classpath pointing to all files in lib.
  18. # After this, it creates a jar file from the contents of the bin folder
  19. # and the manifest.text file.
  20. all:
  21. javac -sourcepath src -d bin -cp "lib/*" src/org/ultrasonicmadness/ultrasonichelix/UltrasonicHelix.java
  22. jar cfm UltrasonicHelix.jar manifest.txt -C bin/ .
  23. # Removes UltrasonicHelix.jar everything from the bin folder. The bin
  24. # folder is not deleted as this causes problems with the make all
  25. # commands.
  26. clean:
  27. rm -r bin/*
  28. rm UltrasonicHelix.jar