summaryrefslogtreecommitdiff
blob: 920b3dc27921650e9c7d0726f15b1b5bc53ef700 (plain)
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
--- bup-0.29.2/Makefile
+++ bup-0.29.2/Makefile
@@ -25,7 +25,7 @@
 os := $(shell ($(pf); uname | sed 's/[-_].*//') $(isok))
 os := $(call shout,$(os),Unable to determine OS)
 
-CFLAGS := -Wall -O2 -Werror -Wno-unknown-pragmas $(PYINCLUDE) $(CFLAGS)
+CFLAGS := -Wall -Wno-unknown-pragmas $(PYINCLUDE) $(CFLAGS)
 CFLAGS := -D_FILE_OFFSET_BITS=64 $(CFLAGS)
 SOEXT:=.so
 
@@ -93,10 +93,11 @@
 dest_docdir := $(DESTDIR)$(DOCDIR)
 dest_bindir := $(DESTDIR)$(BINDIR)
 dest_libdir := $(DESTDIR)$(LIBDIR)
+dest_sitedir := $(DESTDIR)$(SITEDIR)
 
 install: all
-	$(INSTALL) -d $(dest_bindir) \
-		$(dest_libdir)/bup $(dest_libdir)/cmd \
+	$(INSTALL) -d $(dest_bindir) $(dest_libdir) \
+		$(dest_sitedir)/bup $(dest_libdir)/cmd \
 		$(dest_libdir)/web $(dest_libdir)/web/static
 	test -z "$(man_roff)" || install -d $(dest_mandir)/man1
 	test -z "$(man_roff)" || $(INSTALL) -m 0644 $(man_roff) $(dest_mandir)/man1
@@ -109,10 +110,10 @@
 	done
 	$(INSTALL) -pm 0644 \
 		lib/bup/*.py \
-		$(dest_libdir)/bup
+		$(dest_sitedir)/bup
 	$(INSTALL) -pm 0755 \
 		lib/bup/*$(SOEXT) \
-		$(dest_libdir)/bup
+		$(dest_sitedir)/bup
 	$(INSTALL) -pm 0644 \
 		lib/web/static/* \
 		$(dest_libdir)/web/static/