5 |
# Copyright (C) 2004-2005 Red Hat, Inc. |
# Copyright (C) 2004-2005 Red Hat, Inc. |
6 |
# Copyright (C) 2005 Fedora Foundation |
# Copyright (C) 2005 Fedora Foundation |
7 |
# |
# |
8 |
# $Id: Makefile.common,v 1.4 2007/11/02 22:32:27 slords Exp $ |
# $Id: Makefile.common,v 1.1 2007/11/08 18:10:19 slords Exp $ |
9 |
|
|
10 |
# Define the common dir. |
# Define the common dir. |
11 |
# This needs to happen first. |
# This needs to happen first. |
139 |
PREP_ARCHES = $(addprefix prep-,$(ARCHES)) |
PREP_ARCHES = $(addprefix prep-,$(ARCHES)) |
140 |
|
|
141 |
## list all our bogus targets |
## list all our bogus targets |
142 |
.PHONY :: $(ARCHES) sources uploadsource upload export check build-check plague koji build test-srpm srpm tag force-tag verrel new clean patch prep compile install-short compile-short FORCE local |
.PHONY :: $(ARCHES) commit sources uploadsource upload export check build-check plague koji build test-srpm srpm tag force-tag verrel new clean patch prep compile install-short compile-short FORCE local |
143 |
|
|
144 |
# The TARGETS define is meant for local module targets that should be |
# The TARGETS define is meant for local module targets that should be |
145 |
# made in addition to the SOURCEFILES whenever needed |
# made in addition to the SOURCEFILES whenever needed |
398 |
clog: $(SPECFILE) |
clog: $(SPECFILE) |
399 |
@sed -n '/^%changelog/,/^$$/{/^%/d;/^$$/d;s/%%/%/g;p}' $(SPECFILE) | tee $@ |
@sed -n '/^%changelog/,/^$$/{/^%/d;/^$$/d;s/%%/%/g;p}' $(SPECFILE) | tee $@ |
400 |
|
|
401 |
|
commit: clog |
402 |
|
@cvs commit -F $? |
403 |
|
|
404 |
help: |
help: |
405 |
@echo "Usage: make <target>" |
@echo "Usage: make <target>" |
406 |
@echo "Available targets are:" |
@echo "Available targets are:" |
423 |
@echo " verrel Echo \"$(NAME)-$(VERSION)-$(RELEASE)\"" |
@echo " verrel Echo \"$(NAME)-$(VERSION)-$(RELEASE)\"" |
424 |
@echo " new Diff against last tag" |
@echo " new Diff against last tag" |
425 |
@echo " clog Make a clog file containing top changelog entry" |
@echo " clog Make a clog file containing top changelog entry" |
426 |
|
@echo " commit Commit to CVS using the clog file as the log message" |
427 |
@echo " clean Remove srcs ($(SOURCEFILES)), export dir (cvs-$(TAG)) and srpm ($(NAME)-$(VERSION)-$(RELEASE).src.rpm)" |
@echo " clean Remove srcs ($(SOURCEFILES)), export dir (cvs-$(TAG)) and srpm ($(NAME)-$(VERSION)-$(RELEASE).src.rpm)" |
428 |
@echo " patch SUFFIX=<suff> Create and add a gendiff patch file" |
@echo " patch SUFFIX=<suff> Create and add a gendiff patch file" |
429 |
@echo " rediff SUFFIX=<suff> Recreates a gendiff patch file, retaining comments" |
@echo " rediff SUFFIX=<suff> Recreates a gendiff patch file, retaining comments" |