diff options
author | davidovski <david@davidovski.xyz> | 2022-06-27 01:14:42 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-27 01:14:42 +0100 |
commit | 7bba6cd7612293796e905885f9ed3072877798ab (patch) | |
tree | dd01942dbdd474a4df62ecf74479f5e78d83f1c8 /Makefile | |
parent | 79fb6f41104cd0d88891598ddfc3c30d1bb0352d (diff) |
added shmk, building all with shmk
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 77 |
1 files changed, 13 insertions, 64 deletions
@@ -1,73 +1,22 @@ -FLAGS= - DESTDIR= PREFIX=/usr - -DIST=dist - .DEFAULT_GOAL := build -install: build install-hbar install-colors install-parseconf install-shtests install-glyphs install-xitui install-xilib -check: check-parseconf -build: make-dist hbar shtests parseconf colors - -make-dist: - mkdir -p ${DIST} - -install-headers: src/*.h - install -Dm644 src/*.h ${DESTDIR}${PREFIX}/include - -install-shtests: shtests - install -Dm755 ${DIST}/shtests ${DESTDIR}${PREFIX}/bin/shtests - -install-parseconf: parseconf - install -Dm755 ${DIST}/parseconf ${DESTDIR}${PREFIX}/bin/parseconf - -install-hbar: hbar - install -Dm755 ${DIST}/hbar ${DESTDIR}${PREFIX}/bin - -install-colors: src/colors.list - install -Dm755 ${DIST}/colors.sh ${DESTDIR}${PREFIX}/lib/colors.sh - install -Dm755 ${DIST}/colors.h ${DESTDIR}${PREFIX}/include/colors.h - -install-glyphs: src/glyphs.sh - install -Dm755 src/glyphs.sh ${DESTDIR}${PREFIX}/lib +export PATH := .:$(PATH) -install-xitui: src/xitui.sh - install -Dm755 src/xitui.sh ${DESTDIR}${PREFIX}/lib +shmk0: + @echo shmk stage0 + @install -m755 src/util/shmk.sh shmk -install-xilib: src/xilib.sh - install -Dm755 src/xilib.sh ${DESTDIR}${PREFIX}/lib +bootstrap: shmk0 + @echo shmk stage1 + @./shmk.shmk build + @install -m755 dist/shmk shmk -check-parseconf: shtests parseconf test/parseconf.sh - ${DIST}/shtests ./test/parseconf.sh - - -hbar: colors src/hbar.c - ${CC} -I${DIST} src/hbar.c -o ${DIST}/hbar ${FLAGS} - -shtests: src/shtests.sh - install -Dm755 src/shtests.sh ${DIST}/shtests - -parseconf: src/parseconf.sh - install -Dm755 src/parseconf.sh ${DIST}/parseconf - -colors: src/colors.list - cp src/colors.sh ${DIST} - cp src/colors.h ${DIST} +build: bootstrap + @echo all xiutils + @./build.shmk clean: - rm -r ${DIST} - - -# xichroot -# -install-chroot: src/xichroot.sh - install -Dm755 src/xichroot.sh ${DESTDIR}${PREFIX}/bin/xichroot - - -# default-jvm -# -install-default-jvm: src/default-jvm.sh - install -Dm755 src/default-jvm.sh ${DESTDIR}${PREFIX}/bin/default-jvm - + @rm -r dist + @rm -r shmk |