Blame


1 b79428b4 2022-07-13 src include config.mk
2 b79428b4 2022-07-13 src
3 b79428b4 2022-07-13 src .SUFFIXES: .o .c
4 b79428b4 2022-07-13 src
5 b79428b4 2022-07-13 src BIN = rene
6 b79428b4 2022-07-13 src OBJ = $(BIN:=.o)
7 b79428b4 2022-07-13 src SRC = $(BIN:=.c)
8 b79428b4 2022-07-13 src MAN = $(BIN:=.1)
9 b79428b4 2022-07-13 src
10 b79428b4 2022-07-13 src all: $(BIN)
11 b79428b4 2022-07-13 src
12 b79428b4 2022-07-13 src $(BIN): $(OBJ)
13 b79428b4 2022-07-13 src $(CC) -o $@ $(OBJ) $(LDFLAGS)
14 b79428b4 2022-07-13 src
15 b79428b4 2022-07-13 src $(OBJ): config.mk
16 b79428b4 2022-07-13 src
17 b79428b4 2022-07-13 src .c.o:
18 b79428b4 2022-07-13 src $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
19 b79428b4 2022-07-13 src
20 b79428b4 2022-07-13 src install: all
21 b79428b4 2022-07-13 src mkdir -p $(DESTDIR)$(PREFIX)/bin
22 b79428b4 2022-07-13 src install -m 755 $(BIN) $(DISTDIR)$(PREFIX)/bin/
23 b79428b4 2022-07-13 src mkdir -p $(DESTDIR)$(MANPREFIX)/man1
24 b79428b4 2022-07-13 src install -m 644 $(MAN) $(DISTDIR)$(MANPREFIX)/man1
25 b79428b4 2022-07-13 src
26 b79428b4 2022-07-13 src uninstall:
27 b79428b4 2022-07-13 src cd $(DESTDIR)$(PREFIX)/bin && rm -f $(BIN)
28 b79428b4 2022-07-13 src cd $(DESTDIR)$(MANPREFIX)/man1 && rm -f $(MAN)
29 b79428b4 2022-07-13 src
30 b79428b4 2022-07-13 src dist: clean
31 b79428b4 2022-07-13 src mkdir -p rene-$(VERSION)
32 083d96a2 2022-09-30 src cp -rf CHANGES README Makefile config.mk t $(SRC) $(MAN) rene-$(VERSION)
33 bd3c3461 2022-09-30 src tar cf - rene-$(VERSION) | gzip >rene-$(VERSION).tar.gz
34 b79428b4 2022-07-13 src rm -rf rene-$(VERSION)
35 b79428b4 2022-07-13 src
36 b79428b4 2022-07-13 src clean:
37 bd3c3461 2022-09-30 src -rm -f $(BIN) $(OBJ) *.tar.gz *.core
38 b79428b4 2022-07-13 src
39 bd3c3461 2022-09-30 src test: all
40 bd3c3461 2022-09-30 src sh ./t/t.sh
41 b79428b4 2022-07-13 src
42 b79428b4 2022-07-13 src .PHONY: all install uninstall clean dist test