Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] (PR#10067) All files in data/ directory are installed even
Home

[Freeciv-Dev] (PR#10067) All files in data/ directory are installed even

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10067) All files in data/ directory are installed even if you build with --disable-server or --enable-client=no
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Sun, 12 Sep 2004 04:53:57 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10067 >

And Freeciv/freeciv.rc/freeciv.rc-2.0 should only be installed with
appropriate client.

With the attached patch only necessary files from data/ directory are
installed.
--
mateusz
Index: data/Makefile.am
===================================================================
RCS file: /home/freeciv/CVS/freeciv/data/Makefile.am,v
retrieving revision 1.25
diff -u -r1.25 Makefile.am
--- data/Makefile.am    18 Aug 2004 19:43:33 -0000      1.25
+++ data/Makefile.am    12 Sep 2004 11:52:58 -0000
@@ -1,6 +1,37 @@
 ## Process this file with automake to produce Makefile.in
 
-pkgdata_DATA = \
+if CLIENT
+COMMON_CLIENT_FILES = \
+       isotrident.tilespec \
+       trident.tilespec \
+       trident_shields.tilespec \
+       helpdata.txt
+if CLIENT_GUI_XAW
+CLIENT_EXTRA_FILES = Freeciv
+endif
+if CLIENT_GUI_GTK
+CLIENT_EXTRA_FILES = freeciv.rc
+endif
+if CLIENT_GUI_GTK_2_0
+CLIENT_EXTRA_FILES = freeciv.rc-2.0
+endif
+CLIENT_FILES = $(COMMON_CLIENT_FILES) $(CLIENT_EXTRA_FILES)
+else
+CLIENT_FILES =
+endif
+
+if SERVER
+SERVER_FILES = \
+       civ1.serv \
+       civ2.serv \
+       history.serv
+else
+SERVER_FILES =
+endif
+
+pkgdata_DATA = $(SERVER_FILES) $(CLIENT_FILES)
+
+EXTRA_DIST = \
        Freeciv \
        freeciv.rc      \
        freeciv.rc-2.0  \
@@ -12,6 +43,16 @@
        civ2.serv       \
        history.serv
 
-EXTRA_DIST = $(pkgdata_DATA)
+if CLIENT
+CLIENTDATADIRS = misc flags isotrident trident 
+else
+CLIENTDATADIRS = 
+endif
+
+if SERVER
+SERVERDATADIRS = default civ1 civ2 scenario nation history
+else
+SERVERDATADIRS = 
+endif
 
-SUBDIRS = misc flags isotrident trident default civ1 civ2 scenario nation 
history
+SUBDIRS = $(CLIENTDATADIRS) $(SERVERDATADIRS)

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#10067) All files in data/ directory are installed even if you build with --disable-server or --enable-client=no, Mateusz Stefek <=