This commit is contained in:
Connor Lane Smith 2011-05-27 01:20:03 +01:00
parent 210137fba4
commit 864be9b1c7
1 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,9 @@
HDR = text.h util.h
LIB = util/afgets.o util/agetcwd.o util/concat.o util/enmasse.o util/eprintf.o \
SRC = basename.c cat.c chown.c date.c dirname.c echo.c false.c grep.c head.c \
ln.c ls.c mkdir.c mkfifo.c pwd.c rm.c sleep.c tail.c tee.c touch.c \
true.c wc.c
@ -13,7 +15,7 @@ all: $(BIN)
$(OBJ): util.h
$(BIN): util.a
grep.o: text.h
cat.o grep.o tail.o: text.h
@echo CC -o $@
@ -30,7 +32,7 @@ util.a: $(LIB)
dist: clean
@echo creating dist tarball
@mkdir -p sbase-$(VERSION)
@cp LICENSE Makefile $(SRC) $(MAN) util.c util.h sbase-$(VERSION)
@cp -r LICENSE Makefile $(SRC) $(MAN) util $(HDR) sbase-$(VERSION)
@tar -cf sbase-$(VERSION).tar sbase-$(VERSION)
@gzip sbase-$(VERSION).tar
@rm -rf sbase-$(VERSION)