Skip to content

Commit

Permalink
Adds fpm tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ralt committed Jan 30, 2015
1 parent b42614f commit 40e2d1f
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
NAME=lxc-wrapper
VERSION=
LISP_FILES=$(shell find . -name '*.lisp')
ASDF_TREE=~/quicklisp/
BIN=dist/lxc-wrapper
DESTDIR=/usr/bin/
BIN=dist/usr/bin/lxc-wrapper
DESTDIR=

$(BIN): $(LISP_FILES)
mkdir -p dist
mkdir -p dist/usr/bin
buildapp --load-system lxc-wrapper --entry lxc-wrapper:main --output $(BIN) --asdf-tree $(ASDF_TREE) --compress-core

clean:
rm -rf dist/

install: $(BIN)
cp $(BIN) $(DESTDIR)
cp $(BIN) $(DESTDIR)/usr/bin

.PHONY: clean install
deb: $(BIN)
fpm -p dist/ -s dir -t deb -n $(NAME) -v $(VERSION) -C dist/ usr/bin

rpm: $(BIN)
fpm -p dist/ -s dir -t rpm -n $(NAME) -v $(VERSION) -C dist/ usr/bin

.PHONY: clean install dist

0 comments on commit 40e2d1f

Please sign in to comment.