summaryrefslogtreecommitdiff
blob: 6e28b950c5109db4255277f40a85032fa7af2835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- magic-7.5.202/rules.mak
+++ magic-7.5.202/rules.mak
@@ -43,9 +43,9 @@
 	${RM} ${MODULE}
 	${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} lib${MODULE}.o ${EXTRA_LIBS} -o ${MODULE} ${LIBS}
 
-${BINDIR}/${MODULE}${EXEEXT}: ${MODULE}${EXEEXT}
-	${RM} ${BINDIR}/${MODULE}${EXEEXT}
-	${CP} ${MODULE}${EXEEXT} ${BINDIR}
+${DESTDIR}${BINDIR}/${MODULE}${EXEEXT}: ${MODULE}${EXEEXT}
+	${RM} ${DESTDIR}${BINDIR}/${MODULE}${EXEEXT}
+	${CP} ${MODULE}${EXEEXT} ${DESTDIR}${BINDIR}
 
 ../database/database.h: ../database/database.h.in
 	@echo --- making header file database/database.h