summaryrefslogtreecommitdiff
path: root/pkg/win32/GNUmakefile.am
blob: ed86d2cc279aa10e356b3d65572d7ca2f4f249a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
TOPLEVEL=../..

EXE_FILES=$(TOPLEVEL)/src/@PACKAGE_TARNAME@.exe        \
          $(TOPLEVEL)/src/chocolate-server.exe         \
          $(TOPLEVEL)/setup/chocolate-setup.exe

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

EXTRA_DIST=README
noinst_DATA=@PACKAGE_TARNAME@-@PACKAGE_VERSION@-win32.zip

@PACKAGE_TARNAME@-@PACKAGE_VERSION@-win32.zip : 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