diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,6 +1,6 @@ PACKAGE = mdkonline -VERSION:=$(shell rpm -q --qf %{VERSION} --specfile $(PACKAGE).spec) -RELEASE:=$(shell rpm -q --qf %{RELEASE} --specfile $(PACKAGE).spec) +VERSION:=$(shell rpm -q --qf '%{VERSION}\n' --specfile $(PACKAGE).spec|head -n 1) +RELEASE:=$(shell rpm -q --qf '%{RELEASE}\n' --specfile $(PACKAGE).spec|head -n 1) TAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__') NAME = mdkonline @@ -14,6 +14,7 @@ ICONSDIR = $(DATADIR)/icons PIXDIR = $(DATADIR)/$(NAME) SBINDIR = $(PREFIX)/usr/sbin BINDIR = $(PREFIX)/usr/bin +FBLIBDIR = $(PREFIX)/usr/lib/libDrakX/drakfirsttime SYSCONFDIR = $(PREFIX)/etc/sysconfig SBINREL = ../sbin @@ -32,7 +33,7 @@ clean: install: all $(MAKE) -C po $@ - install -d $(PREFIX)/usr/{sbin,bin,share/{$(NAME)/pixmaps,autostart,icons/{mini,large}}} + install -d $(PREFIX)/usr/{sbin,bin,share/{$(NAME)/pixmaps,autostart,icons/{mini,large}},lib/libDrakX/drakfirsttime} install -m755 $(NAME) $(SBINDIR) install -m755 $(MDKUPDATE) $(SBINDIR) install -m755 $(MDKAPPLET) $(BINDIR) @@ -41,6 +42,7 @@ install: all install -m644 icons/$(NAME)48.png $(ICONSDIR)/large/$(NAME).png install -m644 pixmaps/*.png $(PIXDIR)/pixmaps install -m644 mdkapplet.desktop $(PREFIX)/usr/share/autostart/ + install -m644 mdkonline.pm $(FBLIBDIR) for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done # rules to build a test rpm |