From 64ad31237da6d14f0193adb7f1210255d5d647dd Mon Sep 17 00:00:00 2001 From: trainytrain Date: Sun, 9 May 2021 01:53:29 -0700 Subject: init --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0e9d2d9..f54e2d4 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,9 @@ options: @echo "LDFLAGS = $(STLDFLAGS)" @echo "CC = $(CC)" +config.h: + cp config.def.h config.h + .c.o: $(CC) $(STCFLAGS) -c $< @@ -29,19 +32,17 @@ st: $(OBJ) $(CC) -o $@ $(OBJ) $(STLDFLAGS) clean: - rm -f st $(OBJ) st-$(VERSION).tar.gz *.rej *.orig *.o + rm -f st $(OBJ) st-$(VERSION).tar.gz *.o *.orig *.rej dist: clean mkdir -p st-$(VERSION) cp -R FAQ LEGACY TODO LICENSE Makefile README config.mk\ - config.h st.info st.1 arg.h st.h win.h $(SRC)\ + 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 - git submodule init - git submodule update mkdir -p $(DESTDIR)$(PREFIX)/bin cp -f st $(DESTDIR)$(PREFIX)/bin cp -f st-copyout $(DESTDIR)$(PREFIX)/bin -- cgit v1.2.3-13-gbd6f