mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-09 03:08:38 +01:00
Make action targets PHONY
This commit is contained in:
parent
e9cb0d1cf4
commit
3de930e682
6
Makefile
6
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)
|
||||
|
Loading…
Reference in New Issue
Block a user