diff options
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/rules | 89 |
1 files changed, 42 insertions, 47 deletions
diff --git a/debian/rules b/debian/rules index 4a585e2..d1282b7 100755 --- a/debian/rules +++ b/debian/rules @@ -1,54 +1,49 @@ #!/usr/bin/make -f -# Written by Yannick Jestin -# From an example by Antti-Juhani Kaijanaho -# You may treat this file as if it were in the public domain. +# Re Written by Yannick Jestin +# Made with the aid of debmake, by Christoph Lameter, +# based on the sample debian/rules file for GNU hello by Ian Jackson. -librules_interface = 1 -include debian/librules.mk +include java.mk -debian/stamp/binary/arch : debian/stamp/binary/libivy-java +clean: + dh_testdir + dh_testroot + rm -f build-stamp + $(MAKE) clean + dh_clean -debian/stamp/build : - $(MAKE) -C src - touch $@ +build: build-stamp +build-stamp: + dh_testdir + $(MAKE) + touch build-stamp -debian/stamp/clean-build: - -$(MAKE) -C src clean +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) dist + $(MAKE) docs + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp -javarep=$(rootdir)/usr/share/java -mandir=$(rootdir)/usr/share/man/man1 +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdocs README + dh_installexamples examples/*.java examples/*.xml examples/*txt + dh_installchangelogs Changelog + dh_compress + dh_link + dh_installdeb + dh_gencontrol + dh_fixperms + dh_md5sums + dh_builddeb -debian/stamp/binary/libivy-java : package=libivy-java -debian/stamp/binary/libivy-java : debian/stamp/build - $(prebinary) - $(install_dir) $(bindir) - $(install_dir) $(javarep) - $(install_dir) $(javarep)/repository - $(install_dir) $(exampledir) - $(install_dir) $(testsdir) - $(install_dir) $(docdir) - $(install_dir) $(docbasedir) - $(install_dir) $(mandir) - ( cd src; jar cvfm $(javarep)/ivy.jar ../manifest fr ) - #cp -r src/fr $(javarep)/repository/ - cp tools/jprobe $(bindir)/jprobe - cp -r Changelog $(docdir) - gzip -9 $(docdir)/Changelog - (cd doc; make) - cp doc/ivy-java.1 $(mandir) - mkdirhier $(docdir)/doc/html/api - ( cd src; make docs DOCS=$(docdir)/doc/html/api ) - cp -R doc/ivy-java $(docdir)/doc/programmersguide - cp -R doc/ivy-java.pdf $(docdir)/programmersguide.pdf - gzip -9 $(mandir)/ivy-java.1 - $(install_nonex) debian/README.Debian $(docdir) - $(install_nonex) BUGS README $(docdir) - $(install_nonex) examples/*.java $(exampledir) - $(install_nonex) examples/*.txt $(exampledir) - $(install_nonex) examples/*.xml $(exampledir) - $(install_nonex) tests/*.java $(testsdir) - $(install_nonex) debian/ivy-java $(docbasedir) - $(install_nonex) debian/changelog $(docdir)/Changelog.debian - $(gzip) $(docdir)/Changelog.debian - $(postbinary) - touch $@ +# Build architecture-dependent files here. +binary-arch: build install + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install |