2 # debian/rules for java-package
4 # Uncomment this to turn on verbose mode.
7 # Extract source package version number from changelog
8 VERSION := $(shell head -n 1 $(CURDIR)/debian/changelog | sed 's/.*(//;s/).*//')
9 B := $(CURDIR)/debian/java-package
11 build: build-arch build-indep
12 build-arch: build-stamp
13 build-indep: build-stamp
17 sed s/@VERSION@/$(VERSION)/ make-jpkg > make-jpkg.out
23 rm -f build-stamp SUPPORTED make-jpkg.out debian/semantic.cache
31 install -m 755 make-jpkg.out $(B)/usr/bin/make-jpkg
32 cp lib/*.sh $(B)/usr/share/java-package/
33 find $(B) -type d -name .svn | xargs -r rm -r
36 echo "java-package currently supports the following binary packages:" > SUPPORTED
38 echo "(This list is automatically generated, do not edit)" >> SUPPORTED
40 grep -h "SUPPORTED$$" $(wildcard $(CURDIR)/lib/*-*.sh) | sed 's/"//g;s/).*//' >> SUPPORTED
48 binary-indep: build install
53 dh_installman make-jpkg.1
65 .PHONY: build clean binary-indep binary install