1 b79428b4 2022-07-13 src include config.mk
3 b79428b4 2022-07-13 src .SUFFIXES: .o .c
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)
12 b79428b4 2022-07-13 src $(BIN): $(OBJ)
13 b79428b4 2022-07-13 src $(CC) -o $@ $(OBJ) $(LDFLAGS)
15 b79428b4 2022-07-13 src $(OBJ): config.mk
18 b79428b4 2022-07-13 src $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
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
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)
31 b79428b4 2022-07-13 src mkdir -p rene-$(VERSION)
32 b79428b4 2022-07-13 src cp -rf TODO 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)
37 bd3c3461 2022-09-30 src -rm -f $(BIN) $(OBJ) *.tar.gz *.core
42 b79428b4 2022-07-13 src .PHONY: all install uninstall clean dist test