| |
@@ -1,4 +1,9 @@
|
| |
TMP=tmp
|
| |
+ INSTALL=install
|
| |
+ INSTALL_PROGRAM=$(INSTALL)
|
| |
+ INSTALL_DATA=$(INSTALL) -m 644
|
| |
+ datadir=/usr/share
|
| |
+ schemadestdir=$(datadir)/message-schemas/ci
|
| |
|
| |
# Convert, test and clean up by default.
|
| |
all: convert test clean
|
| |
@@ -24,6 +29,17 @@
|
| |
@touch $@
|
| |
@echo " passed."
|
| |
|
| |
+ install: $(SCHEMAS)
|
| |
+ @echo -n "Installing to $(DESTDIR)$(schemadestdir)..."
|
| |
+ @mkdir -p $(DESTDIR)$(schemadestdir)
|
| |
+ @$(INSTALL_DATA) $^ $(DESTDIR)$(schemadestdir)
|
| |
+ @echo " done."
|
| |
+
|
| |
+ uninstall:
|
| |
+ @echo -n "Removing $(DESTDIR)$(schemadestdir)..."
|
| |
+ @rm -rf $(DESTDIR)$(schemadestdir)
|
| |
+ @echo " done."
|
| |
+
|
| |
test: $(EXAMPLES)
|
| |
|
| |
# Clean up stuff.
|
| |
This is intended especially to facilitate the Python wrapper I
designed - https://pagure.io/fedora-qa/python-ci_messages/ - but
could also be useful for other purposes.
Signed-off-by: Adam Williamson awilliam@redhat.com