Cleans up preempt_pending helper functions
[akaros.git] / GNUmakefile
index 2939ab2..8549aa6 100644 (file)
@@ -16,12 +16,12 @@ endif
 ifeq ($(TARGET_ARCH),)
 busted:
        @echo "You must initially specify your target in the form TARGET_ARCH=<target>"
-       @echo "Current valid values for TARGET_ARCH are 'i686' and 'sparc'"
+       @echo "Current valid values for TARGET_ARCH are 'i686', 'sparc', and 'riscv'."
        @echo "Subsequent calls for the same target can be made by simply invoking 'make'"
 endif
 
-$(TARGET_ARCH):
-       @if [ "$(ARCH_LINK)" != "$@" ];\
+real-$(TARGET_ARCH):
+       @if [ "$(ARCH_LINK)" != "$(TARGET_ARCH)" ];\
        then\
          $(MAKE) realclean;\
          $(MAKE) realall -j $(MAKE_JOBS);\
@@ -183,6 +183,7 @@ install-libs:
 fill-kfs: install-libs
        @rm -rf $(FIRST_INITRAMFS_PATH)/lib
        @cp -R $(GCC_ROOT)/$(TARGET_ARCH)-ros/lib $(FIRST_INITRAMFS_PATH)
+endif
 
 userclean:
        @for i in $(USER_LIBS) ; do \
@@ -192,7 +193,6 @@ userclean:
        done
        @rm -rf $(OBJDIR)/$(TESTS_DIR)
 .PHONY: tests
-endif
 
 # Eliminate default suffix rules
 .SUFFIXES: