2013-04-01 21:23:32 +02:00
|
|
|
APP=pybitmessage
|
2013-06-08 00:58:28 +02:00
|
|
|
VERSION=0.3.3-2
|
2013-06-03 21:13:52 +02:00
|
|
|
DEST_SHARE=$(DESTDIR)/usr/share
|
2013-05-07 11:02:28 +02:00
|
|
|
DEST_APP=$(DEST_SHARE)/$(APP)
|
2013-04-01 21:23:32 +02:00
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
debug:
|
|
|
|
|
|
|
|
source:
|
2013-06-03 21:13:52 +02:00
|
|
|
tar -cvzf ../$(APP)_$(VERSION).orig.tar.gz ../$(APP)-$(VERSION) --exclude-vcs
|
2013-04-01 21:23:32 +02:00
|
|
|
|
|
|
|
install:
|
2013-06-04 22:21:53 +02:00
|
|
|
mkdir -m 755 -p $(DESTDIR)/usr/bin
|
2013-05-07 11:02:28 +02:00
|
|
|
mkdir -m 755 -p $(DEST_APP)
|
|
|
|
mkdir -m 755 -p $(DEST_SHARE)/applications
|
|
|
|
mkdir -m 755 -p $(DEST_APP)/images
|
|
|
|
mkdir -m 755 -p $(DEST_APP)/pyelliptic
|
|
|
|
mkdir -m 755 -p $(DEST_APP)/socks
|
|
|
|
mkdir -m 755 -p $(DEST_APP)/bitmessageqt
|
|
|
|
mkdir -m 755 -p $(DEST_SHARE)/pixmaps
|
|
|
|
mkdir -m 755 -p $(DEST_SHARE)/icons
|
|
|
|
mkdir -m 755 -p $(DEST_SHARE)/icons/hicolor
|
|
|
|
mkdir -m 755 -p $(DEST_SHARE)/icons/hicolor/scalable
|
|
|
|
mkdir -m 755 -p $(DEST_SHARE)/icons/hicolor/scalable/apps
|
|
|
|
mkdir -m 755 -p $(DEST_SHARE)/icons/hicolor/24x24
|
|
|
|
mkdir -m 755 -p $(DEST_SHARE)/icons/hicolor/24x24/apps
|
2013-04-01 21:23:32 +02:00
|
|
|
|
2013-05-07 11:02:28 +02:00
|
|
|
install -m 644 src/*.ui $(DEST_APP)
|
|
|
|
install -m 644 src/*.py $(DEST_APP)
|
|
|
|
install -m 644 src/*.qrc $(DEST_APP)
|
2013-04-01 21:23:32 +02:00
|
|
|
|
2013-05-07 11:02:28 +02:00
|
|
|
install -m 644 src/images/*.png $(DEST_APP)/images
|
|
|
|
install -m 644 src/images/*.ico $(DEST_APP)/images
|
|
|
|
install -m 644 src/pyelliptic/*.py $(DEST_APP)/pyelliptic
|
|
|
|
install -m 644 src/socks/*.py $(DEST_APP)/socks
|
|
|
|
install -m 644 src/bitmessageqt/*.py $(DEST_APP)/bitmessageqt
|
2013-06-04 22:13:16 +02:00
|
|
|
install -m 755 debian/pybm $(DESTDIR)/usr/bin/$(APP)
|
2013-04-01 21:23:32 +02:00
|
|
|
|
2013-05-09 23:31:26 +02:00
|
|
|
install -m 644 desktop/$(APP).desktop $(DEST_SHARE)/applications/$(APP).desktop
|
2013-05-07 11:02:28 +02:00
|
|
|
install -m 644 src/images/can-icon-24px.png $(DEST_SHARE)/icons/hicolor/24x24/apps/$(APP).png
|
|
|
|
install -m 644 desktop/can-icon.svg $(DEST_SHARE)/icons/hicolor/scalable/apps/$(APP).svg
|
|
|
|
install -m 644 desktop/can-icon.svg $(DEST_SHARE)/pixmaps/$(APP).svg
|
2013-04-01 21:23:32 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf debian/$(APP)
|
|
|
|
rm -f ../$(APP)_*.deb ../$(APP)_*.asc ../$(APP)_*.dsc ../$(APP)*.changes
|
|
|
|
rm -f *.sh~ src/*.pyc src/socks/*.pyc src/pyelliptic/*.pyc
|
|
|
|
rm -f *.deb \#* \.#* debian/*.log debian/*.substvars
|
|
|
|
rm -f Makefile~
|