Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 1 | # trace-cmd version |
| 2 | EP_VERSION = 1 |
| 3 | EP_PATCHLEVEL = 1 |
| 4 | EP_EXTRAVERSION = 0 |
| 5 | |
| 6 | # file format version |
| 7 | FILE_VERSION = 6 |
| 8 | |
| 9 | MAKEFLAGS += --no-print-directory |
| 10 | |
| 11 | |
| 12 | # Makefiles suck: This macro sets a default value of $(2) for the |
| 13 | # variable named by $(1), unless the variable has been set by |
| 14 | # environment or command line. This is necessary for CC and AR |
| 15 | # because make sets default values, so the simpler ?= approach |
| 16 | # won't work as expected. |
| 17 | define allow-override |
| 18 | $(if $(or $(findstring environment,$(origin $(1))),\ |
| 19 | $(findstring command line,$(origin $(1)))),,\ |
| 20 | $(eval $(1) = $(2))) |
| 21 | endef |
| 22 | |
| 23 | # Allow setting CC and AR, or setting CROSS_COMPILE as a prefix. |
| 24 | $(call allow-override,CC,$(CROSS_COMPILE)gcc) |
| 25 | $(call allow-override,AR,$(CROSS_COMPILE)ar) |
| 26 | |
| 27 | EXT = -std=gnu99 |
| 28 | INSTALL = install |
| 29 | |
| 30 | # Use DESTDIR for installing into a different root directory. |
| 31 | # This is useful for building a package. The program will be |
| 32 | # installed in this directory as if it was the root directory. |
| 33 | # Then the build tool can move it later. |
| 34 | DESTDIR ?= |
| 35 | DESTDIR_SQ = '$(subst ','\'',$(DESTDIR))' |
| 36 | |
| 37 | prefix ?= /usr/local |
| 38 | bindir_relative = bin |
| 39 | bindir = $(prefix)/$(bindir_relative) |
| 40 | man_dir = $(prefix)/share/man |
| 41 | man_dir_SQ = '$(subst ','\'',$(man_dir))' |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 42 | |
Namhyung Kim | 9f1efa8 | 2013-06-04 14:20:16 +0900 | [diff] [blame] | 43 | export man_dir man_dir_SQ INSTALL |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 44 | export DESTDIR DESTDIR_SQ |
| 45 | |
Jiri Olsa | e0e96d0 | 2013-12-03 14:09:17 +0100 | [diff] [blame] | 46 | set_plugin_dir := 1 |
| 47 | |
| 48 | # Set plugin_dir to preffered global plugin location |
| 49 | # If we install under $HOME directory we go under |
| 50 | # $(HOME)/.traceevent/plugins |
| 51 | # |
| 52 | # We dont set PLUGIN_DIR in case we install under $HOME |
| 53 | # directory, because by default the code looks under: |
| 54 | # $(HOME)/.traceevent/plugins by default. |
| 55 | # |
| 56 | ifeq ($(plugin_dir),) |
| 57 | ifeq ($(prefix),$(HOME)) |
| 58 | override plugin_dir = $(HOME)/.traceevent/plugins |
| 59 | set_plugin_dir := 0 |
| 60 | else |
| 61 | override plugin_dir = $(prefix)/lib/traceevent/plugins |
| 62 | endif |
| 63 | endif |
| 64 | |
| 65 | ifeq ($(set_plugin_dir),1) |
| 66 | PLUGIN_DIR = -DPLUGIN_DIR="$(DESTDIR)/$(plugin_dir)" |
| 67 | PLUGIN_DIR_SQ = '$(subst ','\'',$(PLUGIN_DIR))' |
| 68 | endif |
| 69 | |
Jiri Olsa | c3d090f | 2013-12-19 14:42:02 +0100 | [diff] [blame] | 70 | include $(if $(BUILD_SRC),$(BUILD_SRC)/)../../scripts/Makefile.include |
| 71 | |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 72 | # copy a bit from Linux kbuild |
| 73 | |
| 74 | ifeq ("$(origin V)", "command line") |
| 75 | VERBOSE = $(V) |
| 76 | endif |
| 77 | ifndef VERBOSE |
| 78 | VERBOSE = 0 |
| 79 | endif |
| 80 | |
| 81 | ifeq ("$(origin O)", "command line") |
| 82 | BUILD_OUTPUT := $(O) |
| 83 | endif |
| 84 | |
| 85 | ifeq ($(BUILD_SRC),) |
| 86 | ifneq ($(BUILD_OUTPUT),) |
| 87 | |
| 88 | define build_output |
Arnaldo Carvalho de Melo | 456da53 | 2013-08-26 13:04:04 -0300 | [diff] [blame] | 89 | $(if $(VERBOSE:1=),@)+$(MAKE) -C $(BUILD_OUTPUT) \ |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 90 | BUILD_SRC=$(CURDIR) -f $(CURDIR)/Makefile $1 |
| 91 | endef |
| 92 | |
| 93 | saved-output := $(BUILD_OUTPUT) |
| 94 | BUILD_OUTPUT := $(shell cd $(BUILD_OUTPUT) && /bin/pwd) |
| 95 | $(if $(BUILD_OUTPUT),, \ |
| 96 | $(error output directory "$(saved-output)" does not exist)) |
| 97 | |
| 98 | all: sub-make |
| 99 | |
Namhyung Kim | 4ccdf57 | 2013-06-04 14:20:17 +0900 | [diff] [blame] | 100 | $(MAKECMDGOALS): sub-make |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 101 | |
| 102 | sub-make: force |
| 103 | $(call build_output, $(MAKECMDGOALS)) |
| 104 | |
| 105 | |
| 106 | # Leave processing to above invocation of make |
| 107 | skip-makefile := 1 |
| 108 | |
| 109 | endif # BUILD_OUTPUT |
| 110 | endif # BUILD_SRC |
| 111 | |
| 112 | # We process the rest of the Makefile if this is the final invocation of make |
| 113 | ifeq ($(skip-makefile),) |
| 114 | |
| 115 | srctree := $(if $(BUILD_SRC),$(BUILD_SRC),$(CURDIR)) |
| 116 | objtree := $(CURDIR) |
| 117 | src := $(srctree) |
| 118 | obj := $(objtree) |
| 119 | |
| 120 | export prefix bindir src obj |
| 121 | |
| 122 | # Shell quotes |
| 123 | bindir_SQ = $(subst ','\'',$(bindir)) |
| 124 | bindir_relative_SQ = $(subst ','\'',$(bindir_relative)) |
Jiri Olsa | e0e96d0 | 2013-12-03 14:09:17 +0100 | [diff] [blame] | 125 | plugin_dir_SQ = $(subst ','\'',$(plugin_dir)) |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 126 | |
| 127 | LIB_FILE = libtraceevent.a libtraceevent.so |
| 128 | |
| 129 | CONFIG_INCLUDES = |
| 130 | CONFIG_LIBS = |
| 131 | CONFIG_FLAGS = |
| 132 | |
| 133 | VERSION = $(EP_VERSION) |
| 134 | PATCHLEVEL = $(EP_PATCHLEVEL) |
| 135 | EXTRAVERSION = $(EP_EXTRAVERSION) |
| 136 | |
| 137 | OBJ = $@ |
| 138 | N = |
| 139 | |
| 140 | export Q VERBOSE |
| 141 | |
| 142 | EVENT_PARSE_VERSION = $(EP_VERSION).$(EP_PATCHLEVEL).$(EP_EXTRAVERSION) |
| 143 | |
Jack Mitchell | b9e8c37 | 2013-03-08 11:21:52 +0000 | [diff] [blame] | 144 | INCLUDES = -I. $(CONFIG_INCLUDES) |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 145 | |
| 146 | # Set compile option CFLAGS if not set elsewhere |
| 147 | CFLAGS ?= -g -Wall |
| 148 | |
| 149 | # Append required CFLAGS |
| 150 | override CFLAGS += $(CONFIG_FLAGS) $(INCLUDES) $(PLUGIN_DIR_SQ) |
Arnaldo Carvalho de Melo | c055875 | 2012-09-12 14:29:40 -0300 | [diff] [blame] | 151 | override CFLAGS += $(udis86-flags) -D_GNU_SOURCE |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 152 | |
| 153 | ifeq ($(VERBOSE),1) |
| 154 | Q = |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 155 | print_install = |
| 156 | else |
| 157 | Q = @ |
Jiri Olsa | f33c5cd | 2013-12-03 14:09:20 +0100 | [diff] [blame] | 158 | print_install = echo ' INSTALL '$1; |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 159 | endif |
| 160 | |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 161 | do_compile_shared_library = \ |
| 162 | ($(print_shared_lib_compile) \ |
| 163 | $(CC) --shared $^ -o $@) |
| 164 | |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 165 | do_plugin_build = \ |
| 166 | ($(print_plugin_build) \ |
| 167 | $(CC) $(CFLAGS) -shared -nostartfiles -o $@ $<) |
| 168 | |
| 169 | do_build_static_lib = \ |
| 170 | ($(print_static_lib_build) \ |
| 171 | $(RM) $@; $(AR) rcs $@ $^) |
| 172 | |
| 173 | |
Jiri Olsa | c3d090f | 2013-12-19 14:42:02 +0100 | [diff] [blame] | 174 | do_compile = $(QUIET_CC)$(CC) -c $(CFLAGS) $(EXT) $< -o $(obj)/$@; |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 175 | |
| 176 | $(obj)/%.o: $(src)/%.c |
Jiri Olsa | c3d090f | 2013-12-19 14:42:02 +0100 | [diff] [blame] | 177 | $(call do_compile) |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 178 | |
| 179 | %.o: $(src)/%.c |
Jiri Olsa | c3d090f | 2013-12-19 14:42:02 +0100 | [diff] [blame] | 180 | $(call do_compile) |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 181 | |
Jiri Olsa | c877bbd | 2013-12-03 14:09:16 +0100 | [diff] [blame] | 182 | PEVENT_LIB_OBJS = event-parse.o |
| 183 | PEVENT_LIB_OBJS += event-plugin.o |
| 184 | PEVENT_LIB_OBJS += trace-seq.o |
| 185 | PEVENT_LIB_OBJS += parse-filter.o |
| 186 | PEVENT_LIB_OBJS += parse-utils.o |
Namhyung Kim | d6c2522 | 2013-06-04 14:20:21 +0900 | [diff] [blame] | 187 | PEVENT_LIB_OBJS += kbuffer-parse.o |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 188 | |
Jiri Olsa | d9d13f8 | 2013-12-03 14:09:27 +0100 | [diff] [blame] | 189 | PLUGIN_OBJS = plugin_jbd2.o |
| 190 | PLUGIN_OBJS += plugin_hrtimer.o |
Jiri Olsa | f825628 | 2013-12-03 14:09:28 +0100 | [diff] [blame] | 191 | PLUGIN_OBJS += plugin_kmem.o |
Jiri Olsa | 35d79f9f | 2013-12-03 14:09:29 +0100 | [diff] [blame] | 192 | PLUGIN_OBJS += plugin_kvm.o |
Jiri Olsa | de705e2 | 2013-12-03 14:09:30 +0100 | [diff] [blame] | 193 | PLUGIN_OBJS += plugin_mac80211.o |
Jiri Olsa | 83e815e | 2013-12-03 14:09:31 +0100 | [diff] [blame] | 194 | PLUGIN_OBJS += plugin_sched_switch.o |
Jiri Olsa | 07a180a | 2013-12-03 14:09:32 +0100 | [diff] [blame] | 195 | PLUGIN_OBJS += plugin_function.o |
Jiri Olsa | 40c03ad | 2013-12-03 14:09:33 +0100 | [diff] [blame] | 196 | PLUGIN_OBJS += plugin_xen.o |
Jiri Olsa | 0401092 | 2013-12-03 14:09:34 +0100 | [diff] [blame] | 197 | PLUGIN_OBJS += plugin_scsi.o |
Jiri Olsa | 9437147 | 2013-12-03 14:09:35 +0100 | [diff] [blame] | 198 | PLUGIN_OBJS += plugin_cfg80211.o |
Jiri Olsa | e0549f1 | 2013-12-03 14:09:26 +0100 | [diff] [blame] | 199 | |
Jiri Olsa | e0e96d0 | 2013-12-03 14:09:17 +0100 | [diff] [blame] | 200 | PLUGINS := $(PLUGIN_OBJS:.o=.so) |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 201 | |
Jiri Olsa | e0e96d0 | 2013-12-03 14:09:17 +0100 | [diff] [blame] | 202 | ALL_OBJS = $(PEVENT_LIB_OBJS) $(PLUGIN_OBJS) |
| 203 | |
| 204 | CMD_TARGETS = $(LIB_FILE) $(PLUGINS) |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 205 | |
| 206 | TARGETS = $(CMD_TARGETS) |
| 207 | |
| 208 | |
| 209 | all: all_cmd |
| 210 | |
| 211 | all_cmd: $(CMD_TARGETS) |
| 212 | |
| 213 | libtraceevent.so: $(PEVENT_LIB_OBJS) |
Jiri Olsa | e6262e2 | 2013-12-19 14:42:04 +0100 | [diff] [blame^] | 214 | $(QUIET_LINK)$(CC) --shared $^ -o $@ |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 215 | |
| 216 | libtraceevent.a: $(PEVENT_LIB_OBJS) |
Jiri Olsa | e6262e2 | 2013-12-19 14:42:04 +0100 | [diff] [blame^] | 217 | $(QUIET_LINK)$(RM) $@; $(AR) rcs $@ $^ |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 218 | |
Jiri Olsa | e0e96d0 | 2013-12-03 14:09:17 +0100 | [diff] [blame] | 219 | plugins: $(PLUGINS) |
| 220 | |
Namhyung Kim | 52b5c0d | 2012-07-06 16:21:32 +0900 | [diff] [blame] | 221 | $(PEVENT_LIB_OBJS): %.o: $(src)/%.c TRACEEVENT-CFLAGS |
Jiri Olsa | bdebbac | 2013-12-19 14:42:03 +0100 | [diff] [blame] | 222 | $(QUIET_CC_FPIC)$(CC) -c $(CFLAGS) $(EXT) -fPIC $< -o $@ |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 223 | |
Jiri Olsa | e0e96d0 | 2013-12-03 14:09:17 +0100 | [diff] [blame] | 224 | $(PLUGIN_OBJS): %.o : $(src)/%.c |
Jiri Olsa | bdebbac | 2013-12-19 14:42:03 +0100 | [diff] [blame] | 225 | $(QUIET_CC_FPIC)$(CC) -c $(CFLAGS) -fPIC -o $@ $< |
Jiri Olsa | e0e96d0 | 2013-12-03 14:09:17 +0100 | [diff] [blame] | 226 | |
| 227 | $(PLUGINS): %.so: %.o |
Jiri Olsa | e6262e2 | 2013-12-19 14:42:04 +0100 | [diff] [blame^] | 228 | $(QUIET_LINK)$(CC) $(CFLAGS) -shared -nostartfiles -o $@ $< |
Jiri Olsa | e0e96d0 | 2013-12-03 14:09:17 +0100 | [diff] [blame] | 229 | |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 230 | define make_version.h |
| 231 | (echo '/* This file is automatically generated. Do not modify. */'; \ |
| 232 | echo \#define VERSION_CODE $(shell \ |
| 233 | expr $(VERSION) \* 256 + $(PATCHLEVEL)); \ |
| 234 | echo '#define EXTRAVERSION ' $(EXTRAVERSION); \ |
| 235 | echo '#define VERSION_STRING "'$(VERSION).$(PATCHLEVEL).$(EXTRAVERSION)'"'; \ |
| 236 | echo '#define FILE_VERSION '$(FILE_VERSION); \ |
| 237 | ) > $1 |
| 238 | endef |
| 239 | |
| 240 | define update_version.h |
| 241 | ($(call make_version.h, $@.tmp); \ |
| 242 | if [ -r $@ ] && cmp -s $@ $@.tmp; then \ |
| 243 | rm -f $@.tmp; \ |
| 244 | else \ |
| 245 | echo ' UPDATE $@'; \ |
| 246 | mv -f $@.tmp $@; \ |
| 247 | fi); |
| 248 | endef |
| 249 | |
| 250 | ep_version.h: force |
| 251 | $(Q)$(N)$(call update_version.h) |
| 252 | |
| 253 | VERSION_FILES = ep_version.h |
| 254 | |
| 255 | define update_dir |
| 256 | (echo $1 > $@.tmp; \ |
| 257 | if [ -r $@ ] && cmp -s $@ $@.tmp; then \ |
| 258 | rm -f $@.tmp; \ |
| 259 | else \ |
| 260 | echo ' UPDATE $@'; \ |
| 261 | mv -f $@.tmp $@; \ |
| 262 | fi); |
| 263 | endef |
| 264 | |
| 265 | ## make deps |
| 266 | |
| 267 | all_objs := $(sort $(ALL_OBJS)) |
| 268 | all_deps := $(all_objs:%.o=.%.d) |
| 269 | |
Namhyung Kim | 860df58 | 2012-06-22 14:37:36 +0900 | [diff] [blame] | 270 | # let .d file also depends on the source and header files |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 271 | define check_deps |
Namhyung Kim | 860df58 | 2012-06-22 14:37:36 +0900 | [diff] [blame] | 272 | @set -e; $(RM) $@; \ |
Namhyung Kim | b6f4f80 | 2012-10-26 17:55:48 +0900 | [diff] [blame] | 273 | $(CC) -MM $(CFLAGS) $< > $@.$$$$; \ |
Namhyung Kim | 860df58 | 2012-06-22 14:37:36 +0900 | [diff] [blame] | 274 | sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ |
| 275 | $(RM) $@.$$$$ |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 276 | endef |
| 277 | |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 278 | $(all_deps): .%.d: $(src)/%.c |
| 279 | $(Q)$(call check_deps) |
| 280 | |
| 281 | $(all_objs) : %.o : .%.d |
| 282 | |
| 283 | dep_includes := $(wildcard $(all_deps)) |
| 284 | |
| 285 | ifneq ($(dep_includes),) |
| 286 | include $(dep_includes) |
| 287 | endif |
| 288 | |
Namhyung Kim | 52b5c0d | 2012-07-06 16:21:32 +0900 | [diff] [blame] | 289 | ### Detect environment changes |
| 290 | TRACK_CFLAGS = $(subst ','\'',$(CFLAGS)):$(ARCH):$(CROSS_COMPILE) |
| 291 | |
| 292 | TRACEEVENT-CFLAGS: force |
| 293 | @FLAGS='$(TRACK_CFLAGS)'; \ |
| 294 | if test x"$$FLAGS" != x"`cat TRACEEVENT-CFLAGS 2>/dev/null`" ; then \ |
Ingo Molnar | 65fb099 | 2013-10-09 11:49:27 +0200 | [diff] [blame] | 295 | echo 1>&2 " FLAGS: * new build flags or cross compiler"; \ |
Namhyung Kim | 52b5c0d | 2012-07-06 16:21:32 +0900 | [diff] [blame] | 296 | echo "$$FLAGS" >TRACEEVENT-CFLAGS; \ |
| 297 | fi |
| 298 | |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 299 | tags: force |
| 300 | $(RM) tags |
Namhyung Kim | 6545e3a | 2012-06-22 17:10:14 +0900 | [diff] [blame] | 301 | find . -name '*.[ch]' | xargs ctags --extra=+f --c-kinds=+px \ |
| 302 | --regex-c++='/_PE\(([^,)]*).*/PEVENT_ERRNO__\1/' |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 303 | |
| 304 | TAGS: force |
| 305 | $(RM) TAGS |
Namhyung Kim | 6545e3a | 2012-06-22 17:10:14 +0900 | [diff] [blame] | 306 | find . -name '*.[ch]' | xargs etags \ |
| 307 | --regex='/_PE(\([^,)]*\).*/PEVENT_ERRNO__\1/' |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 308 | |
| 309 | define do_install |
| 310 | $(print_install) \ |
| 311 | if [ ! -d '$(DESTDIR_SQ)$2' ]; then \ |
| 312 | $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$2'; \ |
| 313 | fi; \ |
| 314 | $(INSTALL) $1 '$(DESTDIR_SQ)$2' |
| 315 | endef |
| 316 | |
Jiri Olsa | e0e96d0 | 2013-12-03 14:09:17 +0100 | [diff] [blame] | 317 | install_lib: all_cmd install_plugins |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 318 | $(Q)$(call do_install,$(LIB_FILE),$(bindir_SQ)) |
| 319 | |
Jiri Olsa | e0e96d0 | 2013-12-03 14:09:17 +0100 | [diff] [blame] | 320 | PLUGINS_INSTALL = $(subst .so,.install,$(PLUGINS)) |
| 321 | |
| 322 | $(PLUGINS_INSTALL): %.install : %.so force |
| 323 | $(Q)$(call do_install,$<,$(plugin_dir_SQ)) |
| 324 | |
| 325 | install_plugins: $(PLUGINS_INSTALL) |
| 326 | |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 327 | install: install_lib |
| 328 | |
| 329 | clean: |
Konstantin Stepanyuk | f526a4c | 2012-06-27 15:52:14 -0600 | [diff] [blame] | 330 | $(RM) *.o *~ $(TARGETS) *.a *.so $(VERSION_FILES) .*.d |
Namhyung Kim | 52b5c0d | 2012-07-06 16:21:32 +0900 | [diff] [blame] | 331 | $(RM) TRACEEVENT-CFLAGS tags TAGS |
Steven Rostedt | f7d8235 | 2012-04-06 00:47:53 +0200 | [diff] [blame] | 332 | |
| 333 | endif # skip-makefile |
| 334 | |
| 335 | PHONY += force |
| 336 | force: |
| 337 | |
| 338 | # Declare the contents of the .PHONY variable as phony. We keep that |
| 339 | # information in a variable so we can use it in if_changed and friends. |
| 340 | .PHONY: $(PHONY) |