#!/usr/bin/make -f # # $Id$ # # rules file for creating debian packages include /usr/share/cdbs/1/rules/debhelper.mk DEB_DH_ALWAYS_EXCLUDE = .svn:debian/tmp srcname = jpkg-tomcat85 package = jpkg-tomcat85 target = jpkg-tomcat85 SRCDIR = $(shell /bin/pwd)/src DESTDIR = $(shell /bin/pwd)/debian/$(package) DEB_INSTALL_DOCS_ALL := doc/LICENSE.txt doc/ReadMe.txt INSTALL_PROGRAM = install clean:: cd debian && rm -rf *.subvars *.log tmp $(package) rm -f common-install-indep common-install-indep:: mkdir -p debian/tmp cd $(DESTDIR) && mkdir -pv usr/share/jpkg-tomcat85 cp -a apache-tomcat-85 $(DESTDIR)/usr/share/jpkg-tomcat85/ cd $(DESTDIR) && rm -rf usr/share/jpkg-tomcat85/apache-tomcat-85/webapps/* chmod -R 0755 $(DESTDIR) touch common-install-indep