diff --git a/lib/make/msxbuild.mk b/lib/make/msxbuild.mk index 27082d5..fca5cec 100644 --- a/lib/make/msxbuild.mk +++ b/lib/make/msxbuild.mk @@ -66,8 +66,8 @@ define mb_dos2unix dos2unix -q -n $(1) $(2) endef define mb_create_dist - @echo === Creating distribution archive. - tar -czf $(1) -C $(2) `ls $(2)` + @echo === Creating distribution archive + tar -czf $(2) -C $(1) `ls $(1)` endef define mb_create_flight_video @echo === Indexing flight videos diff --git a/src/dist/0module.mk b/src/dist/0module.mk index 7e532a0..166fc57 100644 --- a/src/dist/0module.mk +++ b/src/dist/0module.mk @@ -22,4 +22,4 @@ $(DIST_BIN)/ahello2.com: bin/ahello-sdcc/ahello.com | $(DIST_BIN) $(DIST_BIN)/@prepare: | $(DIST_DEPS) $(DIST_OUT): | $(DIST_BIN)/@prepare - $(call mb_create_dist,$(DIST_OUT),$(DIST_BIN)) + $(call mb_create_dist,$(DIST_BIN),$@)