davical/debian/rules
Andrew McMillan 336d24eeb6 Improving the sanity of the build procedures. We can now construct a
tidy .tar.gz release with this change.
2007-05-30 22:36:27 +12:00

59 lines
1.2 KiB
Makefile
Executable File

#!/usr/bin/make -f
#
# rules for RSCDS
#
package=rscds
dt=debian/$(package)
build: inc htdocs debian
$(checkdir)
make
touch build
clean:
$(checkdir)
make clean
rm -f build
-rm -rf $(dt) debian/files* core debian/substvars debian/html
binary-indep: checkroot build
$(checkdir)
-rm -rf $(dt)
dh_clean -k
# dh_installdebconf
install -d $(dt) $(dt)/DEBIAN $(dt)/etc/$(package) \
$(dt)/usr/share/$(package) $(dt)/usr/share/doc/$(package) \
$(dt)/var/lib/$(package)
cp -a htdocs $(dt)/usr/share/$(package)
cp -a dba $(dt)/usr/share/$(package)
cp -a inc $(dt)/usr/share/$(package)
cp -a locale $(dt)/usr/share/$(package)
# cp -a admin $(dt)/usr/share/$(package)
dh_installdocs
rm -rf $(dt)/usr/share/doc/$(package)/website/wiki
dh_installchangelogs
dh_fixperms
# install -m 1777 -d $(dt)/var/lib/$(package)/attachments
dh_installdeb
dpkg-gencontrol -P$(dt)
dpkg --build $(dt) ..
binary-arch: checkroot build
$(checkdir)
# There are no architecture-dependent files to be uploaded
# generated by this package. If there were any they would be
# made here.
define checkdir
test -f debian/rules
endef
binary: binary-indep binary-arch
checkroot:
$(checkdir)
test root = "`whoami`"
.PHONY: binary binary-arch binary-indep clean checkroot