X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=doc%2Fexamples%2FMakefile.examples.template;h=21cac7b93dfd431a3f0b02bbf27eb652023952c3;hb=HEAD;hp=238a5cc8d45ec85c8512532a8b596b3fb81a5a99;hpb=dbfa88798ce69bc788a351b75db71d3101d87490;p=urcu.git diff --git a/doc/examples/Makefile.examples.template b/doc/examples/Makefile.examples.template index 238a5cc..21cac7b 100644 --- a/doc/examples/Makefile.examples.template +++ b/doc/examples/Makefile.examples.template @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. LOCAL_CFLAGS := -g -O2 -Wall @@ -17,12 +10,14 @@ AM_V_P := : all: $(BINARY) $(BINARY): $(OBJECTS) - @if $(AM_V_P); then set -x; else echo " CCLD $@"; fi; \ + @verbose="$(AM_V_P)"; if [ "x$$verbose" = "x" ]; then verbose=":"; fi; \ + if $$verbose; then set -x; else echo " CCLD $@"; fi; \ $(CC) $(LOCAL_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ $(OBJECTS) $(LIBS) $(OBJECTS): $(SOURCES) $(DEPS) - @if $(AM_V_P); then set -x; else echo " CC $@"; fi; \ + @verbose="$(AM_V_P)"; if [ "x$$verbose" = "x" ]; then verbose=":"; fi; \ + if $$verbose; then set -x; else echo " CC $@"; fi; \ $(CC) $(LOCAL_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) \ -c -o $@ $(SOURCES)