Fix makefile dependenciew towards sources

This commit is contained in:
Glenn Y. Rolland 2020-03-15 20:08:39 +01:00
parent 3fd02d3761
commit c4b08ff530

View file

@ -1,4 +1,6 @@
SOURCES=$(wildcard **/*.cr)
LDFLAGS=
DESTDIR=/usr
@ -9,7 +11,7 @@ all: build
$(BUILDDIR):
mkdir -p $(BUILDDIR)
$(BUILDDIR)/pushokku: $(BUILDDIR)
$(BUILDDIR)/pushokku: $(BUILDDIR) $(SOURCES)
crystal build $(LDFLAGS) src/pushokku.cr -o $(BUILDDIR)/pushokku
build: $(BUILDDIR)/pushokku