ack/util/amisc/build.mk
David Given 3d5e72e20b Newer versions of GNU Make have a new function which collides with a
variable we're using; change the name of the variable.
2015-03-22 12:09:46 +01:00

24 lines
558 B
Makefile

define build-simple-tool-impl
$(call reset)
$(call cfile, util/amisc/$1.c)
$(call rawfile, $(LIBOBJECT))
$(call cprogram, $(BINDIR)/$1)
$(eval INSTALLABLES += $o)
$(call installto, $(INSDIR)/bin/$1)
$(call reset)
$(eval q := util/amisc/$1.1)
$(call installto, $(INSDIR)/share/man/man1/$1.1)
endef
build-simple-tool = $(eval $(build-simple-tool-impl))
$(call build-simple-tool,anm)
$(call build-simple-tool,ashow)
$(call build-simple-tool,asize)
$(call build-simple-tool,aslod)
$(call build-simple-tool,astrip)
$(call build-simple-tool,aelflod)