File: rules

package info (click to toggle)
gauche-gtk 0.6+git20160927-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,428 kB
  • ctags: 1,357
  • sloc: ansic: 7,101; lisp: 5,659; sh: 2,829; makefile: 341
file content (33 lines) | stat: -rwxr-xr-x 1,100 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile-gmake -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DH_OPTIONS

%:
	dh $@ --with quilt

override_dh_auto_clean:
	dh_auto_clean
	rm -f configure config.sub config.guess VERSION
	gen_files=`cat src/GDKFILES src/GDKPIXBUFFILES src/GTKFILES src/PANGOFILES`; \
	gen_srcs="`echo $$gen_files | sed 's/\.h/.c/g'`"; \
	gen_stubs="`echo $$gen_files | sed 's/\.h/.stub/g'`"; \
	(cd src && rm -f $$gen_srcs $$gen_stubs gtk-lib.h gtk-lib.inits \
		gtk-lib.types gtk_head.c gtk_tail.c gauche-glib.c gauche-gdklib.c)

override_dh_auto_configure:
	ln -sf /usr/share/misc/config.sub .
	ln -sf /usr/share/misc/config.guess .
	autoconf -I /usr/share/gauche/0.9
        # dh_auto_configure -v -- --enable-gtkgl --enable-glgd-pango
	./configure --prefix=/usr --includedir=/usr/include \
	    --mandir=/usr/share/man --infodir=/usr/share/info \
	    --sysconfdir=/etc --localstatedir=/var \
	    --libdir=/usr/lib --libexecdir=/usr/lib \
	    --enable-gtkgl --enable-glgd-pango
	(cd src; $(MAKE) stubs)

override_dh_auto_test:
	echo "Don't invoke make check"