rules

来自「Ubuntu packages of security software。 相」· 代码 · 共 97 行

TXT
97
字号
#!/usr/bin/make -f#	Debian rules file for nmap, requires the debhelper package.#	Crafted by Bdale Garbee, bdale@gag.com, 8 December 1997.#	Modified and maintained by LaMont Jones, lamont@debian.org.CFLAGS=-O2 -Wall -D_GNU_SOURCECXXFLAGS=-O2 -Wall -D_GNU_SOURCEifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))CFLAGS += -gCXXFLAGS += -gendififneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))STRIP=yendif# This has to be exported to make some magic below work.export DH_OPTIONSbuild: build-stampbuild-stamp:	dh_testdir	cd libpcap && ln -s ../config.sub ../config.guess .	cd nbase && ln -s ../config.sub ../config.guess .	CXXFLAGS="$(CXXFLAGS)" CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --mandir='$${prefix}/share/man' --enable-ipv6	#cd libpcap && CXXFLAGS=$(CXXFLAGS) CFLAGS=$(CFLAGS) ./configure --prefix=/usr --mandir='$${prefix}/share/man'	make 	touch build-stampclean:	dh_testdir	dh_testroot	rm -f build-stamp	-cd libpcap && make -if Makefile.in distclean && \	    rm -f *.o && rm config.guess config.sub	-cd nmapfe && make -if Makefile.in distclean	-cd nbase && make -if Makefile.in clean && rm config.guess config.sub	-rm nbase/*.o	-make -if Makefile.in distclean	dh_cleaninstall: DH_OPTIONS=install: build	dh_testdir	dh_testroot	dh_clean -k	dh_installdirs	$(MAKE) prefix=`pwd`/debian/tmp/usr install	#ln -sf nmapfe.1 `pwd`/debian/tmp/usr/share/man/man1/xnmap.1	mkdir -p debian/tmp/usr/share/pixmaps	install -m 644 debian/nmapfe.xpm debian/tmp/usr/share/pixmaps	dh_movefiles# This single target is used to build all the packages, all at once, or# one at a time. So keep in mind: any options passed to commands here will# affect _all_ packages. Anything you want to only affect one package# should be put in another target, such as the install target.binary-common:	dh_testdir	dh_testroot	dh_installdirs	dh_installdocs docs/*.txt# install takes care of manpages.#	dh_installmanpages pcap.3	dh_undocumented	dh_desktop	dh_installchangelogs CHANGELOG	[ -n "$(STRIP)" ] || dh_strip	dh_compress	dh_fixperms 	dh_installdeb	dh_shlibdeps	dh_gencontrol	dh_md5sums	dh_builddeb# Build architecture independant packages using the common target.binary-indep: build install# (Uncomment this next line if you have such packages.)#        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common# Build architecture dependant packages using the common target.binary-arch: build install	$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common# Any other binary targets build just one binary package at a time.binary-%: build install	make -f debian/rules binary-common DH_OPTIONS=-p$*binary: binary-indep binary-archbinary: binary-indep binary-arch.PHONY: build clean install binary-common binary-indep binary-arch binary

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?