aboutsummaryrefslogtreecommitdiff
path: root/0.4.0/hooks/Makefile.am.m4
blob: 56314b35d9560a4b53be48109fdc5523d5b70523 (plain)
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
ifdef(`__gnu__',`',`errprint(`This is not GNU m4...
')m4exit(1)') include(`misc/generated-file.txt')

dnl vim: set ft=m4 noet :

MAINTAINERCLEANFILES = Makefile.in Makefile.am
CLEANFILES = *~ gmon.out *.gcov *.gcno *.gcda .keep
SUBDIRS = .

installvarlibpaludisnewsdir = $(localstatedir)/paludis/news

installhookcommonprogdir = $(libexecdir)/paludis/hooks/common
installhookinstallallpostdir = $(libexecdir)/paludis/hooks/install_all_post

installhookcommonprog_SCRIPTS = \
	gnu_info_index.bash \
	eselect_env_update.bash \
	log.bash \
	news.bash

installhookinstallallpost_SCRIPTS = \
	find_config_updates.bash

installvarlibpaludisnews_SCRIPTS = \
	.keep

TESTS_ENVIRONMENT = env \
	PALUDIS_EBUILD_DIR="$(srcdir)/ebuild/" \
	TEST_SCRIPT_DIR="$(srcdir)/" \
	bash $(top_srcdir)/ebuild/run_test.bash

TESTS =
EXTRA_DIST = \
	Makefile.am.m4 \
	$(installhookcommonprog_SCRIPTS) \
	$(installhookinstallallpost_SCRIPTS) \
	$(TESTS)

check_SCRIPTS = $(TESTS)
check_PROGRAMS =

.keep :
	touch $@

define(`userhook', `
installuserhooks$1dir = $(datadir)/paludis/hooks/$1
installuserhooks$1_SCRIPTS = .keep')

userhook(`install_pre')
userhook(`install_post')
userhook(`install_all_pre')
userhook(`install_all_post')
userhook(`install_pretend_pre')
userhook(`install_pretend_post')
userhook(`uninstall_pre')
userhook(`uninstall_post')
userhook(`uninstall_all_pre')
userhook(`uninstall_all_post')
userhook(`sync_pre')
userhook(`sync_post')
userhook(`sync_all_pre')
userhook(`sync_all_post')
userhook(`fetch_all_pre')
userhook(`fetch_all_post')
userhook(`fetch_all_all_pre')
userhook(`fetch_all_all_post')
userhook(`ebuild_metadata_pre')
userhook(`ebuild_metadata_post')
userhook(`ebuild_init_pre')
userhook(`ebuild_init_post')
userhook(`ebuild_fetch_pre')
userhook(`ebuild_fetch_post')
userhook(`ebuild_merge_pre')
userhook(`ebuild_merge_post')
userhook(`ebuild_unmerge_pre')
userhook(`ebuild_unmerge_post')
userhook(`ebuild_tidyup_pre')
userhook(`ebuild_tidyup_post')
userhook(`ebuild_strip_pre')
userhook(`ebuild_strip_post')
userhook(`ebuild_unpack_pre')
userhook(`ebuild_unpack_post')
userhook(`ebuild_compile_pre')
userhook(`ebuild_compile_post')
userhook(`ebuild_install_pre')
userhook(`ebuild_install_post')
userhook(`ebuild_test_pre')
userhook(`ebuild_test_post')
userhook(`ebuild_setup_pre')
userhook(`ebuild_setup_post')
userhook(`ebuild_config_pre')
userhook(`ebuild_config_post')
userhook(`ebuild_nofetch_pre')
userhook(`ebuild_nofetch_post')
userhook(`ebuild_preinst_pre')
userhook(`ebuild_preinst_post')
userhook(`ebuild_postinst_pre')
userhook(`ebuild_postinst_post')
userhook(`ebuild_prerm_pre')
userhook(`ebuild_prerm_post')
userhook(`ebuild_postrm_pre')
userhook(`ebuild_postrm_post')

define(`systemhook', `
installsystemhooks$1dir = $(libexecdir)/paludis/hooks/$1
installsystemhooks$1_SCRIPTS = .keep')

systemhook(`install_pre')
systemhook(`install_post')
systemhook(`install_all_pre')
systemhook(`install_all_post')
systemhook(`install_pretend_pre')
systemhook(`install_pretend_post')
systemhook(`uninstall_pre')
systemhook(`uninstall_post')
systemhook(`uninstall_all_pre')
systemhook(`uninstall_all_post')
systemhook(`sync_pre')
systemhook(`sync_post')
systemhook(`sync_all_pre')
systemhook(`sync_all_post')
systemhook(`fetch_all_pre')
systemhook(`fetch_all_post')
systemhook(`fetch_all_all_pre')
systemhook(`fetch_all_all_post')

install-data-local :
	install -d $(DESTDIR)/$(libexecdir)/paludis/hooks/uninstall_all_pre/
	install -d $(DESTDIR)/$(libexecdir)/paludis/hooks/uninstall_all_post/
	install -d $(DESTDIR)/$(libexecdir)/paludis/hooks/uninstall_pre/
	install -d $(DESTDIR)/$(libexecdir)/paludis/hooks/uninstall_post/
	install -d $(DESTDIR)/$(libexecdir)/paludis/hooks/install_pre/
	install -d $(DESTDIR)/$(libexecdir)/paludis/hooks/install_post/
	install -d $(DESTDIR)/$(libexecdir)/paludis/hooks/install_all_pre/
	install -d $(DESTDIR)/$(libexecdir)/paludis/hooks/install_all_post/
	install -d $(DESTDIR)/$(libexecdir)/paludis/hooks/install_pretend_pre/
	install -d $(DESTDIR)/$(libexecdir)/paludis/hooks/install_pretend_post/
	install -d $(DESTDIR)/$(libexecdir)/paludis/hooks/sync_pre/
	install -d $(DESTDIR)/$(libexecdir)/paludis/hooks/sync_post/
	install -d $(DESTDIR)/$(libexecdir)/paludis/hooks/sync_all_pre/
	install -d $(DESTDIR)/$(libexecdir)/paludis/hooks/sync_all_post/
	install -d $(DESTDIR)/$(libexecdir)/paludis/hooks/fetch_all_pre/
	install -d $(DESTDIR)/$(libexecdir)/paludis/hooks/fetch_all_post/
	install -d $(DESTDIR)/$(libexecdir)/paludis/hooks/fetch_pre/
	install -d $(DESTDIR)/$(libexecdir)/paludis/hooks/fetch_post/
	ln -sf ../common/gnu_info_index.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/uninstall_all_post/
	ln -sf ../common/gnu_info_index.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/install_all_post/
	ln -sf ../common/eselect_env_update.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/uninstall_all_post/
	ln -sf ../common/eselect_env_update.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/install_post/
	ln -sf ../common/log.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/install_all_pre/
	ln -sf ../common/log.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/install_all_post/
	ln -sf ../common/log.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/install_pre/
	ln -sf ../common/log.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/install_post/
	ln -sf ../common/log.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/fetch_all_pre/
	ln -sf ../common/log.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/fetch_all_post/
	ln -sf ../common/log.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/fetch_pre/
	ln -sf ../common/log.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/fetch_post/
	ln -sf ../common/log.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/uninstall_all_pre/
	ln -sf ../common/log.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/uninstall_all_post/
	ln -sf ../common/log.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/uninstall_pre/
	ln -sf ../common/log.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/uninstall_post/
	ln -sf ../common/log.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/sync_pre/
	ln -sf ../common/log.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/sync_post/
	ln -sf ../common/news.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/sync_all_post/
	ln -sf ../common/news.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/install_all_post/
	ln -sf ../common/news.bash $(DESTDIR)/$(libexecdir)/paludis/hooks/install_pretend_post/

uninstall-local :
	rm $(DESTDIR)/$(libexecdir)/paludis/hooks/*/gnu_info_index.bash
	rm $(DESTDIR)/$(libexecdir)/paludis/hooks/*/eselect_env_update.bash
	rm $(DESTDIR)/$(libexecdir)/paludis/hooks/*/log.bash
	rm $(DESTDIR)/$(libexecdir)/paludis/hooks/*/news.bash

Makefile.am : Makefile.am.m4
	$(top_srcdir)/misc/do_m4.bash Makefile.am