File: Makefile

package info (click to toggle)
pycode-browser 1%3A1.02%2Bgit20181006-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 6,800 kB
  • sloc: python: 2,919; xml: 152; makefile: 71
file content (27 lines) | stat: -rw-r--r-- 719 bytes parent folder | download | duplicates (4)
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
DESTDIR=
SHAREDIR=/usr/share/pycode-browser
BINDIR=$(DESTDIR)/usr/bin
APPDIR=$(DESTDIR)/usr/share/applications

all:
	make -C pybooksrc all DESTDIR=$(DESTDIR)

clean:
	rm -f *~
	make -C pybooksrc clean

install:
	mkdir -p $(DESTDIR)$(SHAREDIR)
	cp -a Code gui pycode-browser.py $(DESTDIR)$(SHAREDIR)
	cp pybooksrc/mapy.pdf $(DESTDIR)$(SHAREDIR)/
	find $(DESTDIR)$(SHAREDIR) -type f -exec chmod 466 {} \;
	mkdir $(BINDIR)
	echo "#! /bin/sh" > $(BINDIR)/pycode-browser
	echo "python $(SHAREDIR)/pycode-browser.py" >> $(BINDIR)/pycode-browser
	echo "#! /bin/sh" > $(BINDIR)/pycode-browser-book
	echo "evince $(SHAREDIR)/mapy.pdf" >> $(BINDIR)/pycode-browser-book
	mkdir -p $(APPDIR)
	install -m 644 *.desktop $(APPDIR)