remove ia64 keywords
[gentoo-zh.git] / app-pda / ipadcharge / files / ipadcharge-9999-makefile.patch
blobc101d971386a08ce6b7b5004e1ad2a847f3adc07
1 --- Makefile.old 2013-06-15 10:34:21.560590739 +0800
2 +++ Makefile 2013-06-15 10:57:18.771590575 +0800
3 @@ -1,13 +1,19 @@
4 +prefix =/usr/
5 +exec_prefix=${prefix}
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
12 install: 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}
19 uninstall:
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
25 clean:
26 rm -f ipad_charge