Several Makefiles: Add .PHONY definitions to prevent 'clean up to date' message weirdness.

This commit is contained in:
Gregory Nutt 2016-05-10 15:44:06 -06:00
parent 88b79d305f
commit e523c93391
11 changed files with 29 additions and 17 deletions

View File

@ -11715,3 +11715,5 @@
From Young (2016-05-07). From Young (2016-05-07).
* drivrs/mtd: Add a driver for SST26F spi/qspi flash devices (SPI mode * drivrs/mtd: Add a driver for SST26F spi/qspi flash devices (SPI mode
only). From Sebastien Lorquet (2016-05-10). only). From Sebastien Lorquet (2016-05-10).
* Several Makefiles: Add .PHONY definitions to prevent 'clean up to date'
message weirdness (2016-05-10).

View File

@ -62,6 +62,7 @@ OBJS = $(AOBJS) $(COBJS)
BIN = libaudio$(LIBEXT) BIN = libaudio$(LIBEXT)
all: $(BIN) all: $(BIN)
.PHONY: depend clean distclean
$(AOBJS): %$(OBJEXT): %.S $(AOBJS): %$(OBJEXT): %.S
$(call ASSEMBLE, $<, $@) $(call ASSEMBLE, $<, $@)

View File

@ -1,7 +1,7 @@
############################################################################ ############################################################################
# nxflat/Makefile # nxflat/Makefile
# #
# Copyright (C) 2007-2009, 2012-2015 Gregory Nutt. All rights reserved. # Copyright (C) 2007-2009, 2012-2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org> # Author: Gregory Nutt <gnutt@nuttx.org>
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
@ -80,6 +80,7 @@ BINFMT_OBJS = $(BINFMT_AOBJS) $(BINFMT_COBJS)
BIN = libbinfmt$(LIBEXT) BIN = libbinfmt$(LIBEXT)
all: $(BIN) all: $(BIN)
.PHONY: depend clean distclean
$(BINFMT_AOBJS): %$(OBJEXT): %.S $(BINFMT_AOBJS): %$(OBJEXT): %.S
$(call ASSEMBLE, $<, $@) $(call ASSEMBLE, $<, $@)

View File

@ -1,7 +1,7 @@
############################################################################ ############################################################################
# configs/Makefile # configs/Makefile
# #
# Copyright (C) 2015 Gregory Nutt. All rights reserved. # Copyright (C) 2015-2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org> # Author: Gregory Nutt <gnutt@nuttx.org>
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
@ -58,6 +58,7 @@ OBJS = $(AOBJS) $(COBJS)
BIN = libconfigs$(LIBEXT) BIN = libconfigs$(LIBEXT)
all: $(BIN) all: $(BIN)
.PHONY: depend clean distclean
$(AOBJS): %$(OBJEXT): %.S $(AOBJS): %$(OBJEXT): %.S
$(call ASSEMBLE, $<, $@) $(call ASSEMBLE, $<, $@)
@ -84,4 +85,4 @@ distclean: clean
$(call DELFILE, Make.dep) $(call DELFILE, Make.dep)
$(call DELFILE, .depend) $(call DELFILE, .depend)
-include Make.dep -include Make.dep

View File

@ -1,7 +1,7 @@
############################################################################ ############################################################################
# crypto/Makefile # crypto/Makefile
# #
# Copyright (C) 2007, 2008, 2011-2014 Gregory Nutt. All rights reserved. # Copyright (C) 2007, 2008, 2011-2014, 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org> # Author: Gregory Nutt <gnutt@nuttx.org>
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
@ -70,6 +70,7 @@ OBJS = $(AOBJS) $(COBJS)
BIN = libcrypto$(LIBEXT) BIN = libcrypto$(LIBEXT)
all: $(BIN) all: $(BIN)
.PHONY: depend clean distclean
$(AOBJS): %$(OBJEXT): %.S $(AOBJS): %$(OBJEXT): %.S
$(call ASSEMBLE, $<, $@) $(call ASSEMBLE, $<, $@)

View File

@ -1,7 +1,7 @@
############################################################################ ############################################################################
# drivers/Makefile # drivers/Makefile
# #
# Copyright (C) 2007-2014 Gregory Nutt. All rights reserved. # Copyright (C) 2007-2014, 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org> # Author: Gregory Nutt <gnutt@nuttx.org>
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
@ -108,6 +108,7 @@ OBJS = $(AOBJS) $(COBJS)
BIN = libdrivers$(LIBEXT) BIN = libdrivers$(LIBEXT)
all: $(BIN) all: $(BIN)
.PHONY: depend clean distclean
$(AOBJS): %$(OBJEXT): %.S $(AOBJS): %$(OBJEXT): %.S
$(call ASSEMBLE, $<, $@) $(call ASSEMBLE, $<, $@)

View File

@ -1,7 +1,7 @@
############################################################################ ############################################################################
# fs/Makefile # fs/Makefile
# #
# Copyright (C) 2007, 2008, 2011-2014 Gregory Nutt. All rights reserved. # Copyright (C) 2007, 2008, 2011-2014, 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org> # Author: Gregory Nutt <gnutt@nuttx.org>
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
@ -84,6 +84,7 @@ OBJS = $(AOBJS) $(COBJS)
BIN = libfs$(LIBEXT) BIN = libfs$(LIBEXT)
all: $(BIN) all: $(BIN)
.PHONY: depend clean distclean
$(AOBJS): %$(OBJEXT): %.S $(AOBJS): %$(OBJEXT): %.S
$(call ASSEMBLE, $<, $@) $(call ASSEMBLE, $<, $@)

View File

@ -1,7 +1,7 @@
############################################################################ ############################################################################
# lib/Makefile # lib/Makefile
# #
# Copyright (C) 2012 Gregory Nutt. All rights reserved. # Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org> # Author: Gregory Nutt <gnutt@nuttx.org>
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
@ -36,6 +36,7 @@
-include $(TOPDIR)/Make.defs -include $(TOPDIR)/Make.defs
all: all:
.PHONY: depend clean distclean
depend: depend:

View File

@ -1,7 +1,7 @@
############################################################################ ############################################################################
# libxx/Makefile # libxx/Makefile
# #
# Copyright (C) 2009, 2012 Gregory Nutt. All rights reserved. # Copyright (C) 2009, 2012, 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org> # Author: Gregory Nutt <gnutt@nuttx.org>
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
@ -88,6 +88,7 @@ OBJS = $(AOBJS) $(COBJS) $(CXXOBJS)
BIN = libcxx$(LIBEXT) BIN = libcxx$(LIBEXT)
all: $(BIN) all: $(BIN)
.PHONY: depend clean distclean
$(AOBJS): %$(OBJEXT): %.S $(AOBJS): %$(OBJEXT): %.S
$(call ASSEMBLE, $<, $@) $(call ASSEMBLE, $<, $@)

View File

@ -1,7 +1,7 @@
############################################################################ ############################################################################
# net/Makefile # net/Makefile
# #
# Copyright (C) 2007, 2008, 2011-2015 Gregory Nutt. All rights reserved. # Copyright (C) 2007, 2008, 2011-2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org> # Author: Gregory Nutt <gnutt@nuttx.org>
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
@ -75,18 +75,19 @@ include procfs/Make.defs
include utils/Make.defs include utils/Make.defs
endif endif
ASRCS = $(SOCK_ASRCS) $(NETDEV_ASRCS) $(NET_ASRCS) ASRCS = $(SOCK_ASRCS) $(NETDEV_ASRCS) $(NET_ASRCS)
AOBJS = $(ASRCS:.S=$(OBJEXT)) AOBJS = $(ASRCS:.S=$(OBJEXT))
CSRCS = $(SOCK_CSRCS) $(NETDEV_CSRCS) $(NET_CSRCS) CSRCS = $(SOCK_CSRCS) $(NETDEV_CSRCS) $(NET_CSRCS)
COBJS = $(CSRCS:.c=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS) SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS) OBJS = $(AOBJS) $(COBJS)
BIN = libnet$(LIBEXT) BIN = libnet$(LIBEXT)
all: $(BIN) all: $(BIN)
.PHONY: depend clean distclean
$(AOBJS): %$(OBJEXT): %.S $(AOBJS): %$(OBJEXT): %.S
$(call ASSEMBLE, $<, $@) $(call ASSEMBLE, $<, $@)

View File

@ -69,6 +69,7 @@ OBJS = $(AOBJS) $(COBJS)
BIN = libwireless$(LIBEXT) BIN = libwireless$(LIBEXT)
all: $(BIN) all: $(BIN)
.PHONY: depend clean distclean
$(AOBJS): %$(OBJEXT): %.S $(AOBJS): %$(OBJEXT): %.S
$(call ASSEMBLE, $<, $@) $(call ASSEMBLE, $<, $@)