36 lines
1.1 KiB
Makefile
Raw Normal View History

SUBDIRS = factory-package-news abichecker
include Makefile.common
2014-08-29 14:49:48 +02:00
2014-08-29 15:50:21 +02:00
pkgdata_SCRIPTS=$(wildcard *.py *.pl *.sh)
2014-08-29 14:01:38 +02:00
pkgdata_SCRIPTS+=bs_mirrorfull findfileconflicts
2014-08-29 15:50:21 +02:00
pkgdata_DATA+=bs_copy osclib $(wildcard *.pm *.testcase)
package_name = openSUSE-release-tools
2014-08-29 14:01:38 +02:00
all:
install:
install -d -m 755 $(DESTDIR)$(pkgdatadir) $(DESTDIR)$(unitdir) $(DESTDIR)$(oscplugindir)
for i in $(pkgdata_SCRIPTS); do install -m 755 $$i $(DESTDIR)$(pkgdatadir); done
2014-08-29 15:50:21 +02:00
chmod 644 $(DESTDIR)$(pkgdatadir)/osc-*.py
2014-08-29 14:01:38 +02:00
for i in $(pkgdata_DATA); do cp -a $$i $(DESTDIR)$(pkgdatadir); done
for i in osc-*.py osclib; do ln -s $(pkgdatadir)/$$i $(DESTDIR)$(oscplugindir)/$$i; done
for i in $(SUBDIRS); do $(MAKE) -C $$i install; done
2014-08-29 14:57:25 +02:00
install -m 644 systemd/* $(DESTDIR)$(unitdir)
2014-08-29 14:01:38 +02:00
2015-04-23 13:10:07 +02:00
check: test
test:
# to see more add -v -d -s --nologcapture
2015-04-23 13:10:07 +02:00
$(wildcard /usr/bin/nosetests-2.*)
package:
touch dist/package/$(package_name).changes
tar -cJf dist/package/$(package_name).tar.xz --exclude=.git* --exclude=dist/package/*.tar.xz --transform 's,^\.,$(package_name),' .
package-clean:
rm -f dist/package/$(package_name).changes
rm -f dist/package/$(package_name).tar.xz
2015-04-23 13:10:07 +02:00
.PHONY: all install test check