Makefile   [plain text]


##
# Makefile for tidy
##

# Project info
Project               = tidy
UserType              = Administrator
ToolType              = Libraries

# It's a GNU Source project
include $(MAKEFILEPATH)/CoreOS/ReleaseControl/Common.make

#Install_Target = install-strip
lazy_install_source:: shadow_source

OSV     = $(DSTROOT)/usr/local/OpenSourceVersions
OSL     = $(DSTROOT)/usr/local/OpenSourceLicenses
SECTORDER_FLAGS=-sectorder __TEXT __text /usr/local/lib/OrderFiles/libtidy.order

install::
	RANLIB=ranlib CFLAGS="$(CFLAGS) -fno-common" runinst_prefix="$(DSTROOT)/usr" devinst_prefix="$(DSTROOT)/usr" $(MAKE) -C "$(OBJROOT)/$(Project)/build/gmake" install devinst_prefix="$(DSTROOT)/usr" runinst_prefix="$(DSTROOT)/usr"
	$(CC) $(CFLAGS) -dynamiclib $(SECTORDER_FLAGS) -o "$(DSTROOT)/usr/lib/libtidy.A.dylib" "$(DSTROOT)/usr/lib/libtidy.a" -install_name "/usr/lib/libtidy.A.dylib" -all_load -exported_symbols_list "tidy.exp" -compatibility_version 1.0.0 -current_version 1.0.0
	strip "$(DSTROOT)/usr/bin/tab2space"
	strip "$(DSTROOT)/usr/bin/tidy"
	strip -x "$(DSTROOT)/usr/lib/libtidy.A.dylib"
	ln -s "libtidy.A.dylib" "$(DSTROOT)/usr/lib/libtidy.dylib"
	rm -f "$(DSTROOT)/usr/lib/libtidy.a"

	$(MKDIR) $(OSV)
	$(INSTALL_FILE) $(SRCROOT)/$(Project).plist $(OSV)/$(Project).plist
	$(MKDIR) $(OSL)
	$(INSTALL_FILE) $(SRCROOT)/$(Project).txt $(OSL)/$(Project).txt