mtgos-mtgos-3ds9/cross/gawk.mk
2017-04-23 11:24:31 +00:00

31 lines
494 B
Makefile

GAWK_VERSION=4.1.4
gawk.tar.xz: gawk-$(GAWK_VERSION).tar.xz
mv $^ $@
gawk-$(GAWK_VERSION).tar.xz:
wget https://ftp.gnu.org/gnu/gawk/$@
gawk/: gawk-$(GAWK_VERSION)/
mv $^ $@
gawk-$(GAWK_VERSION)/: gawk.tar.xz
tar -xf $^
gawk-patch:
true
gawk-build: gawk-install
rm -rf builddir
gawk-configure: gawk/
mkdir builddir
cd builddir; \
../gawk/configure --prefix=$(CROSSPATH)
gawk-make: gawk-configure
cd builddir; \
$(MAKE)
gawk-install: gawk-make
cd builddir; \
$(MAKE) install