Fix Xen 'make install' not to rebuild console.o if called

from sudo environemnt, for example.
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-07-01 14:30:46 +00:00
1 parent fe2ee19268
commit 1f1b0c92ed
2 files changed
+7 -2

No files matched your search

+5 -2
View File
@@ -67,9 +67,12 @@ endif
$(MAKE) -C arch/$(TARGET_ARCH)
# drivers/char/console.o contains static banner/compile info. Blow it away.
# Don't refresh these files during e.g., 'sudo make install'
delete-unfresh-files:
rm -f include/xen/banner.h include/xen/compile.h drivers/char/console.o
$(MAKE) -C arch/$(TARGET_ARCH) delete-unfresh-files
@if [ ! -r include/xen/compile.h -o -O include/xen/compile.h ]; then \
rm -f include/xen/{banner,compile}.h; \
$(MAKE) -C arch/$(TARGET_ARCH) delete-unfresh-files; \
fi
# acm_policy.h contains security policy for Xen
include/xen/acm_policy.h:
+2
View File
@@ -7,3 +7,5 @@ driver.o: $(OBJS)
clean:
rm -f *.o *~ core
console.o: $(BASEDIR)/include/xen/compile.h
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.