File: fix-makefile

package info (click to toggle)
dov4l 0.9%2Brepack-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, jessie, jessie-kfreebsd, sid, stretch, trixie
  • size: 116 kB
  • ctags: 31
  • sloc: ansic: 940; makefile: 61
file content (16 lines) | stat: -rw-r--r-- 463 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Fix install target in Makefile to comply with Debian build procedures.
--- a/Makefile
+++ b/Makefile
@@ -11,10 +11,8 @@
 	$(CC) -Wall -W $(OBJS) $(LDFLAGS) -o dov4l
 
 install: dov4l
-	cp dov4l /usr/bin
-	install -D dov4l.1 /usr/man/man1/dov4l.1
-	rm -f /usr/man/man1/dov4l.1.gz
-	gzip -9 /usr/man/man1/dov4l.1
+	install -p -D dov4l $(DESTDIR)/usr/bin/dov4l
+	install -p -D dov4l.1 $(DESTDIR)/usr/share/man/man1/dov4l.1
 
 uninstall: clean
 	rm -f /usr/bin/dov4l