| 1 | Descriptionscip-debian debian fsmark 3.3-5 fsmark/patches/makefile-install#Description.: Add install target with $(DESTDIR) support. |
| 2 | This patch adds a install target to the makefile which |
| 3 | installs the binary to $(DESTDIR)/usr/bin. |
| 4 | Authorscip-debian debian fsmark 3.3-5 fsmark/patches/makefile-install#Author.: Martin Steigerwald <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 5 | |
| 6 | Index: fsmark/Makefilescip-debian debian fsmark 3.3-5 fsmark/upstream/`fsmark/Makefile`: |
| 7 | =================================================================== |
| 8 | --- fsmark.orig/Makefilescip-debian debian fsmark 3.3-5 fsmark/upstream/`fsmark.orig/Makefile`: 2012-01-09 15:44:04.043832167 +0100 |
| 9 | +++ fsmark/Makefile 2012-01-09 16:31:32.335726257 +0100 |
| 10 | @@ -12,6 +12,8 @@ |
| 11 | COBJS= fs_mark.o lib_timing.o |
| 12 | CFLAGS= -O2 -Wall -D_FILE_OFFSET_BITS=64 |
| 13 | |
| 14 | +BIN=$(DESTDIR)/usr/bin |
| 15 | + |
| 16 | all: fs_mark |
| 17 | |
| 18 | fs_mark.o: fs_mark.c fs_mark.h |
| 19 | @@ -19,6 +21,10 @@ |
| 20 | fs_mark: fs_mark.o lib_timing.o |
| 21 | ${CC} -static -o fs_mark fs_mark.o lib_timing.o |
| 22 | |
| 23 | +install: |
| 24 | + install -d $(BIN) |
| 25 | + install ./fs_mark $(BIN) |
| 26 | + |
| 27 | test: fs_mark |
| 28 | ./fs_mark -d ${DIR1} -d ${DIR2} -s 51200 -n 4096 |
| 29 | ./fs_mark -d ${DIR1} -d ${DIR2} -s 51200 -n 4096 -r |