File: Makefile

package info (click to toggle)
shellia 5.10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 792 kB
  • sloc: sh: 7,840; makefile: 34
file content (43 lines) | stat: -rwxr-xr-x 1,043 bytes parent folder | download | duplicates (3)
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)>"