1# 2# targets.mak 3# 4# This file should be included at the end of all Makefile.mingw 5# files for better handling of cross directory dependencies 6# 7 8$(PIDGIN_CONFIG_H): $(PIDGIN_CONFIG_H).mingw $(PIDGIN_TREE_TOP)/configure.ac 9 sed -e 's/@VERSION@/$(PIDGIN_VERSION)/; s/@DISPLAY_VERSION@/$(DISPLAY_VERSION)/' $@.mingw > $@ 10 11$(PURPLE_PURPLE_H): $(PURPLE_PURPLE_H).in 12 sed -e 's/@PLUGINS_DEFINE@/#define PURPLE_PLUGINS 1/' $@.in > $@ 13 14$(PURPLE_VERSION_H): $(PURPLE_VERSION_H).in $(PIDGIN_TREE_TOP)/configure.ac 15 awk 'BEGIN {FS="[\\(\\)\\[\\]]"} \ 16 /^m4_define..purple_major_version/ {system("sed -e s/@PURPLE_MAJOR_VERSION@/"$$5"/ $@.in > $@");} \ 17 /^m4_define..purple_minor_version/ {system("sed -e s/@PURPLE_MINOR_VERSION@/"$$5"/ $@ > $@.tmp && mv $@.tmp $@");} \ 18 /^m4_define..purple_micro_version/ {system("sed -e s/@PURPLE_MICRO_VERSION@/"$$5"/ $@ > $@.tmp && mv $@.tmp $@"); exit}' $(PIDGIN_TREE_TOP)/configure.ac 19 20$(PIDGIN_REVISION_RAW_TXT): 21 (hg --cwd $(PIDGIN_TREE_TOP) log -r . -T '{node}') 2>/dev/null >$@ \ 22 || rm -f $@ 23 24$(PIDGIN_REVISION_H): $(PIDGIN_REVISION_RAW_TXT) 25 if [ -f $< ]; then \ 26 sed 's/^\(.\{1,\}\)$$/#define REVISION "\1"/' $< > $@; \ 27 fi 28 [ -f $@ ] || echo "#define REVISION \"unknown\"" > $@ 29 30$(PURPLE_DLL) $(PURPLE_DLL).a: $(PURPLE_VERSION_H) 31 $(MAKE) -C $(PURPLE_TOP) -f $(MINGW_MAKEFILE) libpurple.dll 32 33$(PURPLE_PERL_DLL) $(PURPLE_PERL_DLL).a: 34 $(MAKE) -C $(PURPLE_PERL_TOP) -f $(MINGW_MAKEFILE) perl.dll 35 36$(PIDGIN_DLL) $(PIDGIN_DLL).a: 37 $(MAKE) -C $(PIDGIN_TOP) -f $(MINGW_MAKEFILE) pidgin.dll 38 39$(PIDGIN_EXE): 40 $(MAKE) -C $(PIDGIN_TOP) -f $(MINGW_MAKEFILE) pidgin.exe 41 42# Installation Directories 43$(PIDGIN_INSTALL_DIR): 44 mkdir -p $(PIDGIN_INSTALL_DIR) 45 46$(PIDGIN_INSTALL_PERL_DIR): 47 mkdir -p $(PIDGIN_INSTALL_PERL_DIR) 48 49$(PIDGIN_INSTALL_PLUGINS_DIR): 50 mkdir -p $(PIDGIN_INSTALL_PLUGINS_DIR) 51 52$(PURPLE_INSTALL_PO_DIR): 53 mkdir -p $(PURPLE_INSTALL_PO_DIR) 54 55#$(PURPLE_INSTALL_PLUGINS_DIR): 56# mkdir -p $(PURPLE_INSTALL_PLUGINS_DIR) 57 58#$(PURPLE_INSTALL_PERL_DIR): 59# mkdir -p $(PURPLE_INSTALL_PERL_DIR) 60