diff options
author | Simon Howard | 2014-02-03 07:06:03 -0800 |
---|---|---|
committer | Simon Howard | 2014-02-03 07:06:03 -0800 |
commit | 95ef264ebab11e76adf523f8196b3f3ad5ae34ae (patch) | |
tree | d589171cab16b32163fe2c6f7a5190e0cbb1147e | |
parent | 4cc85f4c99939e301ff3d1eb690be7475ac131f0 (diff) | |
parent | b8dfaffcb5bda84289b534b8252f0cc58e21a219 (diff) | |
download | chocolate-doom-95ef264ebab11e76adf523f8196b3f3ad5ae34ae.tar.gz chocolate-doom-95ef264ebab11e76adf523f8196b3f3ad5ae34ae.tar.bz2 chocolate-doom-95ef264ebab11e76adf523f8196b3f3ad5ae34ae.zip |
Merge pull request #329 from fabiangreffrath/master
Some improvements to the build system
-rw-r--r-- | data/Makefile.am | 1 | ||||
-rw-r--r-- | man/Makefile.am | 51 |
2 files changed, 32 insertions, 20 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index 1fd4588c..894beb75 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -19,3 +19,4 @@ icons_DATA = @PROGRAM_PREFIX@doom.png \ @PROGRAM_PREFIX@setup.png : setup.png cp setup.png $@ +CLEANFILES = $(icons_DATA) diff --git a/man/Makefile.am b/man/Makefile.am index 8716d6d4..15bba637 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -16,39 +16,50 @@ strifedocsdir = ${docdir}/../${PROGRAM_PREFIX}strife if HAVE_PYTHON GENERATED_MAN_PAGES = \ - chocolate-doom.6 \ + @PROGRAM_PREFIX@doom.6 \ default.cfg.5 \ - chocolate-doom.cfg.5 \ - chocolate-heretic.6 \ + @PROGRAM_PREFIX@doom.cfg.5 \ + @PROGRAM_PREFIX@heretic.6 \ heretic.cfg.5 \ - chocolate-heretic.cfg.5 \ - chocolate-hexen.6 \ + @PROGRAM_PREFIX@heretic.cfg.5 \ + @PROGRAM_PREFIX@hexen.6 \ hexen.cfg.5 \ - chocolate-hexen.cfg.5 \ - chocolate-strife.6 \ + @PROGRAM_PREFIX@hexen.cfg.5 \ + @PROGRAM_PREFIX@strife.6 \ strife.cfg.5 \ - chocolate-strife.cfg.5 + @PROGRAM_PREFIX@strife.cfg.5 -man_MANS = chocolate-server.6 \ - chocolate-setup.6 \ - $(GENERATED_MAN_PAGES) +SETUP_MAN_PAGES = \ + @PROGRAM_PREFIX@doom-setup.6 \ + @PROGRAM_PREFIX@heretic-setup.6 \ + @PROGRAM_PREFIX@hexen-setup.6 \ + @PROGRAM_PREFIX@strife-setup.6 + +man_MANS = @PROGRAM_PREFIX@server.6 \ + @PROGRAM_PREFIX@setup.6 \ + $(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): @PROGRAM_PREFIX@setup.6 + cp $< $@ + +@PROGRAM_PREFIX@doom.6: ../src $(MANPAGE_GEN_FILES) ./docgen -g doom -m doom.template ../src ../src/doom > $@ default.cfg.5: ../src default.cfg.template ./docgen -g doom -m default.cfg.template \ -c default ../src/m_config.c > $@ -chocolate-doom.cfg.5: ../src extra.cfg.template +@PROGRAM_PREFIX@doom.cfg.5: ../src extra.cfg.template ./docgen -g doom -m extra.cfg.template \ -c extended ../src/m_config.c > $@ @@ -59,14 +70,14 @@ INSTALL.doom: INSTALL.template ./simplecpp -DDOOM -DPRECOMPILED < INSTALL.template > $@ -chocolate-heretic.6: ../src $(MANPAGE_GEN_FILES) +@PROGRAM_PREFIX@heretic.6: ../src $(MANPAGE_GEN_FILES) ./docgen -g heretic -m heretic.template ../src ../src/heretic > $@ heretic.cfg.5: ../src default.cfg.template ./docgen -g heretic -m default.cfg.template \ -c default ../src/m_config.c > $@ -chocolate-heretic.cfg.5: ../src extra.cfg.template +@PROGRAM_PREFIX@heretic.cfg.5: ../src extra.cfg.template ./docgen -g heretic -m extra.cfg.template \ -c extended ../src/m_config.c > $@ @@ -77,14 +88,14 @@ INSTALL.heretic: INSTALL.template ./simplecpp -DHERETIC -DPRECOMPILED < INSTALL.template > $@ -chocolate-hexen.6: ../src $(MANPAGE_GEN_FILES) +@PROGRAM_PREFIX@hexen.6: ../src $(MANPAGE_GEN_FILES) ./docgen -g hexen -m hexen.template ../src ../src/hexen > $@ hexen.cfg.5: ../src default.cfg.template ./docgen -g hexen -m default.cfg.template \ -c default ../src/m_config.c > $@ -chocolate-hexen.cfg.5: ../src extra.cfg.template +@PROGRAM_PREFIX@hexen.cfg.5: ../src extra.cfg.template ./docgen -g hexen -m extra.cfg.template \ -c extended ../src/m_config.c > $@ @@ -95,14 +106,14 @@ INSTALL.hexen: INSTALL.template ./simplecpp -DHEXEN -DPRECOMPILED < INSTALL.template > $@ -chocolate-strife.6: ../src $(MANPAGE_GEN_FILES) +@PROGRAM_PREFIX@strife.6: ../src $(MANPAGE_GEN_FILES) ./docgen -g strife -m strife.template ../src ../src/strife > $@ strife.cfg.5: ../src default.cfg.template ./docgen -g strife -m default.cfg.template \ -c default ../src/m_config.c > $@ -chocolate-strife.cfg.5: ../src extra.cfg.template +@PROGRAM_PREFIX@strife.cfg.5: ../src extra.cfg.template ./docgen -g strife -m extra.cfg.template \ -c extended ../src/m_config.c > $@ |