File: Makefile.am

package info (click to toggle)
agave 0.4.1-0
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,568 kB
  • ctags: 825
  • sloc: cpp: 5,466; sh: 821; makefile: 251
file content (103 lines) | stat: -rw-r--r-- 3,602 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
SUBDIRS = src pixmaps po data tests

EXTRA_DIST = intltool-extract.in \
			 intltool-merge.in \
			 intltool-update.in

DISTCLEANFILES = intltool-extract \
				 intltool-merge \
				 intltool-update

AUTOMAKE_OPTIONS = gnu dist-bzip2

doc:
	cd doc && doxygen Doxyfile

LOCAL_RELEASE_BASE = ~/Projects/gcs-releases
LOCAL_RELEASE_DIR = $(LOCAL_RELEASE_BASE)/releases
RELEASE_UPLOAD_HOST = download.gna.org
RELEASE_UPLOAD_BASE = /upload/colorscheme
RELEASE_URL_BASE = http://download.gna.org/colorscheme/releases
RELEASE_ANNOUNCE_LIST = colorscheme-devel@googlegroups.com (cc gnome-announce-list@gnome.org)
#RELEASE_UPLOAD_DIR = $(RELEASE_UPLOAD_BASE)/releases

tar_gz_file = $(PACKAGE)-$(VERSION).tar.gz
tar_bz2_file = $(PACKAGE)-$(VERSION).tar.bz2
sig_gz_file = $(tar_gz_file).sig
sig_bz2_file = $(tar_bz2_file).sig

$(sig_gz_file): $(tar_gz_file)
	gpg --output $@ --detach $^

$(sig_bz2_file): $(tar_bz2_file)
	gpg --output $@ --detach $^

# This doesn't do what I want it to do...  It seems you'd need to execute
# git-update-index before this gave me anything useful, but I'm not sure I
# want to do that automatically
verify-files-checked-in: 
	@test ! git-status || (echo "*** Some files are not checked in." \
	&& echo "*** Run 'git status' for more information." \
	&& false)

tag-release: distcheck
	git tag -s -m "$(PACKAGE_NAME) release $(VERSION)" $(VERSION)

copy-to-local-release-dir: tag-release $(tar_gz_file) $(tar_bz2_file) $(sig_gz_file) $(sig_bz2_file)
	mkdir -p $(LOCAL_RELEASE_DIR)
	cp $(tar_gz_file) $(LOCAL_RELEASE_DIR)
	cp $(tar_bz2_file) $(LOCAL_RELEASE_DIR)
	cp $(sig_gz_file) $(LOCAL_RELEASE_DIR)
	cp $(sig_bz2_file) $(LOCAL_RELEASE_DIR)

sync-releases:	copy-to-local-release-dir
	-rsync --delete -aLv --rsh="ssh" $(LOCAL_RELEASE_BASE)/ $(RELEASE_UPLOAD_HOST):$(RELEASE_UPLOAD_BASE)

release-publish: sync-releases
	@echo ""
	@echo "Please send an announcement to $(RELEASE_ANNOUNCE_LIST)"
	@echo "including the following:"
	@echo ""
	@echo "Subject: $(PACKAGE_NAME) release $(VERSION) now available"
	@echo ""
	@echo "============================== CUT HERE =============================="
	@echo "A new $(PACKAGE_NAME) release $(VERSION) is now available."
	@echo ""
	@echo "What is it?"
	@echo "==========="
	@echo "$(PACKAGE_NAME) is a very simple application for the GNOME desktop that "
	@echo "allows you to generate a variety of colorschemes from a single starting color."
	@echo ""
	@echo "It is aimed primarily toward web designers for creating pleasing color"
	@echo "combinations for websites."
	@echo ""
	@echo "More information can be found at $(PACKAGE_WEBSITE)"
	@echo ""
	@echo "Where to get it?"
	@echo "================"
	@echo "This release is available as a source package in tar.gz or tar.bz2 format"
	@echo "and can be downloaded from:"
	@echo ""
	@echo "$(RELEASE_URL_BASE)/$(tar_gz_file)"
	@echo "    which can be verified with:"
	@echo "$(RELEASE_URL_BASE)/$(sig_gz_file)"
	@echo ""
	@echo "    or:"
	@echo ""
	@echo "$(RELEASE_URL_BASE)/$(tar_bz2_file)"
	@echo "    which can be verified with:"
	@echo "$(RELEASE_URL_BASE)/$(sig_bz2_file)"
	@echo ""
	@echo "What's Changed?"
	@echo "==============="
	@echo ""
	@echo "============================== CUT HERE =============================="
	@echo "Also, please include the new entries from the NEWS file."
	@echo ""
	@echo "Make sure to update the Website with the new version."
	@echo ""
	@echo "Last but not least, do not forget to bump up the micro"
	@echo "version component to the next (odd) number and commit."


.PHONY: doc copy-to-local-release-dir sync-releases release-publish tag-release