summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-07-09 10:33:56 +0000
committerDaouda Lo <daouda@mandriva.com>2004-07-09 10:33:56 +0000
commit9318ebc5a59e237628457e379d7be3ece5f8d704 (patch)
tree29084b387ed6d3dcf2091e02b95d493d9850d4b1 /Makefile
parent701cbc36ba5feee09e0578c21cdea2c7a0d68a89 (diff)
downloadmgaonline-9318ebc5a59e237628457e379d7be3ece5f8d704.tar
mgaonline-9318ebc5a59e237628457e379d7be3ece5f8d704.tar.gz
mgaonline-9318ebc5a59e237628457e379d7be3ece5f8d704.tar.bz2
mgaonline-9318ebc5a59e237628457e379d7be3ece5f8d704.tar.xz
mgaonline-9318ebc5a59e237628457e379d7be3ece5f8d704.zip
rewrite big chunks of code, added mdkonline.pm
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1f1e0b6b..c4760627 100644
--- a/Makefile
+++ b/Makefile
@@ -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