Browse Source

[makefile] Inhibit warnings if AUTO_DEPS or MEDIA_DEPS are empty lists

tags/v0.9.6
Michael Brown 16 years ago
parent
commit
98abd48a26
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/Makefile.housekeeping

+ 4
- 0
src/Makefile.housekeeping View File

@@ -379,8 +379,10 @@ $(BIN)/deps/%.d : % $(MAKEDEPS) $(PARSEROM)
379 379
 #
380 380
 AUTO_DEPS	= $(patsubst %,$(BIN)/deps/%.d,$(AUTO_SRCS))
381 381
 ifdef NEED_DEPS
382
+ifneq ($(AUTO_DEPS),)
382 383
 -include $(AUTO_DEPS)
383 384
 endif
385
+endif
384 386
 autodeps :
385 387
 	@$(ECHO) $(AUTO_DEPS)
386 388
 VERYCLEANUP	+= $(BIN)/deps
@@ -636,8 +638,10 @@ MEDIA_DEPS		= $(patsubst %,$(BIN)/deps/%.media.d,$(AUTO_MEDIA))
636 638
 mediadeps :
637 639
 	@$(ECHO) $(MEDIA_DEPS)
638 640
 ifdef NEED_DEPS
641
+ifneq ($(MEDIA_DEPS),)
639 642
 -include $(MEDIA_DEPS)
640 643
 endif
644
+endif
641 645
 
642 646
 # Wrap up binary blobs (for embedded images)
643 647
 #

Loading…
Cancel
Save