diff --git a/Makefile b/Makefile index 1f7209853..9717f5aae 100644 --- a/Makefile +++ b/Makefile @@ -235,20 +235,27 @@ mesa: release: release_prepare release_$(RELEASE_NAME) release_haxelib: + ${MAKE} HLIB=hashlink release_haxelib_package ${MAKE} HLIB=directx release_haxelib_package ${MAKE} HLIB=sdl release_haxelib_package ${MAKE} HLIB=openal release_haxelib_package +ifeq ($(HLIB),hashlink) +HLDIR=other/haxelib +HLPACK=templates hlmem memory.hxml Run.hx +else +HLDIR=libs/$(HLIB) ifeq ($(HLIB),directx) -HLPACK=dx +HLPACK=dx *.h *.c *.cpp else -HLPACK=$(HLIB) +HLPACK=$(HLIB) *.h *.c +endif endif release_haxelib_package: rm -rf $(HLIB)_release mkdir $(HLIB)_release - (cd libs/$(HLIB) && cp -R $(HLPACK) *.h *.c* haxelib.json ../../$(HLIB)_release | true) + (cd $(HLDIR) && cp -R $(HLPACK) haxelib.json $(CURDIR)/$(HLIB)_release | true) zip -r $(HLIB).zip $(HLIB)_release haxelib submit $(HLIB).zip rm -rf $(HLIB)_release