File: rules

package info (click to toggle)
fritzing-parts 0.9.3b-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 151,816 kB
  • sloc: python: 2,904; sh: 70; makefile: 18
file content (27 lines) | stat: -rwxr-xr-x 687 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
#!/usr/bin/make -f

DEBDIR=$(CURDIR)/debian

%:
	dh $@ --with python3

# Add here any variable or target overrides you need.

override_dh_clean:
	debian/fzp2copyright
	dh_clean

override_dh_install:
	dh_install
	find $(DEBDIR)/fritzing-parts/ -type d -empty -delete
	find $(DEBDIR)/fritzing-parts/usr/share/fritzing/parts/ \
		-type f -exec chmod -c -x {} \;
	find $(DEBDIR)/fritzing-parts/usr/share/fritzing/parts/svg/core/ \
		-name LICENSE.txt -delete

update-upstream-changelog:
	w3m -dump http://fritzing.org/download/history-changes/ \
	| sed '/^History of changes/,/First preview release/!d' > $(DEBDIR)/docs/changelog

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