File: rules

package info (click to toggle)
checkpw 1.02-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 764 kB
  • sloc: ansic: 3,943; makefile: 338; sh: 189
file content (16 lines) | stat: -rwxr-xr-x 358 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

%:
	dh $@

execute_before_dh_auto_configure:
	for i in conf-*; do \
	  test -e $${i%'{orig}'}'{orig}' || cp -v $$i $$i'{orig}'; \
	done
	echo '$(CC) $(CFLAGS)' >conf-cc
	echo '$(CC) $(LDFLAGS)' >conf-ld
	echo /usr >conf-home

execute_before_dh_clean:
	rm -f `cat TARGETS`
	for i in `ls *'{orig}' || :`; do mv -vf $$i $${i%'{orig}'}; done