Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Commit

Permalink
Fixed the "both" target
Browse files Browse the repository at this point in the history
This fixes the issue where make skips re-building the files for the next target.
  • Loading branch information
tommai78101 authored Nov 12, 2017
1 parent 3588aee commit 2d78a0d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ include $(DEVKITARM)/3ds_rules
# DATA is a list of directories containing data files
# INCLUDES is a list of directories containing header files
#---------------------------------------------------------------------------------
TARGET := ntr_payload
TARGET :=
BUILD := build
SOURCES := source source/dsp source/jpeg source/ns source/libctru
DATA :=
Expand All @@ -33,8 +33,10 @@ CFLAGS := -Wall \

ifeq ($(strip $(NEW_3DS)),1)
CFLAGS += $(INCLUDE) -DHAS_JPEG=1 -O3
TARGET := n3ds_ntr_payload
else
CFLAGS += $(INCLUDE) -Os
TARGET := o3ds_ntr_payload
endif

CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11
Expand Down Expand Up @@ -121,7 +123,10 @@ new_3ds:
@echo making ntr_payload for new_3ds ...
@$(MAKE) NEW_3DS=1

both: old_3ds new_3ds
pre_both: old_3ds
@rm -fr $(BUILD)

both: pre_both new_3ds



Expand Down

0 comments on commit 2d78a0d

Please sign in to comment.