1 #******************************************************************************* 2 #* Copyright (C) 2008-2010, International Business Machines 3 #* Corporation and others. All Rights Reserved. 4 #******************************************************************************* 5 6 #sorry, this won't be friendly to out of source builds 7 8 srcdir=. 9 top_srcdir=../.. 10 top_builddir=../.. 11 12 include $(top_builddir)/icudefs.mk 13 14 LOCALHEADERS= udeprctd.h udraft.h uintrnal.h usystem.h 15 16 COMMONHDR= $(top_srcdir)/common/unicode 17 DOCDIR= $(top_builddir)/doc/html 18 EXCLUDE=$(srcdir)/exclude.txt 19 20 all: 21 @echo Usage: 'make install-headers' to update headers. 22 @echo 'be sure to verify the headers (in soure/common/unicode) before checkin!' 23 @exit 1 24 25 clean: 26 -$(RMV) $(LOCALHEADERS) 27 28 $(DOCDIR): 29 ( cd $(top_builddir) ; $(MAKE) doc ) 30 31 local-headers: $(LOCALHEADERS) 32 33 install-headers: $(DOCDIR) 34 perl ./genheaders.pl --srcdir=$(DOCDIR) --destdir=$(COMMONHDR) --version=$(VERSION) --exclusion-list=$(EXCLUDE) 35 ( cd $(COMMONHDR) ; ls -l $(LOCALHEADERS) ) 36 37 %.h: $(COMMONHDR)/%.h 38 cp $< $@ 39 40