#!/usr/bin/make -f # # $Id: rules 12 2014-01-09 16:16:00Z lech $ # # rules file for creating debian packages # include /usr/share/cdbs/1/rules/debhelper.mk DEB_DH_ALWAYS_EXCLUDE := .svn:debian/tmp srcname = jquery-pkg-jquery-mobile srcdir = $(shell pwd)/src package = jquery-pkg-jquery-mobile demopackage = jquery-pkg-jquery-mobile-demos target = jquery-pkg-jquery-mobile SRCDIR = $(shell /bin/pwd)/src DESTDIR = $(shell /bin/pwd)/debian/$(package) #DEB_INSTALL_DOCS_ALL := doc/ReadMe.txt INSTALL_PROGRAM = install VERSION=$(shell /usr/share/pba-cbs/sh/get_deb_version.sh $(srcdir)) clean:: cd debian && rm -rf *.subvars *.log jquery-pkg-jquery-mobile tmp rm -f common-install-indep common-install-indep:: rm -rf debian/$(package) debian/$(demopackage) mkdir -p debian/$(package) debian/$(demopackage) # demos go in separate package mkdir -pv debian/$(demopackage)/usr/share/jquery-pkg/jquery cp -a jquery-mobile/demos debian/$(demopackage)/usr/share/jquery-pkg/jquery/ # rest goes in main package mkdir -pv debian/$(package)/usr/share/jquery-pkg/jquery cp -a jquery-mobile/jquery* jquery-mobile/images debian/$(package)/usr/share/jquery-pkg/jquery/ chmod -R 0755 debian/$(package) debian/$(demopackage) touch common-install-indep