- allows to create a debian package ( yet unsigned )

- create a jar, gnerate a ant build.xml
- version of jar

Signed-off-by: philippe lhardy <philippe@pavilionartlogiciel>
This commit is contained in:
philippe lhardy
2015-02-16 23:07:20 +01:00
parent e0b2027f70
commit 2a8f80154f
7 changed files with 198 additions and 10 deletions

45
Makefile Normal file
View File

@@ -0,0 +1,45 @@
PROJECT_VERSION=`./debianize.sh getversion`
DISTPREFIX=artloglaby
DISTJAR=$(DISTPREFIX)-$(PROJECT_VERSION).jar
all: build.xml dist/lib/$(DISTJAR)
getname:
@echo dist/lib/$(DISTJAR)
dist:
mkdir -p dist
dist/lib/$(DISTJAR): dist
ant dist
build.xml:
./antify.sh >$@
clean:
rm -f build.xml
rm -f dist/lib/$(DISTPREFIX)*.jar
rm -rf build
cleanall: clean
rm -rf debian
rm -rf deb
debian:
mkdir debian
deb/%:
mkdir -p deb
touch $@
./debianize.sh create $@
debian/compat:
echo "7" >$@
debian/%:
./debianize.sh create $@ >$@
deb: debian debian/rules debian/control debian/compat debian/changelog deb/javadoc deb/jlibs
dpkg-buildpackage -uc -us
.PHONY: clean all cleanall getname deb