1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
# file: Makefile
# copyright: Bernd Schumacher <bernd.schumacher@hpe.com> (2007-2020)
# license: GNU General Public License, version 3
# description: build shellia debian package
SHARE = $(DESTDIR)/usr/share/shellia
TESTS = $(shell /bin/ls tests/test.*)
EXAMPLES = $(shell /bin/ls tests/example.* | grep -v "tmp")
LIBS = $(shell /bin/ls ia*)
all: shellia.1 shellia.3 shellia.7 shellia-tested-stamp
clean:
@# to clean debian files, run make clean from parent directory
@rm -f shellia.?
@rm -f tests/example*.tmp.* tests/hello_world*.tmp.*
@rm -f res exp r4s res.org
@rm -rf dbgerr
install: $(LIBS)
@mkdir -p $(SHARE); \
for i in $^; do \
install -o root -g root -m 0755 $$i $(SHARE)/; \
done
shellia-tested-stamp: run_tests $(LIBS) $(TESTS) $(EXAMPLES)
ifeq ($(NOTEST),)
@rm -f $@
@./run_tests && touch $@
endif
shellia.1: shellia-1.rst
@rst2man $< $@
shellia.3: shellia-3.rst
@rst2man $< $@
shellia.7: shellia-7.rst
@rst2man $< $@
dbg:
@echo "TESTS=<$(TESTS)>"
@echo "EXAMPLES=<$(EXAMPLES)>"
|