shithub: choc

Download patch

ref: 95ef264ebab11e76adf523f8196b3f3ad5ae34ae
parent: 4cc85f4c99939e301ff3d1eb690be7475ac131f0
parent: b8dfaffcb5bda84289b534b8252f0cc58e21a219
author: Simon Howard <[email protected]>
date: Mon Feb 3 02:06:03 EST 2014

Merge pull request #329 from fabiangreffrath/master

Some improvements to the build system

--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -19,3 +19,4 @@
 @[email protected] : setup.png
 	cp setup.png $@
 
+CLEANFILES = $(icons_DATA)
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -16,32 +16,43 @@
 if HAVE_PYTHON
 
 GENERATED_MAN_PAGES =               \
-           chocolate-doom.6         \
+           @[email protected]         \
            default.cfg.5            \
-           chocolate-doom.cfg.5     \
-           chocolate-heretic.6      \
+           @[email protected]     \
+           @[email protected]      \
            heretic.cfg.5            \
-           chocolate-heretic.cfg.5  \
-           chocolate-hexen.6        \
+           @[email protected]  \
+           @[email protected]        \
            hexen.cfg.5              \
-           chocolate-hexen.cfg.5    \
-           chocolate-strife.6       \
+           @[email protected]    \
+           @[email protected]       \
            strife.cfg.5             \
-           chocolate-strife.cfg.5
+           @[email protected]
 
-man_MANS = chocolate-server.6       \
-           chocolate-setup.6        \
-           $(GENERATED_MAN_PAGES)
+SETUP_MAN_PAGES =                          \
+           @[email protected]    \
+           @[email protected] \
+           @[email protected]   \
+           @[email protected]
 
+man_MANS = @[email protected]       \
+           @[email protected]        \
+           $(GENERATED_MAN_PAGES)         \
+           $(SETUP_MAN_PAGES)
+
 doomdocs_DATA    = INSTALL.doom    CMDLINE.doom
 hereticdocs_DATA = INSTALL.heretic CMDLINE.heretic
 hexendocs_DATA   = INSTALL.hexen   CMDLINE.hexen
 strifedocs_DATA  = INSTALL.strife  CMDLINE.strife
 
-CLEANFILES = $(GENERATED_MAN_PAGES) $(doomdocs_DATA) $(hereticdocs_DATA) \
+CLEANFILES = $(GENERATED_MAN_PAGES) $(SETUP_MAN_PAGES) \
+             $(doomdocs_DATA) $(hereticdocs_DATA) \
              $(hexendocs_DATA) $(strifedocs_DATA)
 
-chocolate-doom.6: ../src $(MANPAGE_GEN_FILES)
+$(SETUP_MAN_PAGES): @[email protected]
+	cp $< $@
+
+@[email protected]: ../src $(MANPAGE_GEN_FILES)
 	./docgen -g doom -m doom.template ../src ../src/doom > $@
 
 default.cfg.5: ../src default.cfg.template
@@ -48,7 +59,7 @@
 	./docgen -g doom -m default.cfg.template \
                  -c default ../src/m_config.c > $@
 
-chocolate-doom.cfg.5: ../src extra.cfg.template
+@[email protected]: ../src extra.cfg.template
 	./docgen -g doom -m extra.cfg.template \
                  -c extended ../src/m_config.c > $@
 
@@ -59,7 +70,7 @@
 	./simplecpp -DDOOM -DPRECOMPILED < INSTALL.template > $@
 
 
-chocolate-heretic.6: ../src $(MANPAGE_GEN_FILES)
+@[email protected]: ../src $(MANPAGE_GEN_FILES)
 	./docgen -g heretic -m heretic.template ../src ../src/heretic > $@
 
 heretic.cfg.5: ../src default.cfg.template
@@ -66,7 +77,7 @@
 	./docgen -g heretic -m default.cfg.template \
                  -c default ../src/m_config.c > $@
 
-chocolate-heretic.cfg.5: ../src extra.cfg.template
+@[email protected]: ../src extra.cfg.template
 	./docgen -g heretic -m extra.cfg.template \
                  -c extended ../src/m_config.c > $@
 
@@ -77,7 +88,7 @@
 	./simplecpp -DHERETIC -DPRECOMPILED < INSTALL.template > $@
 
 
-chocolate-hexen.6: ../src $(MANPAGE_GEN_FILES)
+@[email protected]: ../src $(MANPAGE_GEN_FILES)
 	./docgen -g hexen -m hexen.template ../src ../src/hexen > $@
 
 hexen.cfg.5: ../src default.cfg.template
@@ -84,7 +95,7 @@
 	./docgen -g hexen -m default.cfg.template \
                  -c default ../src/m_config.c > $@
 
-chocolate-hexen.cfg.5: ../src extra.cfg.template
+@[email protected]: ../src extra.cfg.template
 	./docgen -g hexen -m extra.cfg.template \
                  -c extended ../src/m_config.c > $@
 
@@ -95,7 +106,7 @@
 	./simplecpp -DHEXEN -DPRECOMPILED < INSTALL.template > $@
 
 
-chocolate-strife.6: ../src $(MANPAGE_GEN_FILES)
+@[email protected]: ../src $(MANPAGE_GEN_FILES)
 	./docgen -g strife -m strife.template ../src ../src/strife > $@
 
 strife.cfg.5: ../src default.cfg.template
@@ -102,7 +113,7 @@
 	./docgen -g strife -m default.cfg.template \
                  -c default ../src/m_config.c > $@
 
-chocolate-strife.cfg.5: ../src extra.cfg.template
+@[email protected]: ../src extra.cfg.template
 	./docgen -g strife -m extra.cfg.template \
                  -c extended ../src/m_config.c > $@