ALT Linux repos
Group :: Editors
RPM: sed
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
subst/ 0000755 0000000 0000000 00000000000 10606525667 0012231 5 ustar 00root root 0000000 0000000 subst/Makefile 0000644 0000000 0000000 00000002746 10606525667 0013702 0 ustar 00root root 0000000 0000000 #
# $Id: Makefile,v 1.2 2002/08/28 16:26:40 ldv Exp $
# Copyright (C) 2002 Dmitry V. Levin <ldv@altlinux.org>
#
# Makefile for subst, sed-based in-place files editor.
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
CFLAGS = $(RPM_OPT_FLAGS) -D_GNU_SOURCE
INSTALL = install -p
DESTDIR = $(RPM_BUILD_ROOT)
BINDIR = $(DESTDIR)/usr/bin
SRC = sed.c subst.c
OBJ = $(SRC:.c=.o)
DEP = $(SRC:.c=.d)
TARGET = subst
.PHONY: all install clean
all: $(TARGET)
$(TARGET): $(OBJ)
install: all
$(INSTALL) -D -m755 $(TARGET) $(BINDIR)/$(TARGET)
clean:
$(RM) $(TARGET) *.d *.o *~ core
# We need dependencies only if goal isn't "clean"
ifneq ($(MAKECMDGOALS),clean)
%.d: %.c
@echo Making dependences for $<
@$(SHELL) -ec "$(CC) -MM $(CPPFLAGS) $< | sed 's|\($*\)\.o[ :]*|\1.o $@ : |g' > $@; [ -s $@ ] || $(RM) $@"
ifneq ($(DEP),)
-include $(DEP)
endif
endif