csu: restore crt1.o symlink
[minix.git] / etc / usr / Makefile
blobe85ed17c000e3ecd761d75d3ca044ec8fb86c083
1 .include <bsd.own.mk>
2 # Makefile - installed as /usr/Makefile
4 # Provides simple targets to download and maintain /usr/pkgsrc etc.
6 help all:
7 @echo "HELP:"
8 @echo ""
9 .if exists(${.CURDIR}/pkgsrc/.git)
10 .if exists(${.CURDIR}/pkgsrc/Makefile)
11 @echo " make pkgsrc-update - update your pkgsrc repo from the net"
12 .else
13 @echo " make pkgsrc-checkout - initial checkout of your pre-packaged"
14 @echo " pkgsrc repo."
15 @echo " make pkgsrc-update - update your pkgsrc repo from the net"
16 @echo " after the initial checkout."
17 .endif
18 .else
19 @echo " make pkgsrc-create - fetch initial pkgsrc repo from the net"
20 @echo " make pkgsrc-update - update your pkgsrc repo from the net"
21 .endif
22 @echo ""
24 pkgsrc-create: git
25 @echo "If problems occur you may have to rm -rf pkgsrc and try again."
26 @echo ""
27 ${INSTALL_DIR} ${.CURDIR}/pkgsrc
28 cd ${.CURDIR}/pkgsrc && git init
29 cd ${.CURDIR}/pkgsrc && \
30 git remote add origin git://git.minix3.org/pkgsrc.git
31 cd ${.CURDIR}/pkgsrc && git fetch origin
32 cd ${.CURDIR}/pkgsrc && git branch minix-master origin/minix-master
33 cd ${.CURDIR}/pkgsrc && git checkout minix-master
34 cd ${.CURDIR}/pkgsrc && git pull
35 cd ${.CURDIR}/pkgsrc/minix && sh minibootstrap.sh
37 pkgsrc-checkout: git
38 cd ${.CURDIR}/pkgsrc && git checkout minix-master
39 cd ${.CURDIR}/pkgsrc/minix && sh minibootstrap.sh
41 pkgsrc-update: git
42 cd ${.CURDIR}/pkgsrc && git pull
43 cd ${.CURDIR}/pkgsrc/minix && sh minibootstrap.sh
45 git:
46 pkgin update
47 pkgin install scmgit-base