refactoring
This commit is contained in:
parent
351d62e8ba
commit
1b321026d1
42
Makefile
42
Makefile
|
@ -11,7 +11,25 @@ OBJ = $(SRC:.c=.o)
|
||||||
|
|
||||||
all: st terminfo
|
all: st terminfo
|
||||||
|
|
||||||
# TODO: Update command to update submodules
|
*.c: buildroot
|
||||||
|
*.h: buildroot
|
||||||
|
.c.o:
|
||||||
|
$(CC) $(STCFLAGS) -c $<
|
||||||
|
|
||||||
|
st.o: buildroot config.h st.h win.h
|
||||||
|
x.o: buildroot arg.h config.h st.h win.h $(LIGATURES_H)
|
||||||
|
config.mk:
|
||||||
|
cp config/config.mk config.mk
|
||||||
|
config.h:
|
||||||
|
cp config/config.h config.h
|
||||||
|
|
||||||
|
$(OBJ): config.h config.mk buildroot
|
||||||
|
|
||||||
|
st: buildroot $(OBJ)
|
||||||
|
$(CC) -o $@ $(OBJ) $(STLDFLAGS)
|
||||||
|
|
||||||
|
terminfo: buildroot
|
||||||
|
tic -sx -o terminfo st.info
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
find . -maxdepth 1 -type f | grep -Pv "^\./\.|Makefile$$" | xargs -r rm
|
find . -maxdepth 1 -type f | grep -Pv "^\./\.|Makefile$$" | xargs -r rm
|
||||||
|
@ -26,28 +44,6 @@ buildroot:
|
||||||
mv tmp/* ./
|
mv tmp/* ./
|
||||||
for patch in config/patches/*.diff; do patch <"$$patch"; done
|
for patch in config/patches/*.diff; do patch <"$$patch"; done
|
||||||
|
|
||||||
config.mk:
|
|
||||||
cp config/config.mk ./config.mk
|
|
||||||
|
|
||||||
config.h:
|
|
||||||
cp config/config.h ./config.h
|
|
||||||
|
|
||||||
*.c: buildroot
|
|
||||||
*.h: buildroot
|
|
||||||
.c.o:
|
|
||||||
$(CC) $(STCFLAGS) -c $<
|
|
||||||
|
|
||||||
st.o: buildroot config.h st.h win.h
|
|
||||||
x.o: buildroot arg.h config.h st.h win.h $(LIGATURES_H)
|
|
||||||
|
|
||||||
$(OBJ): config.h config.mk buildroot
|
|
||||||
|
|
||||||
st: buildroot $(OBJ)
|
|
||||||
$(CC) -o $@ $(OBJ) $(STLDFLAGS)
|
|
||||||
|
|
||||||
terminfo: buildroot
|
|
||||||
tic -sx -o terminfo st.info
|
|
||||||
|
|
||||||
install: st terminfo
|
install: st terminfo
|
||||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||||
cp -f st $(DESTDIR)$(PREFIX)/bin
|
cp -f st $(DESTDIR)$(PREFIX)/bin
|
||||||
|
|
Loading…
Reference in New Issue