summaryrefslogtreecommitdiff
path: root/graphics/nathive/files/patch-makefile
blob: 5b5d631993daa88a8820e98e4f52b8102b467bf9 (plain) (blame)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
--- makefile.orig	2010-10-12 23:16:42.000000000 +0400
+++ makefile	2014-05-11 16:16:28.000000000 +0400
@@ -84,41 +84,36 @@
 	@rm -rf doc/build/html/_sources
 
 root:
-ifneq ($(shell whoami), root)
-	@echo "\n**** ERROR: You must be root\n"
-	@exit 1
-endif
+	true
 
 
 dirs:
-	mkdir -p $(BASE)$(APP)
-	mkdir -p $(BASE)$(BIN)
-	mkdir -p $(BASE)$(DOC)
-	mkdir -p $(BASE)$(LAUNCH)
+	mkdir -p $(DESTDIR)$(BASE)$(APP)
+	mkdir -p $(DESTDIR)$(BASE)$(BIN)
+	mkdir -p $(DESTDIR)$(BASE)$(LAUNCH)
+	mkdir -p $(DESTDIR)$(BASE)$(DOC)
 
 
 install: root dirs unpyc
 	# Shared files.
-	cp    nathive.py    $(BASE)$(APP)
-	cp    AUTHORS       $(BASE)$(APP)
-	cp    COPYING       $(BASE)$(APP)
-	cp    COPYING-BRIEF $(BASE)$(APP)
-	cp    META          $(BASE)$(APP)
-	cp -r cfg/          $(BASE)$(APP)
-	cp -r img/          $(BASE)$(APP)
-	cp -r nathive/      $(BASE)$(APP)
-	cp -r palettes/     $(BASE)$(APP)
-	cp -r po/           $(BASE)$(APP)
-	chmod -R 755        $(BASE)$(APP)
-	# Exclude source files.
-	find $(BASE)$(APP) -name "*.c" -delete
+	cp    nathive.py    $(DESTDIR)$(BASE)$(APP)
+	cp    AUTHORS       $(DESTDIR)$(BASE)$(APP)
+	cp    COPYING       $(DESTDIR)$(BASE)$(APP)
+	cp    COPYING-BRIEF $(DESTDIR)$(BASE)$(APP)
+	cp    META          $(DESTDIR)$(BASE)$(APP)
+	cp -R cfg           $(DESTDIR)$(BASE)$(APP)
+	cp -R img           $(DESTDIR)$(BASE)$(APP)
+	cp -R nathive       $(DESTDIR)$(BASE)$(APP)
+	cp -R palettes      $(DESTDIR)$(BASE)$(APP)
+	cp -R po            $(DESTDIR)$(BASE)$(APP)
+	chmod -R 755        $(DESTDIR)$(BASE)$(APP)
 	# Binary and launcher.
-	install -m 755 -T nathive.sh      $(BASE)$(BIN)/nathive
-	install -m 644    nathive.desktop $(BASE)$(LAUNCH)
+	install -m 755    nathive.sh      $(DESTDIR)$(BASE)$(BIN)/nathive
+	install -m 644    nathive.desktop $(DESTDIR)$(BASE)$(LAUNCH)
 	# Documentation.
-	install -m 644 AUTHORS $(BASE)$(DOC)
-	install -m 644 COPYING $(BASE)$(DOC)
-	install -m 644 README  $(BASE)$(DOC)
+	install -m 644 AUTHORS $(DESTDIR)$(BASE)$(DOC)
+	install -m 644 COPYING $(DESTDIR)$(BASE)$(DOC)
+	install -m 644 README  $(DESTDIR)$(BASE)$(DOC)
 
 
 uninstall: root