Files
xdf/xdf-makefile.patch

29 lines
680 B
Diff

--- xdf1/xdf.Makefile.orig 2010-12-15 12:41:27.000000000 +0100
+++ xdf1/xdf.Makefile 2010-12-16 01:20:43.000000000 +0100
@@ -1,8 +1,11 @@
+OPTFLAGS=
+DESTDIR=
+PREFIX=/usr/local
default: compile
compile: xdf.c
- $(CC) -I../inc -o xdf xdf.c -s
+ $(CC) -I../inc $(OPTFLAGS) -o xdf xdf.c
test:
./xdf -V -M -A -S -s -f -h -H
@@ -25,10 +28,8 @@
ls -l /usr/share/man/man1/xdf.1
install_Linux:
- cp xdf /usr/local/bin
- ls -l /usr/local/bin/xdf
- cp xdf.1 /usr/share/man/man1
- ls -l /usr/share/man/man1/xdf.1
+ install -D -m0755 xdf $(DESTDIR)$(PREFIX)/bin/xdf
+ install -D -m0644 xdf.1 $(DESTDIR)$(PREFIX)/share/man/man1/xdf.1
install_SunOS:
cp xdf /usr/local/bin