Files
linuxkit/licensing/Makefile
2016-09-13 13:26:15 -07:00

14 lines
394 B
Makefile

.PHONY: license clean run
all: license
license: packages.lua Dockerfile license.sh
docker build -t license .
run: license
rm -rf output
docker run -it -v /etc:/hostetc -v /usr:/hostusr -v /lib:/lib -v $(PWD)/output:/output license
docker run -it --rm -v $(PWD):/licensing debian sh -c "cd /licensing/output && tar --numeric-owner -zcvf /licensing/License.tar.gz *"
clean:
rm -rf output