File: rules.common

package info (click to toggle)
apache 1.3.0-5
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 6,488 kB
  • ctags: 6,702
  • sloc: ansic: 47,562; sh: 3,221; makefile: 1,382; perl: 1,346; cpp: 55
file content (23 lines) | stat: -rw-r--r-- 835 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23



build-debmake:
	@echo -e "\n--- emulating debmake ---\n"
	cd debian/tmp; md5sum $$(find * -type f -not -regex "DEBIAN/.*") \
		> DEBIAN/md5sums
	echo; dpkg -l gcc "libc6*" binutils ldso make dpkg-dev $(BUILDINFO) \
		| awk '$$1 == "ii" { printf("%s-%s\n", $$2, $$3) }' \
		| tee debian/tmp/usr/doc/$(package)/buildinfo.Debian; echo


clean-common: $(checkdir)
	rm -f debian/files debian/*substvars*
	rm -rf $$(find debian -type d -mindepth 1)
	find . \( -type f -size 0 -maxdepth 1 \) -a \
		\( -name "configure*" -o -name "build*" \) -exec rm {} ";"
	find . \( -name "*.bak" -o -name "*~" \) -exec rm {} ";"
	find . \( -name "*.o" -o -name "*.so" -o -name "*.a" \) -exec rm {} ";"
	find debian \( -name "*rm" -o -name "*inst" \) -exec chmod +x {} ";"
	find debian \( -name "init.d" -o -name "*.daily" \) \
		-exec chmod +x {} ";"