Trammell Hudson avatar Trammell Hudson committed 184f79e

fix fake target for $O/.*.o.d and override LANG

Comments (0)

Files changed (1)

 # Our custom Pebble library shared with all our watch faces
 LIBPEBBLE_TH := $(TOP)lib/build/libpebble_th.a
 
+# Disable any localization; otherwise tr might complain
+override LANG := C
+
 
 # Helper macros
 map = $(foreach f,$2,$(call $1,$f))
 	$(eval OBJS += $2) \
 
 $(foreach f,$(SRCS),$(call add_srcs,$f,$O/$(notdir $(f:.c=.o))))
+OBJS := $(strip $(OBJS))
 
 ifeq ($(LIB),)
 # Only build resource_ids.auto.h if we are making an application
 $(OBJS): $O/src/resource_ids.auto.h
 
-#$(eval $(info OBJS=$(OBJS)))
-
 $O/$(APP).pbw: $O/app_resources.pbpack
 $O/pebble-app.elf: $(OBJS) $(LIBPEBBLE_TH)
 	$(LD) \
 endif
 
 $O/%.o:
-	$(CC) $(CFLAGS) -c -o $@ $<
+	$(CC) \
+		$(CFLAGS) \
+		-c \
+		-o $@ \
+		$<
 
 
 # Generate a fake resource_map.json file
 #
 # Bring in all of the generated dependency files if any exist.
 # These are produced by the -MMD flag to gcc in $(CFLAGS).
+# If they do not exist, do not create a target for them.
 #
+$O/.*.o.d:
+	@true
 -include $O/.*.o.d
 
 #
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.