shithub: choc

ref: d0f41d4163fc96168f56155e6f5b36025eea79e4
dir: /pkg/win32/GNUmakefile.am/

View raw version

TOPLEVEL=../..

EXE_FILES=$(TOPLEVEL)/src/@[email protected]        \
          $(TOPLEVEL)/src/@[email protected]    \
          $(TOPLEVEL)/src/@[email protected]      \
          $(TOPLEVEL)/src/@[email protected]     \
          $(TOPLEVEL)/src/@[email protected]

DLL_FILES=$(TOPLEVEL)/src/SDL.dll                      \
          $(TOPLEVEL)/src/SDL_mixer.dll                \
          $(TOPLEVEL)/src/SDL_net.dll

DOC_FILES=README       \
          COPYING      \
          ChangeLog    \
          NEWS         \
          BUGS         \
          CMDLINE      \
          TODO

noinst_DATA=@PACKAGE_TARNAME@-@[email protected]

@PACKAGE_TARNAME@-@[email protected] : staging
	zip -j -r $@ staging/

staging: $(EXE_FILES) $(DLL_FILES) $(patsubst %,../../%,$(DOC_FILES))
	rm -rf staging
	mkdir staging
	cp $(EXE_FILES) $(DLL_FILES) staging/
	$(STRIP) staging/*.exe
	for f in $(DOC_FILES); do                    \
		cp $(TOPLEVEL)/$$f staging/$$f.txt;  \
		unix2dos staging/$$f.txt;            \
	done