mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
93 lines
1.8 KiB
Makefile
Executable File
93 lines
1.8 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
# Sample debian/rules that uses debhelper.
|
|
# GNU copyright 1997 to 1999 by Joey Hess.
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
#export DH_VERBOSE=1
|
|
|
|
# This is the debhelper compatability version to use.
|
|
export DH_COMPAT=2
|
|
|
|
CFLAGS = -Wall -g
|
|
|
|
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
|
CFLAGS += -O0
|
|
else
|
|
CFLAGS += -O2
|
|
endif
|
|
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
|
INSTALL_PROGRAM += -s
|
|
endif
|
|
|
|
Local.mak:
|
|
|
|
dh_testdir
|
|
prefix=/usr CFLAGS="$(CFLAGS)" QTDIR="/usr/share/qt3" ./configure
|
|
# Don't use scripts
|
|
-test -f debian/postinst && mv debian/postinst debian/postinst.bak
|
|
-test -f debian/postrm && mv debian/postrm debian/postrm.bak
|
|
|
|
build: build-stamp
|
|
build-stamp: Local.mak
|
|
|
|
dh_testdir
|
|
# $(MAKE) -j 4
|
|
$(MAKE)
|
|
touch build-stamp
|
|
|
|
clean:
|
|
dh_testdir
|
|
dh_testroot
|
|
rm -f build-stamp
|
|
|
|
-$(MAKE) distclean
|
|
-test -f debian/postinst.bak && mv debian/postinst.bak debian/postinst
|
|
-test -f debian/postrm.bak && mv debian/postrm.bak debian/postrm
|
|
dh_clean
|
|
|
|
install: build
|
|
dh_testdir
|
|
dh_testroot
|
|
dh_clean -k
|
|
dh_installdirs
|
|
|
|
$(MAKE) install destdir=$(CURDIR)/debian/tmp
|
|
|
|
# Build architecture-independent files here.
|
|
binary-indep: build install
|
|
# We have nothing to do by default.
|
|
|
|
# Build architecture-dependent files here.
|
|
binary-arch: build install
|
|
dh_testdir
|
|
dh_testroot
|
|
dh_install --list-missing
|
|
# dh_installdebconf
|
|
dh_installdocs
|
|
# dh_installexamples
|
|
dh_installmenu
|
|
# dh_installlogrotate
|
|
# dh_installemacsen
|
|
# dh_installpam
|
|
# dh_installmime
|
|
# dh_installinit
|
|
# dh_installcron
|
|
dh_installman
|
|
# dh_installinfo
|
|
# dh_undocumented
|
|
dh_installchangelogs
|
|
dh_link
|
|
dh_strip
|
|
dh_compress
|
|
dh_fixperms
|
|
dh_makeshlibs
|
|
dh_installdeb
|
|
# dh_perl
|
|
dh_shlibdeps
|
|
dh_gencontrol
|
|
dh_md5sums
|
|
dh_builddeb
|
|
|
|
binary: binary-indep binary-arch
|
|
.PHONY: build clean binary-indep binary-arch binary install configure
|