isync/debian/rules

62 lines
1.3 KiB
Plaintext
Raw Normal View History

#!/usr/bin/make -f
PACKAGE=isync
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
build: build-stamp
build-stamp: patch-stamp
dh_testdir
touch configure.in ; touch Makefile.am ; touch aclocal.m4
touch Makefile.in ; touch configure
./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) --prefix=/usr --mandir=/usr/share/man
$(MAKE) CFLAGS="$(CFLAGS)"
touch build-stamp
clean: clean1 unpatch
clean1:
dh_testdir
dh_testroot
2003-03-26 03:33:15 +00:00
rm -f build-stamp
-$(MAKE) distclean
2003-03-26 03:33:15 +00:00
dh_clean Makefile config.log config.status
install: build
dh_testdir
dh_testroot
dh_clean -k
2003-03-26 03:33:15 +00:00
dh_installdirs usr/bin usr/share/man/man1
$(MAKE) DESTDIR=$(CURDIR)/debian/isync install
binary-indep: build install
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs ChangeLog
2003-03-26 03:33:15 +00:00
dh_installdocs AUTHORS NEWS README TODO
dh_installexamples isyncrc.sample
dh_installman
dh_installdebconf
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install clean1
include /usr/share/dpatch/dpatch.make