aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 584374e..30ba106 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -8,6 +8,10 @@ all: libguile-gitto-path.so
.PHONY: install uninstall
+%.x: %.c
+ guile-snarf -o $@ $< $(CFLAGS)
+
+gitto-path.o: gitto-path.x
libguile-gitto-path.so: gitto-path.o
$(CC) $(CFLAGS) -shared -o libguile-gitto-path.so $^