X-Git-Url: https://www.kengrimes.com/gitweb/?p=henge%2Fapc.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=a1e743fc3a4a0e6e037c0e496bfa34ae896c141f;hp=1bc47b85301e95d305fed50933dcd6aff5ca0e64;hb=3bad0aca7a67e17205ffcac90a05df0fc75ae1c1;hpb=9f3bf39c4604dad2f0886413d35b71c975a66869 diff --git a/Makefile b/Makefile index 1bc47b8..a1e743f 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ hGEN := $(ySRC:%.y=%.tab.h) cGEN := $(strip $(ySRC:%.y=%.tab.c) $(rlSRC:%.rl=%.c)) # Functions -cGENDEP = $(if $(wildcard $1),$(subst src/,,$(filter-out $1 \ %:,$(shell $(CC) -MM -MG $1))),$(info fnf $1)) +cGENDEP = $(if $(wildcard $1),$(subst src/,,$(filter-out $1 \ %:,$(shell $(CC) -MM -MG $1))),$(info <$1>)) ldFLAGS = $(strip $(LDFLAGS) $(LDLIBS) $(VA_ARGS)) # Rules @@ -57,3 +57,6 @@ apc-d apc: $$($$@SRC) | $(hGEN) %.c: %.rl $(strip $(RLCMD)) + +clean: $(wildcard $(cGEN) $(hGEN) $(apcSRC) $(apc-dSRC)) + rm $^