?? rules
字號(hào):
#!/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# These are used for cross-compiling and for saving the configure script# from having to guess our platform (since we know it already)DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)CFLAGS = -Wall -gifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0else CFLAGS += -O2endififeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -sendif# shared library versions, option 1version=2.0.5major=2# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so#version=`ls src/.libs/lib*.so.* | \# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`#major=`ls src/.libs/lib*.so.* | \# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`config.status: configure dh_testdir # Add here commands to configure the package. ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usrbuild: build-stampbuild-stamp: config.status dh_testdir $(MAKE) touch build-stampclean: dh_testdir dh_testroot rm -f build-stamp -$(MAKE) distcleanifneq "$(wildcard /usr/share/misc/config.sub)" "" cp -f /usr/share/misc/config.sub config.subendififneq "$(wildcard /usr/share/misc/config.guess)" "" cp -f /usr/share/misc/config.guess config.guessendif dh_cleaninstall: build dh_testdir dh_testroot dh_clean -k dh_installdirs $(MAKE) install DESTDIR=$(CURDIR)/debian/tmpbinary-indep: build installbinary-arch: build install dh_testdir dh_testroot# 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 ChangeLog dh_link dh_strip dh_compress dh_fixperms dh_makeshlibs dh_installdeb# dh_perl dh_shlibdeps dh_gencontrol dh_md5sums dh_builddebbinary: binary-indep binary-arch.PHONY: build clean binary-indep binary-arch binary install
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -