Skip to content

Instantly share code, notes, and snippets.

@lukaszkorecki
Created May 15, 2020 18:02
Show Gist options
  • Save lukaszkorecki/4283f110cb423b25c297b9b349f98563 to your computer and use it in GitHub Desktop.
Save lukaszkorecki/4283f110cb423b25c297b9b349f98563 to your computer and use it in GitHub Desktop.
.ONESHELL:
test: .SHELLFLAGS := -i
test: SHELL := bb
test:
(println :wow)
(require '[clojure.string :as s])
(s/reverse (slurp "./Makefile"))
@lukaszkorecki
Copy link
Author

Output:

#   - tmp : cat Makefile
.ONESHELL:
test: .SHELLFLAGS := -i
test: SHELL := bb

test:
        (println :wow)
        (require '[clojure.string :as s])
        (s/reverse (slurp "./Makefile"))
#   - tmp : make
(println :wow)
(require '[clojure.string :as s])
(s/reverse (slurp "./Makefile"))
:wow
"\n))\"elifekaM/.\" pruls( esrever/s(\t\n)]s sa: gnirts.erujolc[' eriuqer(\t\n)wow: nltnirp(\t\n:tset\n\nbb =: LLEHS :tset\ni- =: SGALFLLEHS. :tset\n:LLEHSENO."
#   - tmp : make -v
GNU Make 4.1
Built for x86_64-pc-linux-gnu

@borkdude
Copy link

Requires make version >= 4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment