Make action targets PHONY
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
diff --git a/Makefile b/Makefile
index 3f0e200..a6475a3 100644
--- a/Makefile
+++ b/Makefile
@@ -48,8 +48,10 @@ includedir := ${prefix}/include
pkgconfigdir := ${usrlibdir}/pkgconfig
mandir := ${prefix}/share/man
+.PHONY: libs
libs: $(LIB_STATIC) $(LIB_SHARED_SO)
+.PHONY: man
man: $(LIB_MANS)
%.lo: %.c
@@ -89,10 +91,10 @@ $(LIB_SHARED): $(LIB_SHARED_OBJS)
-o $@ $^
.PHONY: ChangeLog
-
ChangeLog:
-git log --stat -C >$@
+.PHONY: dist
dist: ChangeLog
mkdir $(TAR_NAME)
cp -a include src man $(LIB_DIST) $(TAR_NAME)
@@ -100,6 +102,7 @@ dist: ChangeLog
rm -rf $(TAR_NAME)
gpg -a -b $(TAR_FILE)
+.PHONY: install
install: libs man $(LIB_PKGCONFIG)
mkdir -p $(DESTDIR)/$(libdir)
mkdir -p $(DESTDIR)/$(usrlibdir)
@@ -116,6 +119,7 @@ install: libs man $(LIB_PKGCONFIG)
ln -sf $(libdir)/$(LIB_SHARED) $(DESTDIR)/$(usrlibdir)/$(LIB_SHARED_SO)
ln -sf $(LIB_SHARED) $(DESTDIR)/$(libdir)/$(LIB_SONAME)
+.PHONY: clean
clean:
rm -f $(LIB_PKGCONFIG)
rm -f $(LIB_GEN_SRCS)