File: 06-viewer-install.patch

package info (click to toggle)
coz-profiler 0.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 22,528 kB
  • sloc: ansic: 188,045; javascript: 20,133; cpp: 6,852; makefile: 214; python: 118; sh: 88
file content (37 lines) | stat: -rw-r--r-- 1,315 bytes parent folder | download
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
Description: Align viewer makefile with common.mk
Author: LluĂ­s Vilanova <llvilanovag@gmail.com>

---
Bug-Debian: https://bugs.debian.org/846538
Last-Update: 2016-12-02

--- coz-profiler-0.0.git.20161130T1802.orig/common.mk
+++ coz-profiler-0.0.git.20161130T1802/common.mk
@@ -2,6 +2,7 @@ DESTDIR   ?=
 prefix    ?= /usr
 bindir    := $(prefix)/bin
 pkglibdir := $(prefix)/lib/coz-profiler
+pkgdatadir:= $(prefix)/share/coz-profiler
 incdir    := $(prefix)/include
 mandir    := $(prefix)/share/man
 man1dir   := $(mandir)/man1
@@ -95,5 +95,5 @@ $(OTHER_TARGETS): $(OBJS)
 # Build any recursive targets in subdirectories
 $(RECURSIVE_TARGETS)::
 	@for dir in $(DIRS); do \
-	$(MAKE) -C $$dir --no-print-directory $@ MAKEPATH="$(MAKEPATH)/$$dir" || exit 1; \
+	$(MAKE) -C $$dir $@ MAKEPATH="$(MAKEPATH)/$$dir" || exit 1; \
 	done
 
 include $(ROOT)/deps.mk
--- coz-profiler-0.0.git.20161130T1802.orig/viewer/Makefile
+++ coz-profiler-0.0.git.20161130T1802/viewer/Makefile
@@ -7,3 +7,8 @@ all:: js/ui.js
 js/ui.js: $(wildcard ts/*.ts) tsconfig.json
 	@echo $(LOG_PREFIX) Building profile viewer $(LOG_SUFFIX)
 	@npm install > /dev/null
+
+PATHS = $(filter-out Makefile node_modules README.md,$(wildcard *))
+install::
+	find $(PATHS) -type f -exec install --mode=644 -D "{}" $(DESTDIR)$(pkgdatadir)/viewer/"{}" \;
+