File: rules

package info (click to toggle)
gauche-gtk 0.6+git20160927-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,452 kB
  • sloc: ansic: 7,097; lisp: 5,659; sh: 2,829; makefile: 338
file content (30 lines) | stat: -rwxr-xr-x 952 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
#!/usr/bin/make -f
# -*- makefile-gmake -*-

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

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	rm -f configure 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:
        # 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"