Make from a single config file; Remove dist option

This commit is contained in:
2024-06-24 20:15:31 +01:00
parent 72f9abc115
commit cdac888c72
14 changed files with 8 additions and 1009 deletions

View File

@@ -9,9 +9,6 @@ OBJ = $(SRC:.c=.o)
all: st
config.h:
cp config.def.h config.h
.c.o:
$(CC) $(STCFLAGS) -c $<
@@ -27,14 +24,6 @@ st: $(OBJ)
clean:
rm -f st $(OBJ) st-$(VERSION).tar.gz
dist: clean
mkdir -p st-$(VERSION)
cp -R FAQ LEGACY TODO LICENSE Makefile README config.mk\
config.def.h st.info st.1 arg.h st.h win.h $(SRC)\
st-$(VERSION)
tar -cf - st-$(VERSION) | gzip > st-$(VERSION).tar.gz
rm -rf st-$(VERSION)
install: st
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f st $(DESTDIR)$(PREFIX)/bin
@@ -52,4 +41,4 @@ uninstall:
rm -f $(DESTDIR)$(APPPREFIX)/st.desktop
rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1
.PHONY: all clean dist install uninstall
.PHONY: all clean install uninstall