summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-11-19 14:24:04 +0100
committerjaseg <git@jaseg.de>2022-11-19 14:24:04 +0100
commit8ed4ce20a56123e0dfb0b0e1039c9a733fec3b5f (patch)
tree335f1ff7ace350cc66f1ab89acc661b68011fde8 /Makefile
parent6db5a0fa5005710ff1a71a721b3d625e61c37e78 (diff)
downloadlolcat-8ed4ce20a56123e0dfb0b0e1039c9a733fec3b5f.tar.gz
lolcat-8ed4ce20a56123e0dfb0b0e1039c9a733fec3b5f.tar.bz2
lolcat-8ed4ce20a56123e0dfb0b0e1039c9a733fec3b5f.zip
Add --gradient option, allow specification of custom gradients.
Closes #47
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 316c9b8..9ce889d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,5 @@
CC ?= gcc
-LOLCAT_SRC ?= lolcat.c
-CENSOR_SRC ?= censor.c
CFLAGS ?= -std=c11 -Wall -Wextra -O3 -Wno-sign-compare
LIBS := -lm
@@ -14,11 +12,14 @@ debug: all
.PHONY: install clean debug
-lolcat: $(LOLCAT_SRC)
- $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
+xterm256lut.h: xterm256lut_gen.py
+ python $< > $@
-censor: $(CENSOR_SRC)
- $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
+lolcat: lolcat.c xterm256lut.h
+ $(CC) $(CFLAGS) -o $@ $< $(LIBS)
+
+censor: censor.c
+ $(CC) $(CFLAGS) -o $@ $< $(LIBS)
install: lolcat censor
install lolcat $(DESTDIR)/lolcat