# See COPYING file for copyright and license details. include config.mk NAME = getxbook SRC = getgbook.c LIB = util.o SCRIPTS = getgmissing.sh getgfailed.sh makebookpdf.sh DOC = README COPYING LEGAL BIN = $(SRC:.c=) OBJ = $(SRC:.c=.o) $(LIB) all: $(BIN) $(OBJ): util.h config.mk $(BIN): util.a .o: @echo LD $@ @$(LD) -o $@ $< util.a $(LDFLAGS) .c.o: @echo CC $< @$(CC) -c $(CFLAGS) $< util.a: $(LIB) @echo AR $@ @$(AR) -r -c $@ $(LIB) @ranlib $@ install: all cp -f $(BIN) $(SCRIPTS) $(DESTDIR)$(PREFIX)/bin uninstall: cd $(DESTDIR)$(PREFIX)/bin && rm -f $(BIN) $(SCRIPTS) clean: rm -f -- $(BIN) $(OBJ) util.a index.html dist: mkdir -p $(NAME)-$(VERSION) cp $(SRC) $(SCRIPTS) $(DOC) util.h util.c Makefile config.mk $(NAME)-$(VERSION) tar c $(NAME)-$(VERSION) | gzip -c > $(NAME)-$(VERSION).tar.gz gpg -b < $(NAME)-$(VERSION).tar.gz > $(NAME)-$(VERSION).tar.gz.sig rm -rf $(NAME)-$(VERSION) echo $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION).tar.gz.sig index.html: doap.ttl README echo making webpage echo "$(NAME)" > $@ echo '' >> $@ echo '" >> $@ smu < README >> $@ echo "

download

" >> $@ echo "[$(NAME) $(VERSION)]($(NAME)-$(VERSION).tar.gz) ([sig]($(NAME)-$(VERSION).tar.gz.sig))" | smu >> $@ echo '
' >> $@ sh websummary.sh doap.ttl | smu >> $@ echo '' >> $@ .PHONY: all clean install uninstall dist .SILENT: index.html dist