@@ -1,3 +1,4 @@
fzy
fzytest
*.o
+config.h
@@ -25,6 +25,9 @@ fzy: fzy.o match.o tty.o choices.o
%.o: %.c config.h
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
+config.h:
+ cp config.def.h config.h
+
install: fzy
mkdir -p $(DESTDIR)$(BINDIR)
cp fzy $(DESTDIR)$(BINDIR)/
@@ -89,6 +89,7 @@ const char *choices_get(choices_t *c, size_t n) {
return NULL;
}
double choices_getscore(choices_t *c, size_t n) {
return c->results[n].score;
similarity index 100%
rename from config.h
rename to config.def.h