shithub: choc

Download patch

ref: 3c18831a7ce351d6163fccff8d8813537f27f778
parent: 677729c658b39f075e563fbc9f5a898641f7de54
author: Simon Howard <[email protected]>
date: Fri Feb 5 18:23:48 EST 2010

Rearrange Makefile definitions.

Subversion-branch: /branches/raven-branch
Subversion-revision: 1846

--- a/pkg/wince/GNUmakefile
+++ b/pkg/wince/GNUmakefile
@@ -1,11 +1,6 @@
 
 include ../config.make
 
-all: $(DOOM_CAB) $(HERETIC_CAB) $(HEXEN_CAB)
-
-clean:
-	rm -f $(DOOM_CAB) $(HERETIC_CAB) $(HEXEN_CAB)
-
 # Doom:
 
 DOOM_CAB=$(PROGRAM_PREFIX)doom-$(PACKAGE_VERSION).cab
@@ -12,9 +7,6 @@
 DOOM_CFG=doom-cab.cfg
 DOOM_DEPS=$(shell ./wince-cabgen -d $(DOOM_CFG))
 
-$(DOOM_CAB) : $(DOOM_CFG) $(DOOM_DEPS)
-	./wince-cabgen $< $@
-
 # Heretic:
 
 HERETIC_CAB=$(PROGRAM_PREFIX)heretic-$(PACKAGE_VERSION).cab
@@ -21,9 +13,6 @@
 HERETIC_CFG=heretic-cab.cfg
 HERETIC_DEPS=$(shell ./wince-cabgen -d $(HERETIC_CFG))
 
-$(HERETIC_CAB) : $(HERETIC_CFG) $(HERETIC_DEPS)
-	./wince-cabgen $< $@
-
 # Hexen:
 
 HEXEN_CAB=$(PROGRAM_PREFIX)hexen-$(PACKAGE_VERSION).cab
@@ -30,6 +19,17 @@
 HEXEN_CFG=hexen-cab.cfg
 HEXEN_DEPS=$(shell ./wince-cabgen -d $(HEXEN_CFG))
 
+all: $(DOOM_CAB) $(HERETIC_CAB) $(HEXEN_CAB)
+
+$(DOOM_CAB) : $(DOOM_CFG) $(DOOM_DEPS)
+	./wince-cabgen $< $@
+
+$(HERETIC_CAB) : $(HERETIC_CFG) $(HERETIC_DEPS)
+	./wince-cabgen $< $@
+
 $(HEXEN_CAB) : $(HEXEN_CFG) $(HEXEN_DEPS)
 	./wince-cabgen $< $@
+
+clean:
+	rm -f $(DOOM_CAB) $(HERETIC_CAB) $(HEXEN_CAB)