slight changes
This commit is contained in:
parent
771ece25e8
commit
375efb8891
2 changed files with 4 additions and 8 deletions
10
Makefile
10
Makefile
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
include config.mk
|
include config.mk
|
||||||
|
|
||||||
SRC = st
|
SRC = st.c std.c
|
||||||
OBJ = ${SRC:.c=.o}
|
OBJ = ${SRC:.c=.o}
|
||||||
|
|
||||||
all: options st
|
all: options st
|
||||||
|
@ -18,11 +18,7 @@ options:
|
||||||
@echo CC $<
|
@echo CC $<
|
||||||
@${CC} -c ${CFLAGS} $<
|
@${CC} -c ${CFLAGS} $<
|
||||||
|
|
||||||
${OBJ}: config.h config.mk
|
${OBJ}: config.mk
|
||||||
|
|
||||||
config.h:
|
|
||||||
@echo creating $@ from config.def.h
|
|
||||||
@cp config.def.h $@
|
|
||||||
|
|
||||||
st: ${OBJ}
|
st: ${OBJ}
|
||||||
@echo CC -o $@
|
@echo CC -o $@
|
||||||
|
@ -35,7 +31,7 @@ clean:
|
||||||
dist: clean
|
dist: clean
|
||||||
@echo creating dist tarball
|
@echo creating dist tarball
|
||||||
@mkdir -p st-${VERSION}
|
@mkdir -p st-${VERSION}
|
||||||
@cp -R LICENSE Makefile README config.def.h config.mk \
|
@cp -R LICENSE Makefile README config.mk \
|
||||||
st.1 ${SRC} st-${VERSION}
|
st.1 ${SRC} st-${VERSION}
|
||||||
@tar -cf st-${VERSION}.tar st-${VERSION}
|
@tar -cf st-${VERSION}.tar st-${VERSION}
|
||||||
@gzip st-${VERSION}.tar
|
@gzip st-${VERSION}.tar
|
||||||
|
|
2
st.c
2
st.c
|
@ -2,7 +2,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[]) {
|
Xmain(int argc, char *argv[]) {
|
||||||
if(argc == 2 && !strcmp("-v", argv[1]))
|
if(argc == 2 && !strcmp("-v", argv[1]))
|
||||||
eprint("st-"VERSION", © 2007-2008 st engineers, see LICENSE for details\n");
|
eprint("st-"VERSION", © 2007-2008 st engineers, see LICENSE for details\n");
|
||||||
else if(argc != 1)
|
else if(argc != 1)
|
||||||
|
|
Loading…
Reference in a new issue