Merge pull request #89 from zsugabubus/makefile

sowm: fix Makefile dependencies
This commit is contained in:
dylan 2020-06-16 12:24:10 +03:00 committed by GitHub
commit d327a0978a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -4,13 +4,13 @@ PREFIX ?= /usr
BINDIR ?= $(PREFIX)/bin
CC ?= gcc
all: config.h sowm
all: sowm
config.h:
cp config.def.h config.h
sowm:
$(CC) -O3 $(CFLAGS) -o sowm sowm.c -lX11 $(LDFLAGS)
sowm: sowm.c sowm.h config.h Makefile
$(CC) -O3 $(CFLAGS) -o $@ $< -lX11 $(LDFLAGS)
install: all
install -Dm755 sowm $(DESTDIR)$(BINDIR)/sowm
@ -20,3 +20,5 @@ uninstall:
clean:
rm -f sowm *.o
.PHONY: all install uninstall clean