Xinqi Bao's Git
projects
/
st.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
771ece2
)
slight changes
author
Anselm R Garbe <
[email protected]
>
Sun, 1 Jun 2008 17:04:49 +0000
(18:04 +0100)
committer
Anselm R Garbe <
[email protected]
>
Sun, 1 Jun 2008 17:04:49 +0000
(18:04 +0100)
Makefile
diff
|
blob
|
history
st.c
diff
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
c4d0b1a
..
cf1766c
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-3,7
+3,7
@@
include config.mk
include config.mk
-SRC = st
+SRC = st
.c std.c
OBJ = ${SRC:.c=.o}
all: options st
OBJ = ${SRC:.c=.o}
all: options st
@@
-18,11
+18,7
@@
options:
@echo CC $<
@${CC} -c ${CFLAGS} $<
@echo CC $<
@${CC} -c ${CFLAGS} $<
-${OBJ}: config.h config.mk
-
-config.h:
- @echo creating $@ from config.def.h
- @cp config.def.h $@
+${OBJ}: config.mk
st: ${OBJ}
@echo CC -o $@
st: ${OBJ}
@echo CC -o $@
@@
-35,7
+31,7
@@
clean:
dist: clean
@echo creating dist tarball
@mkdir -p st-${VERSION}
dist: clean
@echo creating dist tarball
@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}
@tar -cf st-${VERSION}.tar st-${VERSION}
@gzip st-${VERSION}.tar
st.1 ${SRC} st-${VERSION}
@tar -cf st-${VERSION}.tar st-${VERSION}
@gzip st-${VERSION}.tar
diff --git
a/st.c
b/st.c
index
33f165c
..
a3421ff
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-2,7
+2,7
@@
#include <stdio.h>
int
#include <stdio.h>
int
-main(int argc, char *argv[]) {
+
X
main(int argc, char *argv[]) {
if(argc == 2 && !strcmp("-v", argv[1]))
eprint("st-"VERSION", © 2007-2008 st engineers, see LICENSE for details\n");
else if(argc != 1)
if(argc == 2 && !strcmp("-v", argv[1]))
eprint("st-"VERSION", © 2007-2008 st engineers, see LICENSE for details\n");
else if(argc != 1)