File: makefile

package info (click to toggle)
python-whiteboard 1.0%2Bgit20170915-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,568 kB
  • sloc: python: 1,702; xml: 61; makefile: 23; sh: 12
file content (26 lines) | stat: -rw-r--r-- 755 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
all: languages

languages:
	lrelease -qt5 trans/*.ts

clean:
	rm -f trans/*.qm
	rm -f stuff/*.pyc

install:
	mkdir -p $(DESTDIR)/usr/share/python-whiteboard
	mkdir -p $(DESTDIR)/usr/share/pixmaps
	mkdir -p $(DESTDIR)/usr/share/applications
	mkdir -p $(DESTDIR)/usr/bin
	mkdir -p $(DESTDIR)/usr/share/qt4/translations/
	cp python-whiteboard $(DESTDIR)/usr/bin
	cp stuff/* $(DESTDIR)/usr/share/python-whiteboard
	cp dist/pywb_pixmap.xpm $(DESTDIR)/usr/share/pixmaps
	cp dist/python-whiteboard.desktop $(DESTDIR)/usr/share/applications
	cp trans/*.qm $(DESTDIR)/usr/share/qt4/translations/
	# resize the icon
	f=$(DESTDIR)/usr/share/pixmaps/pywb_pixmap.xpm; \
	   convert -resize 31x32 $$f $$f.tmp && mv $$f.tmp $$f

deb:
	fakeroot dpkg-buildpackage -us -uc