ref: 860a17497bdc189f78f5a0bca000a0451d5ae624
parent: 37325bbfc1f71111715cf2f4ef2918b6cc5c0ff1
author: Simon Howard <[email protected]>
date: Tue Jan 5 10:52:12 EST 2010
Move config.make up to pkg/ directory. Use static makefiles to generate all packages, rather than dynamically generated makefiles. Add pkg/osx to dist. Make OS X staging directory depend on top level documentation files. Generate CMDLINE as part of standard build if it is not already present. Set svn:ignore properties. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1790
--- a/Makefile.am
+++ b/Makefile.am
@@ -53,6 +53,8 @@
if HAVE_PYTHON
+noinst_DATA=CMDLINE
+
CMDLINE : src/
./man/docgen -p man/CMDLINE.template src/ > $@
--- a/configure.in
+++ b/configure.in
@@ -123,9 +123,7 @@
src/Makefile
pcsound/Makefile
pkg/Makefile
-pkg/wince/GNUmakefile
-pkg/win32/GNUmakefile
-pkg/osx/config.make
+pkg/config.make
pkg/osx/Info.plist
src/resource.rc
src/doom-screensaver.desktop
--- /dev/null
+++ b/pkg/.gitignore
@@ -1,0 +1,3 @@
+Makefile
+Makefile.in
+config.make
--- a/pkg/Makefile.am
+++ b/pkg/Makefile.am
@@ -1,3 +1,29 @@
-DIST_SUBDIRS=wince win32
+OSX_FILES= \
+osx/app-skeleton/Contents/PkgInfo \
+osx/app-skeleton/Contents/Resources/128x128.png \
+osx/app-skeleton/Contents/Resources/app.icns \
+osx/app-skeleton/Contents/Resources/launcher.nib/classes.nib \
+osx/app-skeleton/Contents/Resources/launcher.nib/info.nib \
+osx/app-skeleton/Contents/Resources/launcher.nib/keyedobjects.nib \
+osx/GNUmakefile \
+osx/Info.plist.in \
+osx/cp-with-libs \
+osx/main.m \
+osx/AppController.m osx/AppController.h \
+osx/Execute.m osx/Execute.h \
+osx/IWADController.m osx/IWADController.h \
+osx/IWADLocation.m osx/IWADLocation.h \
+osx/LauncherManager.m osx/LauncherManager.h
+
+WINCE_FILES= \
+wince/GNUmakefile \
+wince/wince-cab.cfg \
+wince/wince-cabgen
+
+WIN32_FILES= \
+win32/GNUmakefile \
+win32/README
+
+EXTRA_DIST=$(OSX_FILES) $(WINCE_FILES) $(WIN32_FILES)
--- /dev/null
+++ b/pkg/config.make.in
@@ -1,0 +1,19 @@
+# File included by package makefiles that contains details
+# about the package name, generated by configure.
+
+PACKAGE = @PACKAGE@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+
+# Documentation files to distribute with packages.
+
+DOC_FILES=README \
+ COPYING \
+ ChangeLog \
+ NEWS \
+ BUGS \
+ CMDLINE \
+ TODO
+
--- /dev/null
+++ b/pkg/osx/.gitignore
@@ -1,0 +1,5 @@
+Info.plist
+launcher
+*.o
+*.d
+staging
--- a/pkg/osx/GNUmakefile
+++ b/pkg/osx/GNUmakefile
@@ -1,5 +1,5 @@
-include config.make
+include ../config.make
CC=gcc
STRIP=strip
@@ -6,15 +6,10 @@
STAGING_DIR=staging
DMG=$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).dmg
-DOC_FILES=\
- README \
- COPYING \
- ChangeLog \
- NEWS \
- BUGS \
- CMDLINE \
- TODO
+TOPLEVEL=../..
+TOPLEVEL_DOCS=$(patsubst %,../../%,$(DOC_FILES))
+
ifndef GNUSTEP_MAKEFILES
# DMG file containing package:
@@ -30,20 +25,21 @@
APP_DIR=$(STAGING_DIR)/$(PACKAGE_NAME).app
APP_BIN_DIR=$(APP_DIR)/Contents/MacOS/
-$(STAGING_DIR): launcher
+$(STAGING_DIR): launcher $(TOPLEVEL_DOCS)
rm -rf $(STAGING_DIR)
mkdir $(STAGING_DIR)
cp -R app-skeleton "$(APP_DIR)"
+ mkdir "$(APP_BIN_DIR)"
cp Info.plist "$(APP_DIR)/Contents/"
cp launcher "$(APP_BIN_DIR)/"
- ./cp-with-libs ../../src/chocolate-doom "$(APP_BIN_DIR)"
+ ./cp-with-libs $(TOPLEVEL)/src/chocolate-doom "$(APP_BIN_DIR)"
$(STRIP) "$(APP_BIN_DIR)/chocolate-doom"
- ./cp-with-libs ../../setup/chocolate-setup "$(APP_BIN_DIR)"
+ ./cp-with-libs $(TOPLEVEL)/setup/chocolate-setup "$(APP_BIN_DIR)"
$(STRIP) "$(APP_BIN_DIR)/chocolate-setup"
- for d in $(DOC_FILES); do cp ../../$$d $(STAGING_DIR)/; done
+ for d in $(DOC_FILES); do cp $(TOPLEVEL)/$$d $(STAGING_DIR)/; done
find $(STAGING_DIR) -name .svn -delete -exec rm -rf {} \; || true
@@ -53,7 +49,7 @@
# Launcher build:
-CFLAGS = -Wall -I../..
+CFLAGS = -Wall -I$(TOPLEVEL)
# Are we building using gs_make?
--- a/pkg/osx/config.make.in
+++ /dev/null
@@ -1,9 +1,0 @@
-# File included by the main makefile that contains details
-# about the package name, generated by configure.
-
-PACKAGE = @PACKAGE@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-
--- /dev/null
+++ b/pkg/win32/GNUmakefile
@@ -1,0 +1,26 @@
+
+include ../config.make
+
+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
+
+$(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
+
--- a/pkg/win32/GNUmakefile.am
+++ /dev/null
@@ -1,35 +1,0 @@
-
-TOPLEVEL=../..
-
-EXE_FILES=$(TOPLEVEL)/src/@[email protected] \
- $(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@-@[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
-
--- /dev/null
+++ b/pkg/wince/GNUmakefile
@@ -1,0 +1,10 @@
+
+include ../config.make
+
+DEPS=$(shell ./wince-cabgen -d $(CONFIG_FILE))
+CONFIG_FILE=wince-cab.cfg
+OUTPUT_FILE=$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).cab
+
+$(OUTPUT_FILE) : $(CONFIG_FILE) $(DEPS)
+ ./wince-cabgen $< $@
+
--- a/pkg/wince/GNUmakefile.am
+++ /dev/null
@@ -1,12 +1,0 @@
-
-DEPS=$(shell ./wince-cabgen -d $(CONFIG_FILE))
-CONFIG_FILE=wince-cab.cfg
-OUTPUT_FILE=@PACKAGE_TARNAME@-@[email protected]
-
-EXTRA_DIST=wince-cabgen $(CONFIG_FILE)
-
-noinst_DATA = $(OUTPUT_FILE)
-
-$(OUTPUT_FILE) : $(CONFIG_FILE) $(DEPS)
- ./wince-cabgen $< $@
-
--- /dev/null
+++ b/wince/.gitignore
@@ -1,0 +1,3 @@
+Makefile
+Makefile.in
+.deps