Commit 2d80ae898777a9069e38101b1b53a1347f558838
1 parent
17383a2a
avoid problems if make clean was not made before updating
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@370 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
1 deletions
Makefile
@@ -21,13 +21,15 @@ dyngen: dyngen.o | @@ -21,13 +21,15 @@ dyngen: dyngen.o | ||
21 | $(HOST_CC) $(CFLAGS) $(DEFINES) -c -o $@ $< | 21 | $(HOST_CC) $(CFLAGS) $(DEFINES) -c -o $@ $< |
22 | 22 | ||
23 | clean: | 23 | clean: |
24 | +# avoid old build problems by removing potentially incorrect old files | ||
25 | + rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h | ||
24 | rm -f *.o *.a $(TOOLS) dyngen TAGS | 26 | rm -f *.o *.a $(TOOLS) dyngen TAGS |
25 | for d in $(TARGET_DIRS); do \ | 27 | for d in $(TARGET_DIRS); do \ |
26 | make -C $$d $@ || exit 1 ; \ | 28 | make -C $$d $@ || exit 1 ; \ |
27 | done | 29 | done |
28 | 30 | ||
29 | distclean: clean | 31 | distclean: clean |
30 | - rm -f config-host.mak config-host.h config.mak config.h | 32 | + rm -f config-host.mak config-host.h |
31 | for d in $(TARGET_DIRS); do \ | 33 | for d in $(TARGET_DIRS); do \ |
32 | rm -f $$d/config.h $$d/config.mak || exit 1 ; \ | 34 | rm -f $$d/config.h $$d/config.mak || exit 1 ; \ |
33 | done | 35 | done |