mirror of
https://github.com/kevinnlsamuel/stdouterr.git
synced 2025-12-06 09:55:58 +05:30
Compare commits
4 Commits
86e38b6479
...
efa8d3e945
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
efa8d3e945
|
||
|
|
c105b6e91f
|
||
|
|
a2ecc4c48e
|
||
|
|
00c95e1b53
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
build
|
||||
38
Makefile
Normal file
38
Makefile
Normal file
@@ -0,0 +1,38 @@
|
||||
.PHONY: all builddir configure compile clean
|
||||
build: prebuild configure compile
|
||||
|
||||
INSTALL = install
|
||||
BUILD_DIR ?= build/
|
||||
PREFIX ?= /usr/local/
|
||||
DESTDIR ?= ${PREFIX}
|
||||
|
||||
|
||||
|
||||
SRC_DIR = src/
|
||||
DOCS_DIR = docs/
|
||||
|
||||
BIN = stdouterr
|
||||
MAN = ${BIN}.${man_category}
|
||||
man_category = 1
|
||||
CC_ARGS = "-I${SRC_DIR}lib"
|
||||
bindir = ${DESTDIR}bin/
|
||||
mandir = ${DESTDIR}share/man/${man_lang?:man_lang/}man${man_category}/
|
||||
|
||||
configure:
|
||||
@echo nothing to configure
|
||||
prebuild: clean
|
||||
@mkdir ${BUILD_DIR}
|
||||
clean:
|
||||
@rm -rf ${BUILD_DIR}
|
||||
compile:
|
||||
$(CC) -o${BUILD_DIR}${BIN} ${SRC_DIR}main.c
|
||||
|
||||
preinstall:
|
||||
mkdir -p ${bindir}
|
||||
mkdir -p ${mandir}
|
||||
install: preinstall
|
||||
$(INSTALL) ${BUILD_DIR}${BIN} ${bindir}${BIN}
|
||||
$(INSTALL) -m644 ${DOCS_DIR}${MAN} ${mandir}${MAN}
|
||||
uninstall:
|
||||
rm ${bindir}${BIN}
|
||||
rm ${mandir}${MAN}
|
||||
0
dev/.gitignore → test/.gitignore
vendored
0
dev/.gitignore → test/.gitignore
vendored
@@ -103,9 +103,11 @@ test(){
|
||||
echo "=== start of test ==="
|
||||
echo
|
||||
"${oname}" "$@"
|
||||
ret=$?
|
||||
echo
|
||||
echo
|
||||
echo "=== end of test ==="
|
||||
return ret
|
||||
}
|
||||
|
||||
if check_compilers; then
|
||||
Reference in New Issue
Block a user