File: rules

package info (click to toggle)
pcb-rnd 1.1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 20,704 kB
  • ctags: 20,051
  • sloc: ansic: 160,748; sh: 5,457; yacc: 4,875; makefile: 1,811; awk: 1,296; lex: 617; perl: 520; lisp: 208; tcl: 90; xml: 60; ruby: 41; python: 34
file content (86 lines) | stat: -rwxr-xr-x 2,792 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/make -f

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@ --parallel

# --symbols is to build with -g
#
# I link everything into the main program (--buildin-...) including the
# user-interface: gtk. At some point I may add lesstif as an option. Then
# shipping those as separate plugins would make sense.
#
# Currently turning on the toporouter produces compilation errors, so I turn it
# off. Turning on bison fails to ./configure, so I turn THAT off as well. bboard
# triggers a bug in the build system: cairo.h is not found; I turn that off.
override_dh_auto_configure:
	./configure				\
           --symbols				\
           --all=buildin			\
           --prefix=/usr			\
           --buildin-hid_batch			\
           --buildin-fp_fs			\
           --buildin-import_netlist		\
           --buildin-import_sch			\
           --buildin-io_pcb			\
           --buildin-io_lihata			\
           --buildin-io_kicad			\
           --buildin-gpmi			\
           --buildin-boardflip			\
           --buildin-polystitch			\
           --buildin-import_dsn			\
           --buildin-export_dxf			\
           --buildin-export_openscad		\
           --buildin-export_dsn			\
           --buildin-export_ipcd356		\
           --disable-toporouter			\
           --disable-bison			\
           --disable-export_bboard		\
           --buildin-hid_gtk			\
           --disable-hid_lesstif		\
						\
           --LDFLAGS='$(LDFLAGS)'		\
           --CFLAGS='$(CFLAGS) $(CPPFLAGS)'

# Needed to retain src_plugins/export_dxf/README.orig
override_dh_clean:
	dh_clean -XREADME.orig

override_dh_auto_clean:
        # 'make clean' and 'make distclean' currently fail after an incomplete
        # clean, so I do this myself
	find . \( -name *.o -o -name *.so -o -name *_conf_fields.h \) -delete
	rm -f Makefile.conf
	rm -f config.h
	rm -f scconfig/Rev.stamp
	rm -f scconfig/config.cache
	rm -f scconfig/config.log
	rm -f scconfig/configure
	rm -f scconfig/core
	rm -f scconfig/cquote
	rm -f scconfig/revtest
	rm -f src/Makefile
	rm -f src/buildin.c
	rm -f src/compat_inc.h
	rm -f util/gsch2pcb-rnd/Makefile
	rm -f util/gsch2pcb-rnd/fp_init.c
	rm -f util/gsch2pcb-rnd/fp_init.h
	rm -f doc-rnd/conf/tree/appearance_loglevels.html
	rm -f src/conf_core_fields.h
	rm -f src/conf_internal.c
	rm -f src/generated_lists.h
	rm -f src/pcb-rnd
	rm -f src_3rd/sphash/sphash
	rm -f src_plugins/dbus/dbus-introspect.h
	rm -f src_plugins/hid_gtk/menu_lht.c
	rm -f src_plugins/hid_lesstif/menu_lht.c
	rm -f src_plugins/query/fields_sphash.c
	rm -f src_plugins/query/fields_sphash.h
	rm -f util/gsch2pcb-rnd/gsch2pcb-rnd
	rm -f src_3rd/gts/Makefile

# I want packages to go here regardless of how many packages I'm building
override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp