1 912fd0cc 2023-05-29 aa include config.mk
2 912fd0cc 2023-05-29 aa include version.mk
4 912fd0cc 2023-05-29 aa .SUFFIXES: .o .c
7 912fd0cc 2023-05-29 aa OBJ = $(BIN:=.o)
8 912fd0cc 2023-05-29 aa SRC = $(BIN:=.c)
9 912fd0cc 2023-05-29 aa MAN = $(BIN:=.1)
13 912fd0cc 2023-05-29 aa $(BIN): $(OBJ)
14 912fd0cc 2023-05-29 aa $(CC) $(CFLAGS) $(PCCFLAGS) -o $@ $(OBJ) $(LDFLAGS)
16 912fd0cc 2023-05-29 aa $(OBJ): config.mk
19 912fd0cc 2023-05-29 aa $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
22 912fd0cc 2023-05-29 aa mkdir -p $(DESTDIR)$(PREFIX)/bin
23 912fd0cc 2023-05-29 aa install -m 755 $(BIN) $(DESTDIR)$(PREFIX)/bin
24 912fd0cc 2023-05-29 aa mkdir -p $(DESTDIR)$(MANPREFIX)/man1
25 912fd0cc 2023-05-29 aa install -m 644 $(MAN) $(DESTDIR)$(MANPREFIX)/man1
28 912fd0cc 2023-05-29 aa cd $(DESTDIR)$(PREFIX)/bin && rm -f $(BIN)
29 912fd0cc 2023-05-29 aa cd $(DESTDIR)$(MANPREFIX)/man1 && rm -f $(MAN)
32 912fd0cc 2023-05-29 aa -rm -rf $(BIN) $(OBJ) xitems$(V) *.tar.gz *.core
35 912fd0cc 2023-05-29 aa mkdir xitems$(V)
36 df2d0a79 2023-05-29 aa cp $(SRC) $(MAN) README COPYING CHANGES Makefile config.mk version.mk \
38 912fd0cc 2023-05-29 aa tar cf - xitems$(V) | gzip >xitems$(V).tar.gz
39 912fd0cc 2023-05-29 aa rm -rf xitems$(V)
44 912fd0cc 2023-05-29 aa .PHONY: all install uninstall clean dist