root/trunk/freewrt/tools/md5crypt/Makefile

Revision 3498, 1.0 kB (checked in by tg, 5 years ago)

more of the same problem

Line 
1 # $FreeWRT$
2 #-
3 # This file is part of the FreeWRT project. FreeWRT is copyrighted
4 # material, please see the LICENCE file in the top-level directory
5 # or at http://www.freewrt.org/licence for details.
6
7 include ${TOPDIR}/rules.mk
8 include ../rules.mk
9
10 WRKBUILD=       ${TOOLS_BUILD_DIR}/md5crypt
11
12 prepare: ${WRKBUILD}
13 compile: prepare ${WRKBUILD}/md5crypt
14
15 install: ${STAGING_TOOLS}/bin/md5crypt ${TOPDIR}/lbin/md5crypt
16
17 ${STAGING_TOOLS}/bin/md5crypt:
18         mkdir -p ${STAGING_TOOLS}/bin
19         install -c -s -m 755 ${WRKBUILD}/md5crypt ${STAGING_TOOLS}/bin/
20         cp ${STAGING_TOOLS}/bin/md5crypt ${TOPDIR}/lbin/
21
22 ${TOPDIR}/lbin/md5crypt: install-lbin
23
24 install-lbin:
25         rm -f ${TOPDIR}/lbin/md5crypt
26         if [ -e ${STAGING_TOOLS}/bin/md5crypt ]; then \
27                 cp ${STAGING_TOOLS}/bin/md5crypt ${TOPDIR}/lbin/; \
28         fi
29
30 package:
31 clean:
32         rm -rf ${WRKBUILD}
33         rm -f ${TOPDIR}/lbin/md5crypt
34
35 ${WRKBUILD}:
36         mkdir -p ${WRKBUILD}
37
38 ${WRKBUILD}/md5crypt:
39         (wd=$$(pwd); unset MAKEFLAGS MFLAGS; cd ${WRKBUILD} && ${BMAKE} \
40             -f $$wd/doit.mk TOPDIR=${TOPDIR} BSDOBJDIR='${BUILD_DIR}')
Note: See TracBrowser for help on using the browser.