File: use_destdir_to_install

package info (click to toggle)
mp3check 0.8.7-4
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 816 kB
  • sloc: cpp: 14,731; makefile: 182; sh: 3
file content (15 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: use DESTDIR variable to install binary
Index: mp3check-0.8.7/Makefile
===================================================================
--- mp3check-0.8.7.orig/Makefile
+++ mp3check-0.8.7/Makefile
@@ -35,7 +35,8 @@ strip:
 	strip $(TARGET)
 
 install: all strip
-	cp $(TARGET) /usr/local/bin
+	mkdir -p $(DESTDIR)/usr/bin
+	cp $(TARGET) $(DESTDIR)/usr/bin
 
 PACKAGE = $(TARGET)-$(VERSION)
 dist: