]> git.eshelyaron.com Git - sweep.git/commitdiff
New make target: make info
authorEshel Yaron <me@eshelyaron.com>
Fri, 23 Sep 2022 10:05:16 +0000 (13:05 +0300)
committerEshel Yaron <me@eshelyaron.com>
Fri, 23 Sep 2022 10:05:16 +0000 (13:05 +0300)
Makefile

index a2bb127679533f1e82806e0c4d69ea0ee54b0df7..ca0f96d6c079a17460d9d463c5204d90f180b7ad 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,3 @@
-CURRENT_DIR := $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST)))))
-
 BASENAME = sweep
 
 UNAME_S := $(shell uname -s)
@@ -30,7 +28,7 @@ CFLAGS  += -Wextra
 CFLAGS  += -O2
 CFLAGS  += -I$(SWIPLBASE)/include
 
-.PHONY: clean all check
+.PHONY: clean all check info
 
 all: $(TARGET)
 
@@ -43,6 +41,7 @@ $(TARGET): $(OBJECT)
 clean:
        rm -f $(TARGET) $(OBJECT) $(BASENAME).info $(BASENAME).texi $(BASENAME).html
 
+info: $(BASENAME).info
 $(BASENAME).info:: README.org
        $(EMACS) -Q --batch --eval "(require 'ox-texinfo)" \
                --eval "(with-current-buffer (find-file \"README.org\") (org-export-to-file (quote texinfo) \"$@\" nil nil nil nil nil (quote org-texinfo-compile)))"