Commit c423de9d authored by Louis's avatar Louis

Makefile plus lisible

parent 6dad9914
......@@ -121,14 +121,22 @@ min: version
$(clean)
$(setup) sdist --formats=bztar -d $(BUILD) $(OUT)
.ONESHELL:
deb: min
# Make DEB archive
set -ev
$(clean)
cd $(BUILD) && tar -xjf pyromaths-$(VERSION).tar.bz2 &&\
mv pyromaths-$(VERSION) $(BUILDIR) &&\
mv pyromaths-$(VERSION).tar.bz2 pyromaths_$(VERSION).orig.tar.bz2
(
cd $(BUILD)
tar -xjf pyromaths-$(VERSION).tar.bz2
mv pyromaths-$(VERSION) $(BUILDIR)
mv pyromaths-$(VERSION).tar.bz2 pyromaths_$(VERSION).orig.tar.bz2
)
cp -r debian $(BUILDIR)
cd $(BUILDIR) && debuild -i -D -tc -kB39EE5B6 $(OUT) || exit 0
(
cd $(BUILDIR)
debuild -i -D -tc -kspalax@gresille.org
)
mkdir -p $(DIST)
mv $(BUILD)/pyromaths_$(VERSION)-*_all.deb $(DIST)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment