1 --- Makefile.old 2013-06-15 10:34:21.560590739 +0800
2 +++ Makefile 2013-06-15 10:57:18.771590575 +0800
6 +bindir =${exec_prefix}/bin
7 +rulesdir =/lib/udev/rules.d
9 ipad_charge: ipad_charge.c
10 gcc -Wall -Wextra ipad_charge.c -lusb-1.0 -o ipad_charge
13 - install -o root -g root -m 755 -s ipad_charge /usr/bin/
14 - install -o root -g root -m 644 95-ipad_charge.rules /etc/udev/rules.d/
15 + mkdir -p ${DESTDIR}${bindir} ${DESTDIR}${rulesdir}
16 + install -o root -g root -m 755 -s ipad_charge ${DESTDIR}${bindir}
17 + install -o root -g root -m 644 95-ipad_charge.rules ${DESTDIR}${rulesdir}
20 - rm -rf /usr/bin/ipad_charge
21 - rm -rf /etc/udev/rules.d/95-ipad_charge.rules
22 + rm -rf ${DESTDIR}${bindir}/ipad_charge
23 + rm -rf ${DESTDIR}${rulesdir} /95-ipad_charge.rules