diff options
| author | Dan Horák <dan@danny.cz> | 2010-03-29 15:02:30 +0200 |
|---|---|---|
| committer | Dan Horák <dan@danny.cz> | 2010-03-29 15:02:30 +0200 |
| commit | 3790592efda2302d245c3bfaa23ff2d717e1e6dc (patch) | |
| tree | 9b3760b6941841457237b7df0bffc8de4cd0bbc3 /Makefile | |
| parent | 5773577f235cd2cd3b55bd82f8fb9c4002f1b978 (diff) | |
import files
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c815781 --- /dev/null +++ b/Makefile @@ -0,0 +1,53 @@ +# +# Makefile for installing the Fedora/RHEL specific s390(x) stuff +# + +PACKAGE=s390utils +VERSION=0.1 + +DESTDIR= +BINDIR=$(DESTDIR)/bin +SBINDIR=$(DESTDIR)/sbin +USRBINDIR=$(DESTDIR)/usr/bin +USRSBINDIR=$(DESTDIR)/usr/sbin +UDEVDIR=$(DESTDIR)/lib/udev +SYSCONFIGDIR=$(DESTDIR)/etc + + +UDEV_RULES=dasd.udev zfcp.udev +UDEV_HELPERS=dasdconf.sh zfcpconf.sh + +SERVICES=cpi.initd +SYSCONFIGS=cpi.sysconfig + +SBIN_SCRIPTS=device_cio_free + +UPSTART_CONFIGS=device_cio_free.conf + +FILES=Makefile $(UDEV_RULES) $(UDEV_HELPERS) $(SERVICES) $(SYSCONFIGS) $(SCRIPTS) $(UPSTART_CONFIGS) + + +all: + +install: + mkdir -p $(BINDIR) \ + $(SBINDIR) \ + $(USRBINDIR) \ + $(USRSBINDIR) \ + $(UDEVDIR)/rules.d \ + $(SYSCONFIGDIR) \ + $(SYSCONFIGDIR)/rc.d/init.d \ + $(SYSCONFIGDIR)/sysconfig \ + $(SYSCONFIGDIR)/init + install -p -m 644 $(UDEV_RULES) $(UDEVDIR)/rules.d + install -p -m 755 $(UDEV_HELPERS) $(UDEVDIR) + install -p -m 644 $(SERVICES) $(SYSCONFIGDIR)/rc.d/init.d + install -p -m 644 $(SYSCONFIGS) $(SYSCONFIGDIR)/sysconfig + install -p -m 755 $(SBIN_SCRIPTS) $(SBINDIR) + install -p -m 644 $(UPSTART_CONFIGS) $(SYSCONFIGDIR)/init + +dist: + mkdir -p $(PACKAGE)-$(VERSION) + cp -p $(FILES) $(PACKAGE)-$(VERSION) + tar cjf $(PACKAGE)-$(VERSION).tar.bz2 $(PACKAGE)-$(VERSION) + rm -rf $(PACKAGE)-$(VERSION) |
