2017-04-05 07:04:50 +00:00
|
|
|
PACKAGE=zvault
|
|
|
|
DEPENDENCIES=debhelper devscripts
|
|
|
|
|
|
|
|
.PHONY: default
|
|
|
|
default: clean build
|
|
|
|
|
|
|
|
.PHONY: build
|
|
|
|
build: libsquash_*.deb $(PACKAGE)_*.deb
|
|
|
|
|
|
|
|
libsquash_*.deb:
|
|
|
|
(cd libsquash; make clean; debuild -b -us -uc; cd ..)
|
|
|
|
|
2017-04-05 14:02:16 +00:00
|
|
|
$(PACKAGE)_*.deb: $(PACKAGE)/man/* $(PACKAGE)/zvault
|
2017-04-05 07:04:50 +00:00
|
|
|
(cd $(PACKAGE); make clean; debuild -b -us -uc; cd ..)
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
(cd $(PACKAGE); debuild clean; cd ..)
|
|
|
|
rm -rf $(PACKAGE)_*
|
|
|
|
(cd libsquash; debuild clean; cd ..)
|
|
|
|
rm -rf libsqash_*
|
|
|
|
|
2017-04-05 14:02:16 +00:00
|
|
|
$(PACKAGE)/man/*: ../docs/man/*
|
|
|
|
cp ../docs/man/* $(PACKAGE)/man
|
2017-04-05 07:04:50 +00:00
|
|
|
|
|
|
|
$(PACKAGE)/zvault: ../target/release/zvault
|
|
|
|
cp ../target/release/zvault $(PACKAGE)/zvault
|
|
|
|
|
|
|
|
../target/release/zvault: ../src/*.rs ../Cargo.toml
|
|
|
|
(cd ..; cargo build --release)
|