X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=Makefile;h=69c4f5e2cbc5d4ab72ac254395bea4d894c6d27b;hp=7f4d21b04842e0e3aae7216edb95125302f61d20;hb=3c70c47bb2fa50066c4c3b23813253e03b8751fe;hpb=722285599b1ce45ca435f484b0f34a5e568487a1 diff --git a/Makefile b/Makefile index 7f4d21b0..69c4f5e2 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,14 @@ ifdef PCNT CFLAGS += -DPCNT endif frontend/%.o: CFLAGS += -Wall -DIN_EVDEV +frontend/menu.o: frontend/revision.h + +frontend/revision.h: FORCE + @(git describe || echo) | sed -e 's/.*/#define REV "\0"/' > $@_ + @diff -q $@_ $@ > /dev/null 2>&1 || cp $@_ $@ + @rm $@_ +.PHONY: FORCE + $(TARGET): $(OBJS) $(CC) -o $@ $^ $(LDFLAGS) -Wl,-Map=$@.map