File: rules

package info (click to toggle)
fritzing 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 42,144 kB
  • sloc: cpp: 98,203; xml: 2,203; python: 803; sh: 274; ansic: 26; makefile: 22
file content (36 lines) | stat: -rwxr-xr-x 925 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
#!/usr/bin/make -f

DPKG_EXPORT_BUILDFLAGS = 1
CFLAGS+=$(CPPFLAGS)
CXXFLAGS+=$(CPPFLAGS)

export QT_SELECT=qt5

DESTDIR=$(CURDIR)/debian/fritzing

%:
	dh $@

# Add here any variable or target overrides you need.

# Here is Helmut Grohne's patch (to close #886667)
$(DEB_BUILDDIR)/Makefile:
	dh_auto_configure --builddirectory=$(DEB_BUILDDIR)

override_dh_auto_clean:
	dh_auto_clean
	rm -f config.tests/boost/*.o config.tests/boost/boost \
	  config.tests/boost/Makefile .qmake.cache config.log \
	.qmake*

override_dh_install-arch:
	dh_install -a
	# install a custom shell script to launch fritzing
	# to close bug  #847655
	mv $(DESTDIR)/usr/bin/Fritzing $(DESTDIR)/usr/bin/fritzing.real
	install -m 755 debian/Fritzing $(DESTDIR)/usr/bin/fritzing
	sed -i -e 's/Exec=Fritzing/Exec=fritzing/' \
	    $(DESTDIR)/usr/share/applications/org.fritzing.Fritzing.desktop

get-packaged-orig-source:
	uscan --download-current-version