mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-01 04:25:45 -04:00
Makefile: Warn if deutex does not support PNG
Check if deutex supports PNG based on its help output and fail the build early if not.
This commit is contained in:
parent
0f7e672fa9
commit
eb8efd3297
1 changed files with 14 additions and 1 deletions
15
Makefile
15
Makefile
|
@ -18,7 +18,7 @@ OBJS=$(FREEDM) $(FREEDOOM1) $(FREEDOOM2)
|
|||
|
||||
.PHONY: clean dist
|
||||
|
||||
all: $(OBJS)
|
||||
all: deutex-check $(OBJS)
|
||||
|
||||
subdirs:
|
||||
$(MAKE) -C lumps/dehacked # graphics/text depends on generated dehacked files
|
||||
|
@ -42,6 +42,19 @@ lumps/freedoom.lmp lumps/freedm.lmp: force
|
|||
# entries, so we have to change the texture1 symlink to point
|
||||
# to whichever wad we are working on
|
||||
|
||||
#---------------------------------------------------------
|
||||
# Build checks
|
||||
|
||||
# Make sure deutex supports PNG
|
||||
deutex-check:
|
||||
@$(DEUTEX) -h | grep -qw PNG || { \
|
||||
echo "$(DEUTEX) does not support PNG. Try building deutex with the PNG"; \
|
||||
echo "libraries (libpng and libpng-devel or similar packages) installed."; \
|
||||
echo "deutex can be downloaded from https://github.com/Doom-Utils/deutex."; \
|
||||
echo "The full path to duetex can be specified by passing"; \
|
||||
echo "DEUTEX=/the/path/to/deutex to make when building Freedoom."; \
|
||||
exit 1; }
|
||||
|
||||
#---------------------------------------------------------
|
||||
# freedm iwad
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue