Update of /cvsroot/libfunutil/libfunutil/toc/make
In directory sc8-pr-cvs1:/tmp/cvs-serv7115/toc/make
Added Files:
symlink_headers.make
Log Message:
egg
--- NEW FILE: symlink_headers.make ---
# snippet to symlink header files to a common includes dir.
# Usage:
# SYMLINK_HEADERS = $(wildcard *.h)
# SYMLINK_HEADERS_DEST = $(top_srcdir)/include/whereever
# include $(toc_makesdir)/symlink_headers.make
# run:
# all: symlink-headers
#
# The headers are cleaned up during clean/distclean.
ifneq (,$(SYMLINK_HEADERS))
ifeq (,$(SYMLINK_HEADERS_DEST))
$(error You must define both SYMLINK_HEADERS and SYMLINK_HEADERS_DEST to use this snippet.)
endif
symlink-headers: FORCE
@$(call toc_make_install_symlink,$(SYMLINK_HEADERS),$(SYMLINK_HEADERS_DEST),-m 0644)
symlink-headers-clean: FORCE
@echo "Cleaning headers."
@-touch foo.cleanlocal; rm foo.cleanlocal $(wildcard $(addprefix $(SYMLINK_HEADERS_DEST)/,$(SYMLINK_HEADERS)))
clean: symlink-headers-clean
distclean: symlink-headers-clean
endif
|