Refactoring Makefile and config.mk to make it easier to enable patches such as the ligatures patch and the sixel patch

This commit is contained in:
bakkeby 2021-05-09 15:06:02 +02:00
parent 1a1d492cd8
commit e139d1fd75
3 changed files with 12 additions and 13 deletions

View file

@ -4,13 +4,6 @@
include config.mk
# Uncomment the line below and the hb.o line further down for the ligatures patch
#LIGATURES_C = hb.c
#LIGATURES_H = hb.h
# Uncomment this for the SIXEL patch / SIXEL_PATCH
#SIXEL_C = sixel.c sixel_hls.c
SRC = st.c x.c $(LIGATURES_C) $(SIXEL_C)
OBJ = $(SRC:.c=.o)
@ -33,8 +26,6 @@ patches.h:
st.o: config.h st.h win.h
x.o: arg.h config.h st.h win.h $(LIGATURES_H)
# Uncomment the below line for the ligatures patch
#hb.o: st.h
$(OBJ): config.h config.mk patches.h