Skip to content

Commit

Permalink
Add a build_debug target
Browse files Browse the repository at this point in the history
  • Loading branch information
weshouman committed Dec 17, 2023
1 parent 3d9bd29 commit 43c586b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile.dev
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# debian/rules would use this Makefile if named so over the default debuild
# make targets, thus we should avoid naming this file Makefile

build_init:
build_init: # rerun to copy the files into the builder
docker build -t debian-package-builder .

build_run: # builds in a docker container and output to the ./out/ dir
mkdir -p $$(pwd)/out
docker run --rm -v $$(pwd)/out:/pkg debian-package-builder

build_debug: # run a bash into the container for debugging
mkdir -p $$(pwd)/out
docker run -it --rm -v $$(pwd)/out:/pkg debian-package-builder /bin/bash

build_clean:
docker rm debian-package-builder

0 comments on commit 43c586b

Please sign in to comment.