mirror of https://git.code.sf.net/p/isync/isync
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
954 B
51 lines
954 B
#!/usr/bin/make -f |
|
|
|
CFLAGS = -Wall -g |
|
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
|
CFLAGS += -O0 |
|
else |
|
CFLAGS += -O2 |
|
endif |
|
|
|
build: build-stamp |
|
build-stamp: |
|
dh_testdir |
|
./configure --prefix=/usr --mandir=/usr/share/man |
|
$(MAKE) CFLAGS="$(CFLAGS)" |
|
touch build-stamp |
|
|
|
clean: |
|
dh_testdir |
|
dh_testroot |
|
rm -f build-stamp |
|
-$(MAKE) distclean |
|
dh_clean Makefile config.log config.status |
|
|
|
install: build |
|
dh_testdir |
|
dh_testroot |
|
dh_clean -k |
|
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 |
|
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
|
|
|