define TOOL_templ include $(1)/Makefile $(1) $(1)%: BUILD_DIR := $(1) $(1) $(1)%: CFLAGS += $$($(1)-eflags) $(1)_prehook: $(Q)echo "$(bold)$(WHAT) $(1):$(normal)" $(1): $(1)_prehook $$($(1)-lex) $$($(1)-yaac) $$(patsubst %.o,$(1)/%.o,$$($(1)-objs)) $(1)_clean: $(1)_clean_custom $(Q)$$(call RM,$(1)/*.o $(1)/$(1) $(1)/*.gz) $(1)_do_install: $(Q)$$(call INSTX,$(1)/$(1),$$(DESTDIR)$$(SBINDIR)) $(Q)$(GZIP) $(1).8 > $(1)/$(1).8.gz $(Q)$$(call INST,$(1)/$(1).8.gz,$$(DESTDIR)$$(MAN8DIR)) $(Q)$$(foreach file,$$($(1)-confs),$$(call INST,$$(file),$$(DESTDIR)$$(ETCDIRE));) $(1)_install: $(1)_do_install $(1)_post_install $(1)_uninstall: $(1)_uninstall_custom $(Q)$$(call RM,$$(DESTDIR)$$(SBINDIR)/$(1)) $(Q)$$(call RM,$$(DESTDIR)$$(MAN8DIR)/$(1).8.gz) $(1)/%.yy.o: $(1)/%.yy.c $$(CCQ) $$(CFLAGS) -o $$@ -c $$< $(1)/%.tab.o: $(1)/%.tab.c $$(CCQ) $$(CFLAGS) -o $$@ -c $$< $(1)/%.o: %.c %.h $$(CHECK) $$(CFLAGS) $$(CHECKFLAGS) $$< $$(CCQ) $$(CFLAGS) -o $(1)/$$(shell basename $$@) -c $$< $(1)/%.o: %.c $$(CHECK) $$(CFLAGS) $$(CHECKFLAGS) $$< $$(CCQ) $$(CFLAGS) -o $(1)/$$(shell basename $$@) -c $$< endef ='selected'>master net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/tools/power
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@HansenPartnership.com>2016-10-16 13:51:31 -0700
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2016-10-16 13:51:31 -0700
commitebbb7594000eb266cac2bbcfdd93d829c7b0063f (patch)
treed070e95b27445f432d7a5ae67e718210fad7f723 /tools/power
parent1001354ca34179f3db924eb66672442a173147dc (diff)
parent8a4236a2c7868768943a24dc7b1e2ff495836880 (diff)
Merge remote-tracking branch 'mkp-scsi/4.9/scsi-fixes' into fixes
Diffstat (limited to 'tools/power')