From 7d14433c6e5236c577839d4a6294c80d47860083 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Mon, 18 Apr 2005 05:02:26 +0000
Subject: [PATCH] Added the "dist" targets which create/fill a dist dir with
 the distribution files.

---
 src/doors/smurfcombat/GNUmakefile | 10 ++++++++++
 src/doors/smurfcombat/Makefile    |  8 ++++++++
 2 files changed, 18 insertions(+)

diff --git a/src/doors/smurfcombat/GNUmakefile b/src/doors/smurfcombat/GNUmakefile
index 6980f85bf3..9102cde38f 100644
--- a/src/doors/smurfcombat/GNUmakefile
+++ b/src/doors/smurfcombat/GNUmakefile
@@ -16,3 +16,13 @@ LDFLAGS	+=	-L$(SRC_ROOT)/odoors
 $(SMURF): $(EXEODIR) $(OBJS) $(BUILD_DEPENDS)
 	@echo Linking $@
 	${QUIET}$(CC) $(LDFLAGS) $(MT_LDFLAGS) $(OBJS) -o $@ $(CIOLIB-MT_LIBS) $(XPDEV-MT_LIBS) -lODoors
+
+dist:: $(SMURF)
+	rm -f $(SRC_ROOT)/*.so* $(SRC_ROOT)/*.a $(SRC_ROOT)/*.o
+	$(MAKE) -C $(SRC_ROOT)/odoors
+	-mkdir dist
+	cp install.sh dist
+	cp $(SMURF) dist/smurf.`uname`
+	cp *.d0* dist
+	cp *.doc dist
+	cp *.txt dist
diff --git a/src/doors/smurfcombat/Makefile b/src/doors/smurfcombat/Makefile
index ed3ffec2c4..9515fa1986 100644
--- a/src/doors/smurfcombat/Makefile
+++ b/src/doors/smurfcombat/Makefile
@@ -12,3 +12,11 @@ LDFLAGS =      $(LDFLAGS) -L$(SRC_ROOT)/odoors
 $(SMURF): $(OBJS)
 	@echo Linking $@
         ${QUIET}$(CC) $(LDFLAGS) $(MT_LDFLAGS) -e$@ $(OBJS) $(CIOLIB-MT_LIBS) $(XPDEV-MT_LIBS) ODoors.lib
+
+dist:: $(SMURF)
+	-md dist
+	copy /Y $(SMURF) dist
+	copy /Y *.d0* dist
+	copy /Y *.doc dist
+	copy /Y *.txt dist
+	copy /Y install.bat dist
-- 
GitLab