logo

deblob

remove binary executables from a directory git clone https://anongit.hacktivis.me/git/deblob.git/

Makefile (2705B)


  1. # SPDX-FileCopyrightText: 2019 deblob Authors <https://hacktivis.me/projects/deblob>
  2. # SPDX-License-Identifier: BSD-3-Clause
  3. AR ?= ar
  4. CC ?= cc
  5. MCS ?= mcs # Mono C Sharp compiler
  6. CFLAGS ?= -Os -s
  7. JAVAC ?= javac
  8. JAR ?= jar
  9. NQP ?= nqp
  10. PARROT ?= parrot
  11. PERL ?= perl
  12. ERLC ?= erlc
  13. DTC ?= dtc
  14. CHEZ ?= chezscheme
  15. OCAMLC ?= ocamlc
  16. OCAMLOPT ?= ocamlopt
  17. EMACS ?= emacs
  18. SQUIRREL ?= squirrel3
  19. DART ?= dart
  20. NONBUNDLED_BLOBS = hello hello.a hello.o hello.erl.escript hello.beam.escript
  21. TEST_BLOBS = $(NONBUNDLED_BLOBS) hello.exe hello.luac53 hello.luac54 hello.wasm hello.class hello.jar hello.nqp.moarvm hello.pir.pbc perl_storage.pst hello.beam empty.dtb hello-chez.so hello.n hello-ocaml.cmo hello-ocaml.cma hello-ocaml.cmx hello-ocaml.cmxa compiled/hello-racket_rkt.zo hello.elc hello.cnut hello-dart.dill hello-dart.jit
  22. base: $(NONBUNDLED_BLOBS)
  23. all: $(TEST_BLOBS)
  24. .PHONY: clean
  25. clean:
  26. rm -f $(NONBUNDLED_BLOBS) hello-ocaml.o hello-ocaml.a hello-ocaml.cmi
  27. .PHONY: cleanall
  28. cleanall:
  29. rm -f $(TEST_BLOBS)
  30. hello.a: hello
  31. $(AR) -rc $@ hello
  32. hello.o: hello.c
  33. $(CC) $(CFLAGS) -c -o $@ hello.c
  34. hello: hello.c
  35. $(CC) $(CFLAGS) -o $@ hello.c
  36. hello.exe: hello.cs
  37. $(MCS) hello.cs
  38. hello.luac53: hello.lua
  39. luac5.3 -o $@ hello.lua
  40. hello.luac54: hello.lua
  41. luac5.4 -o $@ hello.lua
  42. hello.wasm: hello.wat
  43. wat2wasm -o $@ hello.wat
  44. hello.class: hello.java
  45. $(JAVAC) hello.java
  46. hello.jar: hello.class
  47. $(JAR) cf $@ hello.class
  48. hello.nqp.moarvm: hello.nqp
  49. $(NQP) --target mbc --output=$@ hello.nqp
  50. hello.pir.pbc: hello.pir
  51. $(PARROT) -o $@ hello.pir
  52. perl_storage.pst: perl_storage.pm
  53. $(PERL) perl_storage.pm
  54. hello.erl.escript: hello.erl
  55. echo '#!/usr/bin/env escript' | cat - hello.erl >|$@
  56. chmod +x $@
  57. hello.beam: hello.erl
  58. $(ERLC) +deterministic hello.erl
  59. hello.beam.escript: hello.beam
  60. echo '#!/usr/bin/env escript' | cat - hello.beam >|$@
  61. chmod +x $@
  62. empty.dtb: empty.dts
  63. $(DTC) -o $@ -O dtb empty.dts
  64. hello-chez.so: hello-chez.ss
  65. echo '(compile-file "hello-chez.ss")' | $(CHEZ) -q
  66. hello.n: hello.neko
  67. nekoc hello.neko
  68. hello-ocaml.cmo: hello-ocaml.ml
  69. $(OCAMLC) -c hello-ocaml.ml
  70. hello-ocaml.cma: hello-ocaml.cmo
  71. $(OCAMLC) -a -o hello-ocaml.cma hello-ocaml.cmo
  72. hello-ocaml.cmx: hello-ocaml.ml
  73. $(OCAMLOPT) -c hello-ocaml.ml
  74. hello-ocaml.cmxa: hello-ocaml.cmx
  75. $(OCAMLOPT) -a -o hello-ocaml.cmxa hello-ocaml.cmx
  76. compiled/hello-racket_rkt.zo: hello-racket.rkt
  77. racket -e '(require compiler/cm)(managed-compile-zo "hello-racket.rkt")'
  78. hello.elc: hello.el
  79. $(EMACS) --eval '(byte-compile-file "hello.el")' --batch
  80. hello.cnut: hello.nut
  81. $(SQUIRREL) -c -o $@ hello.nut
  82. hello-dart.dill:
  83. $(DART) compile kernel hello-dart.dart
  84. hello-dart.jit:
  85. $(DART) compile jit-snapshot hello-dart.dart