File: rules

package info (click to toggle)
crafty 23.4-9
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 3,292 kB
  • sloc: ansic: 30,650; cpp: 5,829; makefile: 890; sh: 178; perl: 30
file content (38 lines) | stat: -rwxr-xr-x 713 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/make -f

#export DH_VERBOSE=1

include /usr/share/dpkg/architecture.mk

TARGET := darwin

ifneq (,$(findstring amd64,$(DEB_BUILD_ARCH)))
TARGET := linux-amd64
endif

%:
	dh $@

override_dh_auto_build:
	$(MAKE) $(TARGET)

override_dh_auto_clean:
	$(MAKE) clean
	rm -f *.o crafty game* log* position* books.bin book.bin book.lrn *.gcno lala
	rm -rf debian/tmp

override_dh_auto_test:
	@echo "Little Test"
	@echo "sd 15" > lala
	@echo "e4" >> lala
	@echo "end" >> lala
	@echo "input lala" | ./crafty

override_dh_installchangelogs:
	mkdir -p debian/x
	grep '^ \*' main.c > debian/x/changelog
	dh_installchangelogs debian/x/changelog
	rm debian/x/changelog

override_dh_compress:
	dh_compress -Xcrafty.hlp