ObjFW  Check-in [bfc6191ea1]

Overview
Comment:Better way to install utils with binary prefix.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: bfc6191ea12da6fdb39c0438cfb89ac7923859f33258d0aba6f7cf7ae219183f
User & Date: js on 2012-11-26 23:28:03
Other Links: manifest | tags
Context
2012-11-28
18:00
Update PLATFORMS.md. check-in: c6a72664f6 user: js tags: trunk
2012-11-26
23:28
Better way to install utils with binary prefix. check-in: bfc6191ea1 user: js tags: trunk
23:19
Implement forwarding target for Apple/ARM. check-in: 5927b80b4e user: js tags: trunk
Changes

Modified utils/Makefile from [93a10e87e2] to [dcb4102d42].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
include ../buildsys.mk
include ../extra.mk

DISTCLEAN = objfw-config

${BIN_PREFIX}objfw-config:
	cp objfw-config ${BIN_PREFIX}objfw-config

${BIN_PREFIX}objfw-compile:
	cp objfw-compile ${BIN_PREFIX}objfw-compile

install-extra: ${BIN_PREFIX}objfw-config ${BIN_PREFIX}objfw-compile
	for i in ${BIN_PREFIX}objfw-config ${BIN_PREFIX}objfw-compile; do \
		${INSTALL_STATUS}; \
		if ${MKDIR_P} ${DESTDIR}${bindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${bindir}/$$i; then \
			${INSTALL_OK}; \
		else \
			${INSTALL_FAILED}; \
		fi \
	done

uninstall-extra:
	for i in ${BIN_PREFIX}objfw-config ${BIN_PREFIX}objfw-compile; do \
		if test -f ${DESTDIR}${bindir}/$$i; then \
			if rm -f ${DESTDIR}${bindir}/$$i; then \
				${DELETE_OK}; \
			else \
				${DELETE_FAILED}; \
			fi \
		fi \
	done





|
|
<
<
<
<
<
<

|







|
|
|






1
2
3
4
5
6
7






8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
include ../buildsys.mk
include ../extra.mk

DISTCLEAN = objfw-config

install-extra: objfw-config objfw-compile
	for i in objfw-config objfw-compile; do \






		${INSTALL_STATUS}; \
		if ${MKDIR_P} ${DESTDIR}${bindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${bindir}/${BIN_PREFIX}$$i; then \
			${INSTALL_OK}; \
		else \
			${INSTALL_FAILED}; \
		fi \
	done

uninstall-extra:
	for i in objfw-config objfw-compile; do \
		if test -f ${DESTDIR}${bindir}/${BIN_PREFIX}$$i; then \
			if rm -f ${DESTDIR}${bindir}/${BIN_PREFIX}$$i; then \
				${DELETE_OK}; \
			else \
				${DELETE_FAILED}; \
			fi \
		fi \
	done