make makefile not suck

This commit is contained in:
randomuser 2022-06-25 23:45:59 -05:00
parent cc94ad6780
commit 4509ac1b12
1 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
all: mkc all: mkc
install: man sh mkc c install: man sh c all
.PHONY: man sh mkc c .PHONY: man sh mkc c
man: man:
@ -25,13 +25,13 @@ sh:
cp -f sh/status $(DESTDIR)$(PREFIX)/bin cp -f sh/status $(DESTDIR)$(PREFIX)/bin
cp -f sh/cfg $(DESTDIR)$(PREFIX)/bin cp -f sh/cfg $(DESTDIR)$(PREFIX)/bin
mkc: mkc: c/scream c/timer c/boid c/anaconda c/simplestatus c/colors
cc c/scream.c -o c/scream
cc c/timer.c -o c/timer c/boid:
cc c/boid.c -o c/boid -lm -lX11 cc c/boid.c -o c/boid -lm -lX11
c/anaconda:
cc c/anaconda.c -o c/anaconda -lm -lX11 cc c/anaconda.c -o c/anaconda -lm -lX11
cc c/simplestatus.c -o c/simplestatus
cc c/colors.c -o c/colors
c: c:
cp -f c/scream $(DESTDIR)$(PREFIX)/bin cp -f c/scream $(DESTDIR)$(PREFIX)/bin