2002-10-23 14:54:42 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# gawk
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2010-06-07 16:35:58 +02:00
|
|
|
GAWK_VERSION = 3.1.8
|
|
|
|
GAWK_SITE = $(BR2_GNU_MIRROR)/gawk
|
|
|
|
GAWK_TARGET_BINS = awk gawk igawk pgawk
|
2002-10-23 14:54:42 +02:00
|
|
|
|
2010-06-07 16:35:58 +02:00
|
|
|
$(eval $(call AUTOTARGETS,package,gawk))
|
2010-06-20 23:28:14 +02:00
|
|
|
$(eval $(call AUTOTARGETS,package,gawk,host))
|
2002-10-23 14:54:42 +02:00
|
|
|
|
2010-06-07 16:35:58 +02:00
|
|
|
$(GAWK_HOOK_POST_INSTALL): $(GAWK_TARGET_INSTALL_TARGET)
|
|
|
|
ln -sf /usr/bin/gawk $(TARGET_DIR)/usr/bin/awk
|
2007-09-17 14:30:31 +02:00
|
|
|
touch $@
|
2002-10-23 14:54:42 +02:00
|
|
|
|
2010-06-07 16:35:58 +02:00
|
|
|
$(GAWK_TARGET_UNINSTALL):
|
|
|
|
$(call MESSAGE,"Uninstalling")
|
|
|
|
rm -f $(addprefix $(TARGET_DIR)/usr/bin/, $(GAWK_TARGET_BINS))
|
|
|
|
rm -f $(TARGET_DIR)/usr/share/info/gawk*.info
|
|
|
|
rm -f $(TARGET_DIR)/usr/share/man/man*/*gawk.1
|
|
|
|
rm -rf $(TARGET_DIR)/usr/libexec/awk
|
|
|
|
rm -rf $(TARGET_DIR)/usr/share/awk
|
|
|
|
rm -f $(GAWK_TARGET_INSTALL_TARGET) $(GAWK_HOOK_POST_INSTALL)
|