68 lines
1.9 KiB
Makefile
68 lines
1.9 KiB
Makefile
top:
|
|
@echo "Do you want 'build' target?"
|
|
@exit 1
|
|
|
|
check-make:
|
|
@if [ ! -e $(mgwdir)/mjhbuild.sh ]; then echo "use make.sh"; exit 1; fi
|
|
|
|
build-gtk: check-make
|
|
$(mgwdir)/mjhbuild.sh build
|
|
|
|
build-data: check-make
|
|
mkdir -p $(mgwtargetdir)
|
|
cp -flR $(mgwdir)/extra/medit-data/* $(mgwtargetdir)/
|
|
# cp -flR $(mgwdir)/extra/medit-data/etc/* $(mgwtargetdir)/etc/
|
|
cp -f $(libgccdll) $(mgwtargetdir)/bin/
|
|
|
|
build-python: check-make
|
|
mkdir -p $(mgwtargetdir)/bin $(mgwtargetdir)/lib $(mgwtargetdir)/include/python
|
|
# cp -fl $(mgwpythoninstdir)/*.exe $(mgwtargetdir)/bin/
|
|
cp -fl $(mgwpythonsystem32dir)/python2*.dll $(mgwtargetdir)/bin/
|
|
# cp -flR $(mgwpythoninstdir)/DLLs $(mgwpythoninstdir)/Lib $(mgwtargetdir)/bin/
|
|
cp -fl $(mgwpythoninstdir)/libs/python2*.lib $(mgwtargetdir)/lib/
|
|
cp -fl $(mgwpythoninstdir)/libs/libpython2*.a $(mgwtargetdir)/lib/
|
|
cp -fl $(mgwpythoninstdir)/include/* $(mgwtargetdir)/include/python/
|
|
|
|
build-defs: check-make
|
|
cd $(mgwtargetdir)/lib && gendef ../bin/*.dll
|
|
|
|
pre-build: build-python
|
|
post-build: build-data build-defs
|
|
|
|
build: pre-build build-gtk post-build
|
|
rebuild: clean build
|
|
|
|
RSYNC = rsync --recursive --verbose --copy-links --update
|
|
copy-win: check-make
|
|
mkdir -p ~/projects/win/gtk-win-build/$(mgwconfig)$(mgwplatsuffix)/
|
|
$(RSYNC) $(mgwtargetdir) ~/projects/win/gtk-win-build/$(mgwconfig)$(mgwplatsuffix)/
|
|
mkdir -p ~/projects/win/
|
|
$(RSYNC) $(mgwdestdir) ~/projects/win/
|
|
|
|
bdist-en:
|
|
rm -fr $(mgwdestdir)-en
|
|
$(mgwdir)/copyuser.sh --en $(mgwtargetdir) $(mgwdestdir)-en
|
|
|
|
bdist:
|
|
rm -fr $(mgwdestdir)
|
|
$(mgwdir)/copyuser.sh $(mgwtargetdir) $(mgwdestdir)
|
|
|
|
bdist-all: bdist-en bdist
|
|
|
|
dist-src-dbg:
|
|
$(mgwdir)/copysrcdbg.sh
|
|
|
|
dist-src:
|
|
$(mgwdir)/copysrc.sh
|
|
|
|
dist-bin:
|
|
$(mgwdir)/copybin.sh
|
|
|
|
dist: dist-src dist-bin bdist dist-src-dbg
|
|
|
|
clean-dist:
|
|
rm -rf $(mgwbuildroot)/dist-$(mgwconfig)$(mgwplatsuffix)
|
|
|
|
clean: clean-dist
|
|
rm -rf $(mgwbuilddir) $(mgwdestdir) $(mgwdestdir)-en $(mgwdistdir)
|