-
Notifications
You must be signed in to change notification settings - Fork 47
/
Makefile
74 lines (66 loc) · 4.15 KB
/
Makefile
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
VERSION := 0.12
RELEASE := 1
.PHONY: clean rpm install clean-install
rm-installed-files:
rm -f /var/www/miq/vmdb/lib/tasks/rhconsulting_buttons.rake
rm -f /var/www/miq/vmdb/lib/tasks/rhconsulting_customization_templates.rake
rm -f /var/www/miq/vmdb/lib/tasks/rhconsulting_provision_dialogs.rake
rm -f /var/www/miq/vmdb/lib/tasks/rhconsulting_orchestration_templates.rake
rm -f /var/www/miq/vmdb/lib/tasks/rhconsulting_service_dialogs.rake
rm -f /var/www/miq/vmdb/lib/tasks/rhconsulting_miq_ae_datastore.rake
rm -f /var/www/miq/vmdb/lib/tasks/rhconsulting_roles.rake
rm -f /var/www/miq/vmdb/lib/tasks/rhconsulting_service_catalogs.rake
rm -f /var/www/miq/vmdb/lib/tasks/rhconsulting_tags.rake
rm -f /var/www/miq/vmdb/lib/tasks/rhconsulting_reports.rake
rm -f /var/www/miq/vmdb/lib/tasks/rhconsulting_widgets.rake
rm -f /var/www/miq/vmdb/lib/tasks/rhconsulting_policies.rake
rm -f /var/www/miq/vmdb/lib/tasks/rhconsulting_alerts.rake
rm -f /var/www/miq/vmdb/lib/tasks/rhconsulting_schedules.rake
rm -f /var/www/miq/vmdb/lib/tasks/rhconsulting_model_attributes.rb
rm -f /var/www/miq/vmdb/lib/tasks/rhconsulting_illegal_chars.rb
rm -f /var/www/miq/vmdb/lib/tasks/rhconsulting_options.rb
rm -f /usr/bin/miqexport
rm -f /usr/bin/miqimport
rm -f /usr/bin/export-miqdomain
rm -f /usr/bin/import-miqdomain
rm -f /var/www/miq/vmdb/lib/tasks/rhconsulting_scanitems.rake
rm -f /var/www/miq/vmdb/lib/tasks/rhconsulting_scriptsrc.rake
install:
install -Dm644 rhconsulting_schedules.rake /var/www/miq/vmdb/lib/tasks/rhconsulting_schedules.rake
install -Dm644 rhconsulting_buttons.rake /var/www/miq/vmdb/lib/tasks/rhconsulting_buttons.rake
install -Dm644 rhconsulting_customization_templates.rake /var/www/miq/vmdb/lib/tasks/rhconsulting_customization_templates.rake
install -Dm644 rhconsulting_provision_dialogs.rake /var/www/miq/vmdb/lib/tasks/rhconsulting_provision_dialogs.rake
install -Dm644 rhconsulting_orchestration_templates.rake /var/www/miq/vmdb/lib/tasks/rhconsulting_orchestration_templates.rake
install -Dm644 rhconsulting_service_dialogs.rake /var/www/miq/vmdb/lib/tasks/rhconsulting_service_dialogs.rake
install -Dm644 rhconsulting_miq_ae_datastore.rake /var/www/miq/vmdb/lib/tasks/rhconsulting_miq_ae_datastore.rake
install -Dm644 rhconsulting_roles.rake /var/www/miq/vmdb/lib/tasks/rhconsulting_roles.rake
install -Dm644 rhconsulting_service_catalogs.rake /var/www/miq/vmdb/lib/tasks/rhconsulting_service_catalogs.rake
install -Dm644 rhconsulting_tags.rake /var/www/miq/vmdb/lib/tasks/rhconsulting_tags.rake
install -Dm644 rhconsulting_reports.rake /var/www/miq/vmdb/lib/tasks/rhconsulting_reports.rake
install -Dm644 rhconsulting_widgets.rake /var/www/miq/vmdb/lib/tasks/rhconsulting_widgets.rake
install -Dm644 rhconsulting_policies.rake /var/www/miq/vmdb/lib/tasks/rhconsulting_policies.rake
install -Dm644 rhconsulting_alerts.rake /var/www/miq/vmdb/lib/tasks/rhconsulting_alerts.rake
install -Dm644 rhconsulting_illegal_chars.rb /var/www/miq/vmdb/lib/tasks/rhconsulting_illegal_chars.rb
install -Dm644 rhconsulting_options.rb /var/www/miq/vmdb/lib/tasks/rhconsulting_options.rb
install -Dm644 rhconsulting_model_attributes.rb /var/www/miq/vmdb/lib/tasks/rhconsulting_model_attributes.rb
install -Dm644 rhconsulting_scanitems.rake /var/www/miq/vmdb/lib/tasks/rhconsulting_scanitems.rake
install -Dm644 rhconsulting_scriptsrc.rake /var/www/miq/vmdb/lib/tasks/rhconsulting_scriptsrc.rake
install -Dm755 bin/miqexport /usr/bin/miqexport
install -Dm755 bin/miqimport /usr/bin/miqimport
install -Dm755 bin/export-miqdomain /usr/bin/export-miqdomain
install -Dm755 bin/import-miqdomain /usr/bin/import-miqdomain
uninstall: rm-installed-files
clean-install: rm-installed-files install
TARBALL := $(shell rpmbuild -E %{_sourcedir})/cfme-rhconsulting-scripts-$(VERSION)-$(RELEASE).tar.gz
rpm:
rm -rf cfme-consulting-scripts && \
mkdir -p cfme-rhconsulting-scripts/bin && \
cp *.rake cfme-rhconsulting-scripts && \
cp *.rb cfme-rhconsulting-scripts && \
cp bin/* cfme-rhconsulting-scripts/bin && \
tar zcf "$(TARBALL)" cfme-rhconsulting-scripts && \
rm -rf cfme-rhconsulting-scripts && \
rpmbuild -bb cfme-rhconsulting-scripts.spec
clean:
rm -rf cfme-consulting-scripts
rm -f "$(TARBALL)"