From b44c2497d32b013f1078f874309558c3a20ef13e Mon Sep 17 00:00:00 2001 From: Georgy Samoilov Date: Wed, 27 Nov 2024 20:25:42 +0500 Subject: [PATCH] lumps: run wadinfo through simplecpp --- .gitignore | 1 + Makefile | 2 ++ lumps/wadinfo/Makefile | 15 +++++++++++++++ lumps/wadinfo/README | 11 +++++++++++ 4 files changed, 29 insertions(+) create mode 100644 lumps/wadinfo/Makefile create mode 100644 lumps/wadinfo/README diff --git a/.gitignore b/.gitignore index 19465e8c..934076b4 100644 --- a/.gitignore +++ b/.gitignore @@ -62,6 +62,7 @@ doom.gpl /lumps/freedoom.lmp /lumps/genmidi.lmp /lumps/playpal.lmp +/lumps/*wdinf.lmp /lumps/colormap/*.lmp diff --git a/Makefile b/Makefile index 80f5911b..4fdcea7d 100644 --- a/Makefile +++ b/Makefile @@ -34,6 +34,7 @@ subdirs: $(MAKE) -C lumps/genmidi $(MAKE) -C lumps/dmxgus $(MAKE) -C lumps/textures + $(MAKE) -C lumps/wadinfo $(MAKE) -C bootstrap @@ -159,6 +160,7 @@ clean: $(MAKE) -C lumps/genmidi clean $(MAKE) -C lumps/dmxgus clean $(MAKE) -C lumps/textures clean + $(MAKE) -C lumps/wadinfo clean $(MAKE) -C manual clean # Test targets some of which are a dependency of "test". diff --git a/lumps/wadinfo/Makefile b/lumps/wadinfo/Makefile new file mode 100644 index 00000000..0549cc04 --- /dev/null +++ b/lumps/wadinfo/Makefile @@ -0,0 +1,15 @@ +CPP=../../scripts/simplecpp + +all: ../fdmwdinf.lmp ../p1_wdinf.lmp ../p2_wdinf.lmp + +../fdmwdinf.lmp: wadinfo.txt + $(CPP) -DFREEDM < $< > $@ + +../p1_wdinf.lmp: wadinfo.txt + $(CPP) -DPHASE1 < $< > $@ + +../p2_wdinf.lmp: wadinfo.txt + $(CPP) -DPHASE2 < $< > $@ + +clean: + $(RM) ../fdmwdinf.lmp ../p1_wdinf.lmp ../p2_wdinf.lmp diff --git a/lumps/wadinfo/README b/lumps/wadinfo/README new file mode 100644 index 00000000..ec3ee847 --- /dev/null +++ b/lumps/wadinfo/README @@ -0,0 +1,11 @@ +This directory contains the source wadinfo text file used for Freedoom. + +WadInfo (not to be confused with DeuTex wadinfo) is a traditional +text file format distributed with Doom wads. It contains information +about the authors, the contents of the WAD, the requirements for +running it, and permissions for use. +Freedoom embeds one in each of its IWADs to ensure that the information +reaches all players. + +The Makefile in this directory splits the wadinfo into three parts +for each IWAD to match their description and technical details.