Skip to content

Instantly share code, notes, and snippets.

@jasonrobot
Created May 19, 2018 05:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonrobot/17d2edcc369b2beafc4dbbcad9cd0db4 to your computer and use it in GitHub Desktop.
Save jasonrobot/17d2edcc369b2beafc4dbbcad9cd0db4 to your computer and use it in GitHub Desktop.
(in-package :cl-user)
(defpackage :hello-world-system
(:use :asdf))
(in-package :hello-world-system)
(defsystem "hello-world"
:version "0.1.0"
:author "Jason"
:license "LLGPL"
:description "Say hi."
;;end docs
:depends-on ()
:components ((:file "hello"))
;;binary build
:build-operation program-op
:build-pathname "hello-world" ;; shell name
:entry-point "hello-world:start")
(defpackage :hello-world
(:use :cl)
(:export :start))
(in-package :hello-world)
(defun start () (main (uiop:command-line-arguments)))
(defun main (argv)
(print "Hello, world!"))
LISP=sbcl
RM=rm -f
PACKAGE_NAME := "hello-world"
LISP_FLAGS := --noinform --non-interactive
LISP_BUILD := "(progn (require :hello-world) (asdf:make :hello-world))"
hello-world: *.lisp *.asd
$(LISP) $(LISP_FLAGS) --eval $(LISP_BUILD)
#tl;dr: sbcl --noinform --non-interactive --eval "(progn (require :hello-world) (asdf:make :hello-world))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment