File: separate_pyinstall.diff

package info (click to toggle)
monajat 4.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,972 kB
  • sloc: python: 1,610; makefile: 131; xml: 6
file content (34 lines) | stat: -rw-r--r-- 983 bytes parent folder | download | duplicates (3)
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
Description: Separate python build/install calls from Makefile
Author: أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy@sabily.org>
--- a/Makefile
+++ b/Makefile
@@ -15,21 +15,18 @@
 RM := $(shell which rm | egrep '/' | sed  's/\s//g')
 
 
-all: $(TARGETS) db
+all: $(TARGETS)
 
 icons:
 	@for i in 96 72 64 48 36 32 24 22 16; do \
 		convert -background none monajat-data/$(APPNAME).svg -resize $${i}x$${i} $(APPNAME)-$${i}.png; \
 	done
-db:
-	@$(PYTHON) gen-db.py
 		
 pos:
 	@$(MAKE) -C po all
 
 install: all
 	@$(ECHO) "*** Installing..."
-	@$(PYTHON) setup.py install -O2 --root $(DESTDIR)
 	@$(ECHO) "Copying: $(APPNAME)-autostart.desktop -> $(XDGDIR)/autostart/"
 	@$(INSTALL) -d $(XDGDIR)/autostart/
 	@$(INSTALL) -m 0644 $(APPNAME)-autostart.desktop $(XDGDIR)/autostart/
@@ -95,6 +92,4 @@
 	@$(RM) -f */*.pyc
 	@$(ECHO) "- Removing: $(APPNAME)-*.png"
 	@$(RM) -f $(APPNAME)-*.png
-	@$(ECHO) "- Removing: monajat-data/data.db"
-	@$(RM) -f monajat-data/data.db